21-Multicast Commands
Chapters Download (189.43 KB)
Table of Contents
1 Multicast Mode Configuration Commands
Multicast Mode Configuration Commands
display epon-multicast information
display onu-protocol igmp-snooping
multicast-control host-aging-time
2 IGMP Snooping Configuration Commands
IGMP Snooping Configuration Commands
display igmp-snooping statistics
fast-leave (IGMP-Snooping view)
group-policy (IGMP-Snooping view)
host-aging-time (IGMP-Snooping view)
igmp-snooping general-query source-ip
igmp-snooping last-member-query-interval
igmp-snooping max-response-time
igmp-snooping overflow-replace
igmp-snooping router-aging-time
igmp-snooping special-query source-ip
last-member-query-interval (IGMP-Snooping view)
max-response-time (IGMP-Snooping view)
overflow-replace (IGMP-Snooping view)
report-aggregation (IGMP-Snooping view)
reset igmp-snooping statistics
router-aging-time (IGMP-Snooping view)
source-deny (IGMP-Snooping view)
3 Multicast VLAN Configuration Commands
Multicast VLAN Configuration Commands
Syntax
display epon-multicast information
View
ONU port view
Default Level
1: Monitor level
Parameters
None
Description
Use the display epon-multicast information command to display multicast control information.
Examples
# Display multicast control information when the multicast mode of the ONU is IGMP snooping.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] display epon-multicast information
ONU is not in multicast-control mode.
# Display multicast control information when the multicast mode of the ONU is multicast control mode but no multicast control information is generated.
[Sysname-Onu1/0/1:1] display epon-multicast information
Multicast-control information: None.
# Display multicast control information when the multicast mode of the ONU is multicast control mode and multicast control information is generated.
[Sysname-Onu1/0/1:1] display epon-multicast information
Multicast-control information:
-------------------------------
UNI number 1:
Multicast vlan 10
Current channel list:
multicast ip:225.0.0.2
status:permit
Current channel list:
multicast ip:225.0.0.3
status:preview
preview times:16
preview remain time:144s
Table 1-1 display epon-multicast information command output description
Field |
Description |
ONU is not in multicast-control mode. |
The multicast control mode of the ONU is IGMP snooping. No multicast control information is available now. |
Multicast-control information: None. |
The multicast control mode of the ONU is multicast control mode but no multicast control information is generated. There are two reasons for this: l No multicast control contents are configured. l The multicast client sends no IGMP report message. |
UNI number 1 |
UNI port number |
Multicast vlan 10 |
Multicasts VLAN number |
Current channel list |
List of current multicast channels |
multicast ip |
Multicast IP address of multicast channel |
status:permit |
Multicast control policy permit: Allows access to the corresponding multicast channel (without time limit). preview: Allows previewing the corresponding multicast channel (with time limit) |
preview times:16 |
This is the sixteenth time the corresponding multicast channel has been previewed. |
preview remain time:144s |
The channel can be previewed for 144 more seconds before the preview ends. |
Syntax
display onu-protocol igmp-snooping
View
ONU port view
Default Level
2: System level
Parameters
None
Description
Use the display onu- protocol igmp-snooping command to display the information about the igmp-snooping protocol supported by an ONU that is in up state.
This command takes effect on H3C ONUs only.
Examples
# Display the information about IGMP snooping supported by the ONU.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] display onu-protocol igmp-snooping
Protocol name: IGMP snooping
Protocol status: enabled
Multicast Address UNI Port VLAN
1 01:00:5e:01:01:01 2 10
Table 1-2 display onu-protocol igmp-snooping command output description
Field |
Description |
Protocol name: IGMP snooping |
Protocol name |
Protocol status: enabled |
Protocol status: enabled or disabled |
Multicast Address |
Multicast MAC address |
UNI Port |
UNI port number |
VLAN |
Multicast VLAN number |
Syntax
multicast-control host-aging-time host-aging-time
undo multicast-control host-aging-time
View
ONU port view
Default Level
1: Monitor level
Parameters
host-aging-time: Aging time of multicast group member port in multicast control mode, in seconds. It is in the range 200 to 1000 and defaults to 260.
Description
Use the multicast-control host-aging-time command to configure the aging time of multicast group member port in multicast control mode.
Use the undo multicast-control host-aging-time command to restore the default aging time of multicast group member port in multicast control mode.
By default, the aging time of a multicast group member port is 260 seconds.
Note that this command is available in multicast control mode only.
Examples
# Configure the aging time multicast group member port in multicast control mode as 500 seconds.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] multicast-control host-aging-time 500
Syntax
multicast-mode { igmp-snooping | multicast-control }
undo multicast-mode
View
ONU port view
Default Level
2: System level
Parameters
igmp-snooping: Specifies the IGMP Snooping mode.
multicast-control: Specifies the multicast control mode.
Description
Use the multicast-mode command to configure the multicast mode of the ONU.
Use the undo multicast-mode command to restore the default.
By default, the multicast mode of the ONU is IGMP Snooping.
Examples
# Configure the multicast mode of the ONU as the multicast control mode.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] multicast-mode multicast-control
Syntax
multicast vlan vlan-id dest-ip ip-address-list
undo multicast vlan vlan-id dest-ip ip-address-list
View
FTTH view
Default Level
1: Monitor level
Parameters
vlan-id: Multicast VLAN ID, in the range 1 to 4094.
ip-address-list: Multicast IP address(es). ip-address-list = { ip-address | ip-address to ip-address } &<1-10>.
&<1-10>: Indicates that you can specify up to 10 IP addresses/IP address ranges.
Description
Use the multicast vlan dest-ip command to add multicast address(es) to a multicast VLAN. Upon receiving an IGMP Report message, the OLT determines whether the multicast IP address contained in the message belongs to the multicast VLAN. If yes, the OLT generates a multicast forwarding entry in the multicast VLAN of the multicast IP address; otherwise, the OLT directly discards the message.
Use the undo multicast vlan dest-ip command to remove the configuration.
Note that a multicast IP address can belong to only one multicast VLAN.
Examples
# Add multicast IP address 224.1.1.1 to 224.1.1.255 to multicast VLAN 2000.
<Sysname> system-view
[Sysname] ftth
[Sysname-ftth] multicast vlan-id 2000 dest-ip 224.1.1.1 to 224.1.1.255
Syntax
onu-protocol igmp-snooping { host-aging-time host-aging-time | leave-aggregation enable | max-response-time max-response-time | report-aggregation enable | router-aging-time router-aging-time }
undo onu-protocol igmp-snooping { host-aging-time | leave-aggregation enable | max-response-time | report-aggregation enable | router-aging-time }
View
ONU port view
Default Level
2: System level
Parameters
host-aging-time: Aging time of multicast group member port, in seconds. It is in the range 200 to 1000 and defaults to 260.
leave-aggregation enable: Enables IGMP leave message suppression.
max-response-time: Maximum response time (in seconds) of group-specific queries. It is in the range 1 to 25 and defaults to 1.
report-aggregation enable: Enables IGMP report message suppression
router-aging-time: Router port aging time, in seconds. It is in the range 1 to 1000 and defaults to 105.
Description
Use the onu-protocol igmp-snooping command to configure IGMP snooping-related timers and IGMP membership report suppression.
Use the undo onu-protocol igmp-snooping command to restore the defaults.
By default, IGMP join suppression is disabled, while IGMP leave suppression is enabled.
Note the following:
l The aging time of multicast group member ports determines how often multicast group members are refreshed. In an environment where multicast group members change frequently, a relatively shorter aging time is required.
l The router port here refers to the port connecting the ONU to the router. The ONU receives IGMP general query messages from the router through this port. The aging time of the router port should be a value about 2.5 times of the general query interval.
l This command takes effect on H3C ONUs only.
Examples
# Enable IGMP join suppression on the ONU.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] onu-protocol igmp-snooping report-aggregation enable
Syntax
uni uni-number igmp-snooping fast-leave
undo uni uni-number igmp-snooping fast-leave
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the uni igmp-snooping fast-leave command to enable fast leave on the UNI.
Use the undo uni igmp-snooping fast-leave command to disable this function.
By default, fast leave is disabled on a UNI.
Examples
# Enable fast leave on UNI 1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 igmp-snooping fast-leave
Syntax
uni uni-number multicast vlan { vlan-id } & <1-50>
undo uni-number multicast vlan { { vlan-id } & <1-50> | all }
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
vlan-id: Multicast VLAN ID, in the range 1 to 4094. &<1-50> means that you can provide up to 50 VLAN IDs for this argument.
all: Specifies all the multicast VLAN IDs.
Description
Use the uni multicast vlan command to add a UNI to the specified multicast VLAN(s).
Use the undo uni multicast vlan command to remove a UNI from the specified multicast VLAN(s).
This command takes effect only when the ONU works in the IGMP snooping mode.
Related commands: multicast-mode.
Examples
# Add UNI 1 to multicast VLAN 2000 and multicast VLAN 3000.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 multicast vlan 2000 3000
Syntax
uni uni-number multicast-control multicast-address { multicast-address [ to multicast-address ] } &<1-10> [ source-ip ip-address [ to ip-address ] ] rule { deny | permit [ channel-limit channel-number ] | preview time-slice preview-time [ preview-interval interval-time | preview-times preview-times [ reset-interval reset-interval-time ] ]* }
undo uni uni-number multicast-control multicast-address [ multicast-address [ to multicast-address ] ] &<1-10>
View
ONU port view
Default Level
1: Monitor level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
multicast-address: Multicast IP address(es). &<1-10> means that you can specify up to 10 multicast IP addresses/multicast IP address ranges.
ip-address: IP address of the multicast source
deny: Denies access.
permit: Permits access.
channel-number: Number of channels that can be accessed at the same time, in the range 1 to 5.
preview-time: Allowed preview time, in minutes. It is in the range 1 to 3.
interval-time: Allowed preview interval., in minutes. It is in the range 1 to 10.
preview-times: Allowed preview times, in the range 1 to 3.
reset-interval-time: Preview reset interval, namely, time elapsed (in minutes) after the preset number of preview times is reached and before the next preview can be performed. It is in the range 1 to 43200.
Description
Use the uni multicast-control command to configure the access (permit, preview, or deny) to multicast channels for the users connected to the specified UNI.
Use the undo uni multicast-control command to remove the configuration.
Note that this command is available in multicast control mode only.
If this command is executed with the source-ip keyword, the OLT will process the received IGMPv3 packets as follows:
l For IS_IN, TO_IN, or ALLOW IGMPv3 packets, if the multicast IP address and source IP address carried in the packets are within the range configured for the multicast rights, the OLT creates the multicast table entries; otherwise, the OLT discards the packets.
l If the packet type is IS_EX or TO_EX, the OLT discards the packets.
l If the packet type is BLOCK, the OLT directly deletes the corresponding multicast table entries without checking the packet rights.
For details about IS_IN, TO_IN, ALLOW, IS_EX, TO_EX, and BLOCK IGMPv3 packets, see Multicast Configuration.
Examples
# Allow all the users connected to UNI 1 to access the multicast channels with the multicast IP address 224.1.1.2.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 multicast-control multicast-address 224.1.1.2 rule permit
Syntax
uni uni-number multicast-group-number number
undo uni uni-number multicast-group-number
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
number: Number of multicast channels, in the range 0 to 255.
Description
Use the uni multicast-group-number command to configure the number of multicast channels that can be accessed at the same time by the users connected to the specified UNI of the ONU.
Use the undo uni multicast-group-number command to restore the default value.
By default, the users connected to a UNI can access up to 64 multicast channels at the same time.
This command takes effect only when the ONU works in the IGMP snooping mode.
Related commands: multicast-mode.
The maximum number of multicast channels supported by the UNI ports of an H3C ONU varies with ONU type, as shown in the following table.
Table 1-3 Maximum number of multicast channels supported by H3C ONUs
H3C ONU type |
Maximum number of multicast channels supported by UNI ports |
S3100-SI series |
256 |
S3100-EI series |
512 |
ET704 series |
64 |
ET254-L |
Multicast not supported |
Assume the maximum number of multicast channels supported by the UNI ports of an ONU is less than the maximum number of channels configured remotely through OLT:
l When the ONU is online, if you configure the maximum number of multicast channels on UNI ports to be greater than that supported by the UNI ports, the configuration will fail. For example, the UNI ports of an ET704 series ONU support up to 64 multicast channels. If you use the uni multicast-group-number command by specifying a value greater than 64 for the number argument through the OLT, a message prompt will be displayed indicating the configuration fails.
l When the ONU is not online, if you configure the maximum number of multicast channels on UNI ports through the OLT to be greater than that supported by the UNI ports, after the ONU goes online, the ONU will use the maximum number supported. For example, if you configure the maximum number of multicast channels on the UNI ports as 255 through the OLT while the maximum number of multicast channels supported on the UNI ports of an ET704 series ONU is 64, the ONU will support 64 multicast channels.
Examples
# Allow the users connected to UNI 1 of the ONU to access up to 32 multicast channels at the same time.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 multicast-group-number 32
Syntax
uni uni-number multicast-strip-tag enable
undo uni uni-number multicast-strip-tag enable
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the uni multicast-strip-tag command to configure the specified UNI to remove the VLAN tag of the downlink multicast flow.
Use the undo uni multicast-group-number command to remove the configuration.
By default, a UNI does not remove the VLAN tag of the downlink multicast flow.
Examples
# Remove the VLAN tag of the downlink multicast flow on UNI 1 of the ONU.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 multicast-strip-tag enable
Syntax
display igmp-snooping group [ vlan vlan-id ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
vlan vlan-id: Displays the IGMP Snooping multicast group information in the specified VLAN, where vlan-id is in the range of 1 to 4094. If you do not specify a VLAN, this command will display the IGMP Snooping multicast group information in all VLANs.
verbose: Specifies to display the detailed IGMP Snooping multicast group information.
Description
Use the display igmp-snooping group command to view the IGMP Snooping multicast group information.
Examples
# View the detailed IGMP Snooping multicast group information in VLAN 2.
<Sysname> display igmp-snooping group vlan 2 verbose
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Port flags: D-Dynamic port, S-Static port, C-Copy port
Subvlan flags: R-Real VLAN, C-Copy VLAN
Vlan(id):2.
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Router port(s):total 1 port.
GE 1/1/1 (D) ( 00:01:30 )
IP group(s):the following ip group(s) match to one mac group.
IP group address:224.1.1.1
(0.0.0.0, 224.1.1.1):
Attribute: Host Port
Host port(s):total 1 port.
Onu1/0/1:1 (D) ( 00:03:23 )
MAC group(s):
MAC group address:0100-5e01-0101
Host port(s):total 1 port.
Onu1/0/1:2
Table 2-1 display igmp-snooping group command output description
Field |
Description |
Total 1 IP Group(s). |
Total number of IP multicast groups |
Total 1 IP Source(s). |
Total number of multicast sources |
Total 1 MAC Group(s). |
Total number of MAC multicast groups |
Port flags: D-Dynamic port, S-Static port, C-Copy port |
Port flags: D for dynamic port, S for static port, C for port copied from a (*, G) entry to an (S, G) entry |
Subvlan flags: R-Real VLAN, C-Copy VLAN |
Sub-VLAN flags: R for real egress sub-VLAN under the current entry, C for sub-VLAN copied from a (*, G) entry to an (S, G) entry |
Router port(s) |
Number of router ports |
( 00:01:30 ) |
Remaining time of the dynamic member port or router port aging timer. |
IP group address |
Address of IP multicast group |
(0.0.0.0, 224.1.1.1) |
An (S, G), where 0.0.0.0 implies any multicast source |
MAC group address |
Address of MAC multicast group |
Attribute |
Attribute of IP multicast group |
Host port(s) |
Number of member ports |
Syntax
display igmp-snooping statistics
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display igmp-snooping statistics command to view the statistics information of IGMP messages learned by IGMP Snooping.
Examples
# View the statistics information of IGMP messages learned by IGMP Snooping.
<Sysname> display igmp-snooping statistics
Received IGMP general queries:0.
Received IGMPv1 reports:0.
Received IGMPv2 reports:19.
Received IGMP leaves:0.
Received IGMPv2 specific queries:0.
Sent IGMPv2 specific queries:0.
Received IGMPv3 reports:1.
Received IGMPv3 reports with right and wrong records:0.
Received IGMPv3 specific queries:0.
Received IGMPv3 specific sg queries:0.
Sent IGMPv3 specific queries:0.
Sent IGMPv3 specific sg queries:0.
Received error IGMP messages:19.
Table 2-2 display igmp-snooping statistics command output description
Field |
Description |
general queries |
General query messages |
specific queries |
Group-specific query messages |
reports |
Report messages |
leaves |
Leave messages |
reports with right and wrong records |
Report messages with correct and incorrect records |
specific sg query packet(s) |
Group-and-source-specific query message(s) |
error IGMP messages |
IGMP messages with errors |
Syntax
fast-leave [ vlan vlan-list ]
undo fast-leave [ vlan vlan-list ]
View
IGMP-Snooping view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the fast-leave command to enable fast leave processing globally.
Use the undo fast-leave command to disable fast leave processing globally.
By default, fast leave processing is disabled.
Note that:
l This command works on IGMP Snooping–enabled VLANs.
l If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
Related commands: igmp-snooping fast-leave.
Examples
# Enable fast leave processing globally in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] fast-leave vlan 2
Syntax
group-policy acl-number [ vlan vlan-list ]
undo group-policy [ vlan vlan-list ]
View
IGMP-Snooping view
Default Level
2: System level
Parameters
acl-number: Basic or advanced ACL number, in the range of 2000 to 3999. The source address or address range specified in the advanced ACL rule is used to match the multicast source address(es) specified in IGMPv3 reports, rather than the source address in the IP packets. The system assumes that an IGMPv1 or IGMPv2 report or an IGMPv3 IS_EX or TO_EX report that does not carry a multicast source address carries a multicast source address of 0.0.0.0.
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the group-policy command to configure a global multicast group filter.
Use the undo group-policy command to remove the configured global multicast group filter.
By default, no global multicast group filter is configured, namely a host can join any valid multicast group.
Note that:
l If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
l If the specified ACL does not exist or the ACL rule is null, all multicast groups will be filtered out.
l You can configure different ACL rules for a port in different VLANs; for a given VLAN, a newly configured ACL rule will override the existing one.
Related commands: igmp-snooping group-policy.
Examples
# Apply ACL 2000 as a multicast group filter in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] group-policy 2000 vlan 2
Syntax
host-aging-time interval
undo host-aging-time
View
IGMP-Snooping view
Default Level
2: System level
Parameters
interval: Dynamic member port aging time, in seconds. The effective range is 200 to 1,000.
Description
Use the host-aging-time command to configure the aging time of dynamic member ports globally.
Use the undo host-aging-time command to restore the default setting.
By default, the aging time of dynamic member ports is 260 seconds.
This command works only on IGMP Snooping–enabled VLANs.
Related commands: igmp-snooping host-aging-time.
Examples
# Set the aging time of dynamic member ports globally to 300 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] host-aging-time 300
Syntax
igmp-snooping
undo igmp-snooping
View
System view
Default Level
2: System level
Parameters
None
Description
Use the igmp-snooping command to enable IGMP Snooping globally and enter IGMP-Snooping view.
Use the undo igmp-snooping command to disable IGMP Snooping globally.
By default, IGMP Snooping is disabled.
Related commands: igmp-snooping enable.
Examples
# Enable IGMP Snooping globally and enter IGMP-Snooping view.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping]
Syntax
igmp-snooping drop-unknown
undo igmp-snooping drop-unknown
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the igmp-snooping drop-unknown command to enable the function of dropping unknown multicast data in the current VLAN.
Use the undo igmp-snooping drop-unknown command to disable the function of dropping unknown multicast data in the current VLAN.
By default, this function is disabled, that is, unknown multicast data is flooded.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable.
Examples
# In VLAN 2, enable IGMP Snooping and the function of dropping unknown multicast data.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping drop-unknown
Syntax
igmp-snooping enable
undo igmp-snooping enable
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the igmp-snooping enable command to enable IGMP Snooping in the current VLAN.
Use the undo igmp-snooping enable command to disable IGMP Snooping in the current VLAN.
By default, IGMP Snooping is disabled in a VLAN.
IGMP Snooping must be enabled globally before it can be enabled in a VLAN.
Related commands: igmp-snooping.
Examples
# Enable IGMP Snooping in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
Syntax
igmp-snooping fast-leave [ vlan vlan-list ]
undo igmp-snooping fast-leave [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view, ONU port view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the igmp-snooping fast-leave command to enable fast leave processing on the current port or group of ports.
Use the undo igmp-snooping fast-leave command to disable fast leave processing on the current port or group of ports.
By default, fast leave processing is disabled.
Note that:
l This command works on IGMP Snooping–enabled VLANs.
l If you do not specify any VLAN when using this command in Ethernet interface view, ONU port view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
Related commands: fast-leave.
Examples
# Enable fast leave processing on Onu 1/0/1:1 in VLAN 2.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] igmp-snooping fast-leave vlan 2
Syntax
igmp-snooping general-query source-ip { current-interface | ip-address }
undo igmp-snooping general-query source-ip
View
VLAN view
Default Level
2: System level
Parameters
current-interface: Sets the source address of IGMP general queries to the address of the current VLAN interface. If the current VLAN interface does not have an IP address, the default IP address 0.0.0.0 will be used as the source IP address of IGMP general queries.
ip-address: Specifies the source address of IGMP general queries, which can be any legal IP address.
Description
Use the igmp-snooping general-query source-ip command to configure the source address of IGMP general queries.
Use the undo igmp-snooping general-query source-ip command to restore the default configuration.
By default, the source IP address of IGMP general queries is 0.0.0.0.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable.
Examples
# In VLAN 2, enable IGMP Snooping and specify 10.1.1.1 as the source IP address of IGMP general queries.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping general-query source-ip 10.1.1.1
Syntax
igmp-snooping group-limit limit [ vlan vlan-list ]
undo igmp-snooping group-limit [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view, ONU port view
Default Level
2: System level
Parameters
limit: Maximum number of multicast groups that can be joined on a port. The effective range is 1 to 1000.
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the undo igmp-snooping group-limit command to restore the default setting.
By default, the maximum number of multicast groups that can be joined on a port is 1000.
Note that:
l If you do not specify any VLAN when using this command in Ethernet interface view, ONU port view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
Examples
# Specify to allow a maximum of 10 multicast groups to be joined on Onu1/0/1:1 in VLAN 2.
<Sysname> system-view
[Sysname] interface onu1/0/1:1
[Sysname-Onu1/0/1:1] igmp-snooping group-limit 10 vlan 2
Syntax
igmp-snooping group-policy acl-number [ vlan vlan-list ]
undo igmp-snooping group-policy [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view, ONU port view
Default Level
2: System level
Parameters
acl-number: Basic or advanced ACL number, in the range of 2000 to 3999. The source address or address range specified in the advanced ACL rule is used to match the multicast source address(es) specified in IGMPv3 reports, rather than the source address in the IP packets. The system assumes that an IGMPv1 or IGMPv2 report or an IGMPv3 IS_EX and TO_EX report that does not carry a multicast source address carries a multicast source address of 0.0.0.0.
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the undo igmp-snooping group-policy command to remove a multicast group filter on the current port(s).
By default, no multicast group filter is configured on an interface, namely a host can join any valid multicast group.
Note that:
l If you do not specify any VLAN when using this command in Ethernet interface view, ONU port view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
l If the specified ACL does not exist or the ACL rule is null, all multicast groups will be filtered out.
l You can configure different ACL rules for a port in different VLANs; for a given VLAN, a newly configured ACL rule will override the existing one.
Related commands: group-policy.
Examples
# Apply ACL 2000 as a multicast group filter on Onu1/0/1:1 in VLAN 2.
<Sysname> system-view
[Sysname] interface onu1/0/1:1
[Sysname-Onu1/0/1:1] igmp-snooping group-policy 2000 vlan 2
Syntax
igmp-snooping host-aging-time interval
undo igmp-snooping host-aging-time
View
VLAN view
Default Level
2: System level
Parameters
interval: Dynamic member port aging time, in seconds. The effective range is 200 to 1,000.
Description
Use the igmp-snooping host-aging-time command to configure the aging time of dynamic member ports in the current VLAN.
Use the undo igmp-snooping host-aging-time command to restore the default setting.
By default, the aging time of dynamic member ports is 260 seconds.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable, host-aging-time.
Examples
# Enable IGMP Snooping and set the aging time of dynamic member ports to 300 seconds in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping host-aging-time 300
Syntax
igmp-snooping host-join group-address [ source-ip source-address ] vlan vlan-id
undo igmp-snooping host-join group-address [ source-ip source-address ] vlan vlan-id
View
Ethernet interface view, Layer 2 aggregate interface view, port group view, ONU port view
Default Level
2: System level
Parameters
group-address: Address of the multicast group that the simulated host is to join, in the range of 224.0.1.0 to 239.255.255.255.
source-address: Address of the multicast source that the simulated host is to join. The value of this argument should be a valid unicast address or 0.0.0.0. If the value is 0.0.0.0, this means that no multicast source is specified.
vlan vlan-id: Specifies the VLAN that comprises the port(s), where vlan-id is in the range of 1 to 4094.
Description
Use the undo igmp-snooping host-join command to remove the current port(s) as simulated member host(s) for the specified multicast group or source and group.
By default, this function is disabled.
Note that:
l This command works on IGMP Snooping–enabled VLANs. The version of IGMP on the simulated host depends on the version of IGMP Snooping running in the VLAN.
l The source-ip source-address option in the command is meaningful only for IGMP Snooping version 3. If IGMP Snooping version 2 is running, although you can include source-ip source-address in the command, the simulated host does not respond to a query message.
l If configured in Ethernet interface view, ONU port view or Layer 2 aggregate interface view, this feature takes effect only if the interface belongs to the specified VLAN.
l If configured in port group view, this feature takes effect only on those ports in this port group that belong to the specified VLAN.
Examples
# Configure Onu1/0/1:1 as a simulated member host in VLAN 2 for multicast source 1.1.1.1 and multicast group 232.1.1.1.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping version 3
[Sysname-vlan2] quit
[Sysname] interface onu1/0/1:1
[Sysname-Onu1/0/1:1] igmp-snooping host-join 232.1.1.1 source-ip 1.1.1.1 vlan 2
Syntax
igmp-snooping last-member-query-interval interval
undo igmp-snooping last-member-query-interval
View
VLAN view
Default Level
2: System level
Parameters
interval: Interval between IGMP last-member queries, in seconds. The effective range is 1 to 5.
Description
Use the igmp-snooping last-member-query-interval command to configure the interval between IGMP last-member queries in the VLAN.
Use the undo igmp-snooping last-member-query-interval command to restore the default setting.
By default, the IGMP last-member query interval is 1 second.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable, last-member-query-interval.
Examples
# Enable IGMP Snooping and set the interval between IGMP last-member queries to 3 seconds in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping last-member-query-interval 3
Syntax
igmp-snooping max-response-time interval
undo igmp-snooping max-response-time
View
VLAN view
Default Level
2: System level
Parameters
interval: Maximum response time to IGMP general queries, in seconds. The effective range is 1 to 25.
Description
Use the igmp-snooping max-response-time command to configure the maximum response time to IGMP general queries in the VLAN.
Use the undo igmp-snooping max-response-time command to restore the default setting.
By default, the maximum response time to IGMP general queries is 10 seconds.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable, max-response-time, igmp-snooping query-interval.
Examples
# Enable IGMP Snooping and set the maximum response time to IGMP general queries to 5 seconds in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping max-response-time 5
Syntax
igmp-snooping overflow-replace [ vlan vlan-list ]
undo igmp-snooping overflow-replace [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view, ONU port view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the igmp-snooping overflow-replace command to enable the multicast group replacement function on the current port(s).
Use the undo igmp-snooping overflow-replace command to disable the multicast group replacement function on the current port(s).
By default, the multicast group replacement function is disabled.
Note that:
l This command works on IGMP Snooping–enabled VLANs.
l If you do not specify any VLAN when using this command in Ethernet interface view, ONU port view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
Related commands: overflow-replace.
Examples
# Enable the multicast group replacement function on Onu1/0/1:1 in VLAN 2.
<Sysname> system-view
[Sysname] interface onu1/0/1:1
[Sysname-Onu1/0/1:1] igmp-snooping overflow-replace vlan 2
Syntax
igmp-snooping querier
undo igmp-snooping querier
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the igmp-snooping querier command to enable the IGMP Snooping querier function.
Use the undo igmp-snooping querier command to disable the IGMP Snooping querier function.
By default, the IGMP Snooping querier function is disabled.
Note that:
l This command takes effect only if IGMP Snooping is enabled in the VLAN.
l This command does not take effect in a sub-VLAN of a multicast VLAN.
Related commands: igmp-snooping enable; subvlan.
Examples
# Enable IGMP Snooping and the IGMP Snooping querier function in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping querier
Syntax
igmp-snooping query-interval interval
undo igmp-snooping query-interval
View
VLAN view
Default Level
2: System level
Parameters
interval: Interval between IGMP general queries, in seconds. The effective range is 2 to 300.
Description
Use the igmp-snooping query-interval command to configure the interval between IGMP general queries.
Use the undo igmp-snooping query-interval command to restore the default setting.
By default, the IGMP general query interval is 60 seconds.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable, igmp-snooping querier, igmp-snooping max-response-time, max-response-time.
Examples
# Enable IGMP Snooping and set the interval between IGMP general queries to 20 seconds in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping query-interval 20
Syntax
igmp-snooping router-aging-time interval
undo igmp-snooping router-aging-time
View
VLAN view
Default Level
2: System level
Parameters
interval: Dynamic router port aging time, in seconds. The effective range is 1 to 1,000.
Description
Use the igmp-snooping router-aging-time command to configure the aging time of dynamic router ports in the current VLAN.
Use the undo igmp-snooping router-aging-time command to restore the default setting.
By default, the aging time of dynamic router ports is 105 seconds.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable, router-aging-time.
Examples
# Enable IGMP Snooping and set the aging time of dynamic router ports to 100 seconds in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping router-aging-time 100
Syntax
igmp-snooping source-deny
undo igmp-snooping source-deny
View
Ethernet interface view, port group view, OLT port view
Default Level
2: System level
Parameters
None
Description
Use the igmp-snooping source-deny command to enable multicast source port filtering.
Use the undo igmp-snooping source-deny command to disable multicast source port filtering.
By default, multicast source port filtering is disabled.
This command works on IGMP Snooping–enabled VLANs.
Examples
# Enable source port filtering for multicast data on Olt1/0/1.
<Sysname> system-view
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] igmp-snooping source-deny
Syntax
igmp-snooping special-query source-ip { current-interface | ip-address }
undo igmp-snooping special-query source-ip
View
VLAN view
Default Level
2: System level
Parameters
current-interface: Sets the source address of IGMP group-specific queries to the address of the current VLAN interface. If the current VLAN interface does not have an IP address, the default IP address 0.0.0.0 will be used as the source IP address of IGMP group-specific queries.
ip-address: Sets the source address of IGMP group-specific queries to the specified address.
Description
Use the igmp-snooping special-query source-ip command to configure the source IP address of IGMP group-specific queries.
Use the undo igmp-snooping special-query source-ip command to restore the default configuration.
By default, the source IP address of IGMP group-specific queries is 0.0.0.0.
This command takes effect only if IGMP Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable.
Examples
# In VLAN 2, enable IGMP Snooping and specify 10.1.1.1 as the source IP address of IGMP group-specific queries.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping special-query source-ip 10.1.1.1
Syntax
igmp-snooping version version-number
undo igmp-snooping version
View
VLAN view
Default Level
2: System level
Parameters
version-number: IGMP snooping version, in the range of 2 to 3.
Description
Use the igmp-snooping version command to configure the IGMP Snooping version.
Use the undo igmp-snooping version command to restore the default setting.
By default, the IGMP Snooping version is 2.
Note that:
l This command can take effect only if IGMP Snooping is enabled in the VLAN.
l This command does not take effect in a sub-VLAN of a multicast VLAN.
Related commands: igmp-snooping enable; subvlan.
Examples
# Enable IGMP Snooping in VLAN 2, and set the IGMP Snooping version to version 3.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping version 3
Syntax
last-member-query-interval interval
undo last-member-query-interval
View
IGMP-Snooping view
Default Level
2: System level
Parameters
interval: Interval between IGMP last-member queries, in seconds. The effective range is 1 to 5.
Description
Use the last-member-query-interval command to configure the interval between IGMP last-member queries globally.
Use the undo last-member-query-interval command to restore the default setting.
By default, the interval between IGMP last-member queries is 1 second.
This command works only on IGMP Snooping–enabled VLANs.
Related commands: igmp-snooping last-member-query-interval.
Examples
# Set the interval between IGMP last-member queries globally to 3 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] last-member-query-interval 3
Syntax
max-response-time interval
undo max-response-time
View
IGMP-Snooping view
Default Level
2: System level
Parameters
interval: Maximum response time to IGMP general queries, in seconds. The effective range is 1 to 25.
Description
Use the max-response-time command to configure the maximum response time to IGMP general queries globally.
Use the undo max-response-time command to restore the default value.
This command works only on IGMP Snooping–enabled VLANs.
Related commands: igmp-snooping max-response-time, igmp-snooping query-interval.
Examples
# Set the maximum response time to IGMP general queries globally to 5 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] max-response-time 5
Syntax
overflow-replace [ vlan vlan-list ]
undo overflow-replace [ vlan vlan-list ]
View
IGMP-Snooping view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the overflow-replace command to enable the multicast group replacement function globally.
Use the undo overflow-replace command to disable the multicast group replacement function globally.
By default, the multicast group replacement function is disabled.
Note that:
l This command works on IGMP Snooping–enabled VLANs.
l If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
Related commands: igmp-snooping overflow-replace.
Examples
# Enable the multicast group replacement function globally in VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] overflow-replace vlan 2
Syntax
report-aggregation
undo report-aggregation
View
IGMP-Snooping view
Default Level
2: System level
Parameters
None
Description
Use the report-aggregation command to enable IGMP report suppression.
Use the undo report-aggregation command to disable IGMP report suppression.
By default, IGMP report suppression is enabled.
This command works on IGMP Snooping–enabled VLANs.
Examples
# Disable IGMP report suppression.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] undo report-aggregation
Syntax
reset igmp-snooping group { group-address | all } [ vlan vlan-id ]
View
User view
Default Level
2: System level
Parameters
group-address: Clears the information about the specified multicast group. The value range of group-address is 224.0.1.0 to 239.255.255.255.
all: Clears all IGMP Snooping multicast group information.
vlan vlan-id: Clears the IGMP Snooping multicast group information in the specified VLAN. The effective range of vlan-id is 1 to 4094.
Description
Use the reset igmp-snooping group command to clear IGMP Snooping multicast group information.
Note that:
l This command works only on IGMP Snooping–enabled VLANs.
l This command cannot clear IGMP Snooping multicast group information of static joins.
Examples
# Clear all IGMP Snooping multicast group information.
<Sysname> reset igmp-snooping group all
Syntax
reset igmp-snooping statistics
View
User view
Default Level
2: System level
Parameters
None
Description
Use the reset igmp-snooping statistics command to clear the statistics information of IGMP messages learned by IGMP Snooping.
Examples
# Clear the statistics information of all kinds of IGMP messages learned by IGMP Snooping.
<Sysname> reset igmp-snooping statistics
Syntax
router-aging-time interval
undo router-aging-time
View
IGMP-Snooping view
Default Level
2: System level
Parameters
interval: Dynamic router port aging time, in seconds. The effective range is 1 to 1,000.
Description
Use the router-aging-time command to configure the aging time of dynamic router ports globally.
Use the undo router-aging-time command to restore the default setting.
By default, the aging time of dynamic router ports is 105 seconds.
This command works only on IGMP Snooping–enabled VLANs.
Related commands: igmp-snooping router-aging-time.
Examples
# Set the aging time of dynamic router ports globally to 100 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] router-aging-time 100
Syntax
source-deny port interface-list
undo source-deny port interface-list
View
IGMP-Snooping view
Default Level
2: System level
Parameters
interface-list: Specifies one or multiple ports. You can provide up to ten port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type start-interface-number to interface-type end-interface-number, where the end interface number must be greater than the start interface number.
Description
Use the source-deny command to enable multicast source port filtering so that all multicast data packets are blocked.
Use the undo source-deny command to disable multicast source port filtering.
By default, multicast source port filtering is not enabled.
This command works on IGMP Snooping–enabled VLANs.
Examples
# Enable source port filtering for multicast data on port Olt 1/0/1.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] source-deny port olt 1/0/1
Syntax
display multicast-vlan [ vlan-id ]
View
Any view
Default Level
1: Monitor level
Parameters
vlan-id: VLAN ID of a multicast VLAN, in the range of 1 to 4094. If this argument is not provided, the information about all multicast VLANs will be displayed.
Note that: S3600 series EPON OLT switches support one multicast VLAN.
Description
Use the display multicast-vlan command to view the information about the specified multicast VLAN.
Examples
# View the information about all multicast VLANs.
<Sysname> display multicast-vlan
Total 1 multicast-vlan(s)
Multicast vlan 100
subvlan list:
vlan 2 4-6
port list:
no port
Table 3-1 display multicast-vlan command output description
Field |
Description |
Total 1 multicast-vlan(s) |
Total number of multicast VLANs |
Multicast vlan |
A multicast VLAN |
subvlan list |
List of sub-VLANs of the multicast VLAN |
port list |
Port list of the multicast VLAN |
Syntax
multicast-vlan vlan-id
undo multicast-vlan { all | vlan-id }
View
System view
Default Level
2: System level
Parameters
vlan-id: Specifies a VLAN by its ID, in the range of 1 to 4094.
all: Deletes all multicast VLANs.
Description
Use the multicast-vlan command to configure the specified VLAN as a multicast VLAN and enter multicast VLAN view.
Use the undo multicast-vlan command to remove the specified VLAN as a multicast VLAN.
The VLAN to be configured is not a multicast VLAN by default.
Note that:
l The specified VLAN to be configured as a multicast VLAN must exist.
l For a sub-VLAN-based multicast VLAN, you need to enable IGMP Snooping only in the multicast VLAN; for a port-based multicast VLAN, you need to enable IGMP Snooping in both the multicast VLAN and all the user VLANs.
Related commands: igmp-snooping enable in IGMP Snooping Configuration Commands.
Examples
# Enable IGMP Snooping in VLAN 100. Configure it as a multicast VLAN and enter multicast VLAN view.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 100
[Sysname-vlan100] igmp-snooping enable
[Sysname-vlan100] quit
[Sysname] multicast-vlan 100
[Sysname-mvlan-100]
Syntax
port interface-list
undo port { all | interface-list }
View
Multicast VLAN view
Default Level
2: System level
Parameters
interface-list: Specifies a port in the form of interface-type interface-number, or a port range in the form of interface-type start-interface-number to interface-type end-interface-number, where the end interface number must be greater than the start interface number.
all: Deletes all the ports in the current multicast VLAN.
Description
Use the port command to assign the specified port(s) to the current multicast VLAN.
Use the undo port command to delete the specified port(s) or all ports from the current multicast VLAN.
By default, a multicast VLAN has no ports.
Note that:
l A port can belong to only one multicast VLAN.
l Only the following types of interfaces can be configured as multicast VLAN ports: Ethernet, or Layer 2 aggregate interfaces.
Examples
# Assign port GigabitEthernet 1/1/1to multicast VLAN 100.
<Sysname> system-view
[Sysname] multicast-vlan 100
[Sysname-mvlan-100] port gigabitEthernet 1/1/1
Syntax
port multicast-vlan vlan-id
undo port multicast-vlan
View
Ethernet interface view, Layer 2 aggregate interface view, port group view.
Default Level
2: System level
Parameters
vlan-id: VLAN ID of the multicast VLAN you want to assign the current port(s) to, in the range of 1 to 4094.
Description
Use the port multicast-vlan command to assign the current port(s) to the specified multicast VLAN.
Use the undo port multicast-vlan command to restore the system default.
By default, a port does not belong to any multicast VLAN.
Note that a port can belong to only one multicast VLAN.
Examples
# Assign GigabitEthernet 1/1/1 to multicast VLAN 100.
<Sysname> system-view
[Sysname] interface gigabitEthernet 1/1/1
[Sysname-GigabitEthernet 1/1/1] port multicast-vlan 100
Syntax
subvlan vlan-list
undo subvlan { all | vlan-list }
View
Multicast VLAN view
Default Level
2: System level
Parameters
vlan-list: Specifies a VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
all: Deletes all the sub-VLANs of the current multicast VLAN.
Description
Use the subvlan command to configure sub-VLAN(s) for the current multicast VLAN.
Use the undo subvlan command to remove the specified sub-VLAN(s) or all sub-VLANs from the current multicast VLAN.
A multicast VLAN has no sub-VLANs by default.
Note that:
l The VLANs to be configured as sub-VLANs of the multicast VLAN must exist and must not be multicast VLANs or sub-VLANs of another multicast VLAN.
l S3600 series EPON OLT switch supports one multicast VLAN, and supports up to 127 sub-VLANs for the multicast VLAN..
Examples
# Configure VLAN 10 through VLAN 15 as sub-VLANs of multicast VLAN 100.
<Sysname> system-view
[Sysname] multicast-vlan 100
[Sysname-mvlan-100] subvlan 10 to 15