- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Text | 355.47 KB |
display igmp-snooping router-port
display igmp-snooping static-group
display igmp-snooping static-router-port
display igmp-snooping statistics
display l2-multicast ip forwarding
display l2-multicast mac forwarding
dot1p-priority (IGMP-snooping view)
drop-unknown (IGMP-snooping view)
entry-limit (IGMP-snooping view)
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 report source-ip
igmp-snooping router-aging-time
igmp-snooping router-port-deny
igmp-snooping special-query source-ip
igmp-snooping static-router-port
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 router-port
reset igmp-snooping statistics
router-aging-time (IGMP-snooping view)
display ipv6 l2-multicast ip forwarding
display ipv6 l2-multicast mac forwarding
display mld-snooping router-port
display mld-snooping static-group
display mld-snooping static-router-port
display mld-snooping statistics
dot1p-priority (MLD-snooping view)
drop-unknown (MLD-snooping view)
entry-limit (MLD-snooping view)
fast-leave (MLD-snooping view)
group-policy (MLD-snooping view)
host-aging-time (MLD-snooping view)
last-listener-query-interval (MLD-snooping view)
max-response-time (MLD-snooping view)
mld-snooping general-query source-ip
mld-snooping last-listener-query-interval
mld-snooping max-response-time
mld-snooping router-aging-time
mld-snooping special-query source-ip
mld-snooping static-router-port
overflow-replace (MLD-snooping view)
report-aggregation (MLD-snooping view)
reset mld-snooping router-port
router-aging-time (MLD-snooping view)
IGMP snooping commands
The WX1800H series access controllers do not support the slot keyword or the slot-number argument.
display igmp-snooping
Use display igmp-snooping to display IGMP snooping status.
Syntax
display igmp-snooping [ global | vlan vlan-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
global: Displays the global IGMP snooping status.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
Usage guidelines
If you do not specify any parameters, this command displays the global IGMP snooping status and the IGMP snooping status in all VLANs.
Examples
# Display the global IGMP snooping status and the IGMP snooping status for all VLANs.
<Sysname> display igmp-snooping
IGMP snooping information: Global
IGMP snooping: Enabled
Drop-unknown: Disabled
Host-aging-time: 260s
Router-aging-time: 260s
Max-response-time: 10s
Last-member-query-interval: 1s
Report-aggregation: Enabled
Dot1p-priority: --
IGMP snooping information: VLAN 1
IGMP snooping: Enabled
Drop-unknown: Disabled
Version: 2
Host-aging-time: 260s
Router-aging-time: 260s
Max-response-time: 10s
Last-member-query-interval: 1s
Querier: Disabled
Query-interval: 125s
General-query source IP: 1.1.1.1
Special-query source IP: 2.2.2.2
Report source IP: 3.0.0.3
Leave source IP: 1.0.0.1
Dot1p-priority: 2
IGMP snooping information: VLAN 10
IGMP snooping: Enabled
Drop-unknown: Enabled
Version: 3
Host-aging-time: 260s
Router-aging-time: 260s
Max-response-time: 10s
Last-member-query-interval: 1s
Querier: Disabled
Query-interval: 125s
General-query source IP: 1.1.1.1
Special-query source IP: 2.2.2.2
Report source IP: 3.0.0.3
Leave source IP: 1.0.0.1
Dot1p-priority: --
Table 1 Command output
Field |
Description |
IGMP snooping |
IGMP snooping status: · Enabled. · Disabled. |
Drop-unknown |
Status of dropping unknown multicast data: · Enabled. · Disabled. |
Version |
IGMP snooping version. |
Host-aging-time |
Aging timer for the dynamic member port. |
Router-aging-time |
Aging timer for the dynamic router port. |
Max-response-time |
Maximum response time for IGMP general queries. |
Last-member-query-interval |
Interval for sending IGMP group-specific queries. |
Status of IGMP report suppression: · Enabled. · Disabled. |
|
802.1p priority for IGMP messages. This field displays two hyphens (--) if the priority is not configured. |
|
Status of IGMP snooping querier: · Enabled. · Disabled. |
|
Interval for sending IGMP general queries. |
|
Source IP address of IGMP general queries. |
|
Source IP address of IGMP group-specific queries. |
|
Source IP address of IGMP reports. |
|
Source IP address of IGMP leave messages. |
display igmp-snooping group
Use display igmp-snooping group to display dynamic IGMP snooping group entries.
Syntax
display igmp-snooping group [ group-address | source-address ] * [ vlan vlan-id ] [ verbose ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group-address: Specifies a multicast group by its IP address in the range of 224.0.1.0 to 239.255.255.255. If you do not specify a multicast group, this command displays dynamic IGMP snooping group entries for all multicast groups.
source-address: Specifies a multicast source by its IP address. If you do not specify a multicast source, this command displays dynamic IGMP snooping group entries for all multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays dynamic IGMP snooping group entries for all VLANs.
verbose: Displays detailed information about dynamic IGMP snooping group entries. If you do not specify the keyword, this command displays brief information about dynamic IGMP snooping group entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays dynamic IGMP snooping group entries for the master device.
Examples
# Display detailed information about dynamic IGMP snooping group entries for VLAN 2.
<Sysname> display igmp-snooping group vlan 2 verbose
Total 1 entries.
VLAN 2: Total 1 entries.
(0.0.0.0, 224.1.1.1)
Attribute: local port
FSM information: normal
Host slots (0 in total):
Host ports (1 in total):
WLAN-BSS1/0/10 (00:03:23)
Table 2 Command output
Description |
|
Total 1 entries |
Total number of dynamic IGMP snooping group entries. |
VLAN 2: Total 1 entries |
Total number of dynamic IGMP snooping group entries in VLAN 2. |
(0.0.0.0, 224.1.1.1) |
(S, G) entry, where 0.0.0.0 in the S position means all multicast sources. |
Entry attribute: · global port—The entry has a global port. · local port—The entry has a port that resides on the specified card. · slot—The entry has a port that resides on a card other than the specified card. |
|
Finite state machine information of the entry: · delete—The entry attributes have been deleted. · dummy—The entry is a new temporary entry. · no info—No entry exists. · normal—The entry is a correct entry. |
|
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
(00:03:23) |
Remaining aging time for the dynamic member port. For a global port, this field is always displayed. For a non-global port, this field is displayed when one of the following conditions exists: · The port is on the specified member device. · The port is on the master device and no member device is specified. |
Related commands
reset igmp-snooping group
display igmp-snooping router-port
Use display igmp-snooping router-port to display dynamic router port information.
Syntax
display igmp-snooping router-port [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays dynamic router port information for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays dynamic router port information for the master device.
Examples
# Display dynamic router port information for VLAN 2.
<Sysname> display igmp-snooping router-port vlan 2
VLAN 2:
Router slots (0 in total):
Router ports (2 in total):
WLAN-BSS1/0/10 (00:01:30)
WLAN-BSS1/0/20 (00:00:23)
Table 3 Command output
Field |
Description |
VLAN 2 |
VLAN ID. |
Router slots (0 in total) |
Member IDs and total number of the member devices that have dynamic router ports, except for the specified member device or the master device when no member device is specified. |
Router ports (2 in total) |
Dynamic router ports, and the total number of dynamic router ports. |
(00:01:30) |
Remaining aging time for the dynamic router port. For a global port, this field is always displayed. For a non-global port, this field is displayed when one of the following conditions exists: · The port is on the specified member device. · The port is on the master device and no member device is specified. |
reset igmp-snooping router-port
display igmp-snooping static-group
Use display igmp-snooping static-group to display static IGMP snooping group entries.
Syntax
display igmp-snooping static-group [ group-address | source-address ] * [ vlan vlan-id ] [ verbose ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group-address: Specifies a multicast group by its IP address in the range of 224.0.1.0 to 239.255.255.255. If you do not specify a multicast group, this command displays static IGMP snooping group entries for all multicast groups.
source-address: Specifies a multicast source by its IP address. If you do not specify a multicast source, this command displays static IGMP snooping group entries for all multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays static IGMP snooping group entries for all VLANs.
verbose: Displays detailed information about static IGMP snooping group entries. If you do not specify the keyword, this command displays brief information about static IGMP snooping group entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays static IGMP snooping group entries for the master device.
Examples
# Display detailed information about static IGMP snooping group entries for VLAN 2.
<Sysname> display igmp-snooping static-group vlan 2 verbose
Total 1 entries.
VLAN 2: Total 1 entries.
(0.0.0.0, 224.1.1.1)
Attribute: local port
FSM information: normal
Host slots (0 in total):
Host ports (1 in total):
GE1/0/2
Table 4 Command output
Field |
Description |
Total 1 entries |
Total number of static IGMP snooping group entries. |
VLAN 2: Total 1 entries |
Total number of static IGMP snooping group entries in VLAN 2. |
(0.0.0.0, 224.1.1.1) |
(S, G) entry, where 0.0.0.0 in the S position means all multicast sources. |
Attribute |
Entry attribute: · global port—The entry has a global port. · local port—The entry has a port that resides on the specified card. · slot—The entry has a port that resides on a card other than the specified card. |
FSM information |
Finite state machine information of the entry: · delete—The entry attributes have been deleted. · dummy—The entry is a new temporary entry. · no info—No entry exists. · normal—The entry is a correct entry. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
display igmp-snooping static-router-port
Use display igmp-snooping static-router-port to display static router port information.
Syntax
display igmp-snooping static-router-port [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays static router port information for the master device.
Examples
# Display static router port information for VLAN 2.
<Sysname> display igmp-snooping static-router-port vlan 2
VLAN 2:
Router slots (0 in total):
Router ports (2 in total):
GE1/0/1
GE1/0/2
Table 5 Command output
Field |
Description |
VLAN 2 |
VLAN ID. |
Router slots (0 in total) |
Member IDs and total number of the member devices that have static router ports, except for the specified member device or the master device when no member device is specified. |
Router ports (2 in total) |
Static router ports, and the total number of static router ports. |
display igmp-snooping statistics
Use display igmp-snooping statistics to display statistics for IGMP messages learned through IGMP snooping.
Syntax
display igmp-snooping statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display statistics for the IGMP messages learned through 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 PIMv2 hello: 0
Received error IGMP messages: 19
Table 6 Command output
Field |
Description |
general queries |
Number of IGMP general queries. |
specific queries |
Number of IGMP group-specific queries. |
reports |
Number of IGMP reports. |
leaves |
Number of IGMP leave messages. |
reports with right and wrong records |
Number of IGMP reports with correct and incorrect records. |
specific sg queries |
Number of IGMP group-and-source-specific queries. |
PIMv2 hello |
Number of PIMv2 hello messages. The device does not support this field in the current software version. |
error IGMP messages |
Number of IGMP messages with errors. |
Related commands
reset igmp-snooping statistics
display l2-multicast ip
Use display l2-multicast ip to display information about Layer 2 IP multicast groups.
Syntax
display l2-multicast ip [ group group-address | source source-address ] * [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group group-address: Specifies a multicast group by its IP address. If you do not specify a multicast group, this command displays information about all Layer 2 IP multicast groups.
source source-address: Specifies a multicast source by its IP address. If you do not specify a multicast source, this command displays information about Layer 2 IP multicast groups for all multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays information about Layer 2 IP multicast groups for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information about Layer 2 IP multicast groups for the master device.
Examples
# Display information about Layer 2 IP multicast groups for VLAN 2.
<Sysname> display l2-multicast ip vlan 2
Total 1 entries.
VLAN 2: Total 1 IP entries.
(0.0.0.0, 224.1.1.1)
Attribute: static, success
Host slots (0 in total):
Host ports (1 in total):
GigabitEthernet1/0/1 (S, SUC)
Table 7 Command output
Field |
Description |
Total 1 entries |
Total number of Layer 2 IP multicast groups. |
VLAN 2: Total 1 IP entries |
Total number of Layer 2 IP multicast groups in VLAN 2. |
(0.0.0.0, 224.1.1.1) |
(S, G) entry, where 0.0.0.0 in the S position means all multicast sources. |
Attribute |
Entry attribute: · dynamic—The entry is created by a dynamic protocol. · static—The entry is created by a static protocol. · pim—The entry is created by PIM. The device does not support this attribute in the current software version. · kernel—The entry is obtained from the kernel. · success—Processing succeeds. · fail—Processing fails. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
(S, SUC) |
Port attribute: · D—Dynamic port. · S—Static port. · P—PIM port. The device does not support this attribute in the current software version. · K—Port obtained from the kernel. · R—Port learned from (*, *) entries. · W—Port learned from (*, G) entries. · SUC—Processing succeeds. · F—Processing fails. · BC—Broadcast port. The TRILL port floods multicast data after the topology changes. The device does not support this attribute in the current software version. |
display l2-multicast ip forwarding
Use display l2-multicast ip forwarding to display Layer 2 IP multicast group entries.
Syntax
display l2-multicast ip forwarding [ group group-address | source source-address ] * [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group group-address: Specifies a multicast group by its IP address. If you do not specify a multicast group, this command displays Layer 2 IP multicast group entries for all multicast groups.
source source-address: Specifies a multicast source by its IP address. If you do not specify a multicast source, this command displays Layer 2 IP multicast group entries for all multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays Layer 2 IP multicast group entries for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays Layer 2 IP multicast group entries for the master device.
Examples
# Display Layer 2 IP multicast group entries for VLAN 2.
<Sysname> display l2-multicast ip forwarding vlan 2
Total 1 entries.
VLAN 2: Total 1 IP entries.
(0.0.0.0, 224.1.1.1)
Host slots (0 in total):
Host ports (3 in total):
GE1/0/1
GE1/0/2
GE1/0/3
Table 8 Command output
Field |
Description |
Total 1 entries |
Total number of Layer 2 IP multicast group entries. |
VLAN 2: Total 1 IP entries |
Total number of Layer 2 IP multicast group entries in VLAN 2. |
(0.0.0.0, 224.1.1.1) |
(S, G) entry, where 0.0.0.0 in the S position means all multicast sources. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (3 in total) |
Member ports, and the total number of member ports. |
display l2-multicast mac
Use display l2-multicast mac to display information about Layer 2 MAC multicast groups.
Syntax
display l2-multicast mac [ mac-address ] [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
mac-address: Specifies a MAC multicast group by its multicast MAC address. If you do not specify a MAC multicast group, this command displays information about all Layer 2 MAC multicast groups.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays information about Layer 2 MAC multicast groups for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information about Layer 2 MAC multicast groups for the master device.
Examples
# Display information about Layer 2 MAC multicast groups for VLAN 2.
<Sysname> display l2-multicast mac vlan 2
Total 1 MAC entries.
VLAN 2: Total 1 MAC entries.
MAC group address: 0100-5e01-0101
Attribute: success
Host slots (0 in total):
Host ports (1 in total):
GigabitEthernet1/0/1
Table 9 Command output
Field |
Description |
Total 1 MAC entries |
Total number of Layer 2 MAC multicast groups. |
VLAN 2: Total 1 MAC entries |
Total number of Layer 2 MAC multicast groups in VLAN 2. |
Attribute |
Entry attribute: · success—Processing succeeds. · fail—Processing fails. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
display l2-multicast mac forwarding
Use display l2-multicast mac forwarding to display Layer 2 multicast MAC forwarding entries.
Syntax
display l2-multicast mac forwarding [ mac-address ] [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
mac-address: Specifies a MAC multicast group by its MAC address. If you do not specify a MAC multicast group, this command displays Layer 2 multicast MAC forwarding entries for all MAC multicast groups.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays Layer 2 multicast MAC forwarding entries for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays Layer 2 multicast MAC group entries for the master device.
Examples
# Display Layer 2 multicast MAC forwarding entries for VLAN 2.
<Sysname> display l2-multicast mac forwarding vlan 2
Total 1 MAC entries.
VLAN 2: Total 1 MAC entries.
MAC group address: 0100-5e01-0101
Host slots (0 in total):
Host ports (3 in total):
GE1/0/1
GE1/0/2
GE1/0/3
Table 10 Command output
Field |
Description |
Total 1 MAC entries |
Total number of Layer 2 multicast MAC forwarding entries. |
VLAN 2: Total 1 MAC entries |
Total number of Layer 2 multicast MAC forwarding entries in VLAN 2. |
MAC group address |
Address of the MAC multicast group. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (3 in total) |
Member ports, and the total number of member ports. |
dot1p-priority (IGMP-snooping view)
Use dot1p-priority to set the 802.1p priority for IGMP messages globally.
Use undo dot1p-priority to restore the default.
Syntax
dot1p-priority priority-number
undo dot1p-priority
Default
The 802.1p priority for IGMP messages is not configured.
Views
IGMP-snooping view
Predefined user roles
Parameters
priority-number: Specifies an 802.1p priority for IGMP messages, in the range of 0 to 7. A higher value means a higher priority.
Usage guidelines
You can set the 802.1p priority globally for all VLANs in IGMP-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global 802.1p priority for IGMP messages to 3.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] dot1p-priority 3
Related commands
drop-unknown (IGMP-snooping view)
Use drop-unknown to enable dropping unknown multicast data globally.
Use undo drop-unknown to disable dropping unknown multicast data globally.
Syntax
drop-unknown
undo drop-unknown
Default
Dropping unknown multicast data is disabled, and unknown multicast data is flooded.
Views
IGMP-snooping view
Predefined user roles
network-admin
Usage guidelines
You can enable this feature globally for all VLANs in IGMP-snooping view or for a VLAN in VLAN view.
The igmp-snooping drop-unknown command in VLAN view and the drop-unknown command in IGMP-snooping view are mutually exclusive. You cannot configure them on the same device.
Examples
# Enable dropping unknown multicast data globally.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] drop-unknown
Related commands
igmp-snooping drop-unknown
enable (IGMP-snooping view)
Use enable to enable IGMP snooping for VLANs.
Use undo enable to disable IGMP snooping for VLANs.
Syntax
enable vlan vlan-list
undo enable vlan vlan-list
Default
IGMP snooping is disabled for a VLAN.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094.
Usage guidelines
You must enable IGMP snooping globally before you enable IGMP snooping for VLANs.
You can enable IGMP snooping for the specified VLANs in IGMP-snooping view or for a VLAN in VLAN view. For a VLAN, the configuration in IGMP-snooping view has the same priority as the configuration in VLAN view, and the most recent configuration takes effect.
Examples
# Enable IGMP snooping globally, and enable IGMP snooping for VLAN 2 through VLAN 10.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] enable vlan 2 to 10
Related commands
· igmp-snooping
· igmp-snooping enable
entry-limit (IGMP-snooping view)
Use entry-limit to set the maximum number of IGMP snooping forwarding entries, including dynamic entries and static entries globally.
Use undo entry-limit to restore the default.
Syntax
entry-limit limit
undo entry-limit
Default
The setting is 4294967295.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
limit: Specifies the maximum number of IGMP snooping forwarding entries, in the range of 0 to 4294967295.
Examples
# Set the global maximum number of IGMP snooping forwarding entries to 512.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] entry-limit 512
fast-leave (IGMP-snooping view)
Use fast-leave to enable fast-leave processing globally.
Use undo fast-leave to disable fast-leave processing globally.
Syntax
fast-leave [ vlan vlan-list ]
undo fast-leave [ vlan vlan-list ]
Default
Fast-leave processing is disabled.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
The fast-leave processing feature enables the device to immediately remove a port from the forwarding entry for a multicast group when the port receives a leave message.
You can enable fast-leave processing globally for all ports in IGMP-snooping view or for a port in interface view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Globally enable fast-leave processing for VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] fast-leave vlan 2
Related commands
igmp-snooping fast-leave
group-policy (IGMP-snooping view)
Use group-policy to globally configure a multicast group policy to control the multicast groups that hosts can join.
Use undo group-policy to delete the configured global multicast group policy.
Syntax
group-policy acl-number [ vlan vlan-list ]
undo group-policy [ vlan vlan-list ]
Default
No multicast group policies exist. Hosts can join any multicast groups.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
acl-number: Specifies an IPv4 basic or advanced ACL by its number in the range of 2000 to 3999. Hosts can join only the multicast groups that the ACL permits. If the ACL does not exist or have valid rules, hosts cannot join multicast groups.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
When you configure a rule in the IPv4 ACL, follow these restrictions and guidelines:
· In a basic ACL, the source source-address source-wildcard option specifies a multicast group address.
· In an advanced ACL, the source source-address source-wildcard option specifies a multicast source address. The destination dest-address dest-wildcard option specifies a multicast group address.
To match the following IGMP reports, set the source source-address source-wildcard option to 0.0.0.0:
? IGMPv1 and IGMPv2 reports.
? IGMPv3 IS_EX and IGMPv3 TO_EX reports that do not carry multicast source addresses.
· Among the other optional parameters, only the fragment keyword and the time-range time-range-name option take effect.
You can configure different ACLs for all ports in different VLANs. If you configure multiple ACLs for all ports in the same VLAN, the most recent configuration takes effect.
This command takes effect only on the multicast groups that a port joins dynamically.
You can configure a multicast group policy globally for all ports in IGMP-snooping view or for a port in interface view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Configure a multicast group policy for VLAN 2 so that hosts in VLAN 2 can join only multicast group 225.1.1.1.
<Sysname> system-view
[Sysname] acl basic 2000
[Sysname-acl-ipv4-basic-2000] rule permit source 225.1.1.1 0
[Sysname-acl-ipv4-basic-2000] quit
[Sysname] igmp-snooping
[Sysname-igmp-snooping] group-policy 2000 vlan 2
Related commands
igmp-snooping group-policy
host-aging-time (IGMP-snooping view)
Use host-aging-time to set the aging timer for dynamic member ports globally.
Use undo host-aging-time to restore the default.
Syntax
host-aging-time interval
undo host-aging-time
Default
The aging timer for dynamic member ports is 260 seconds.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic member ports, in the range of 1 to 8097894 seconds.
Usage guidelines
To avoid mistakenly deleting multicast group members, set the aging timer for dynamic member ports to be greater than the value calculated by using the following formula:
[ IGMP general query interval ] + [ maximum response time for IGMP general queries ]
H3C recommends that you set the aging timer of dynamic member ports to the value calculated by using the following formula:
[ IGMP general query interval ] × 2 + [ maximum response time for IGMP general queries ]
You can set the timer globally for all VLANs in IGMP-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global aging timer for dynamic member ports to 300 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] host-aging-time 300
Related commands
igmp-snooping host-aging-time
igmp-snooping
Use igmp-snooping to enable IGMP snooping globally and enter IGMP-snooping view.
Use undo igmp-snooping to disable IGMP snooping globally.
Syntax
igmp-snooping
undo igmp-snooping
Default
IGMP snooping is disabled globally.
Views
System view
Predefined user roles
network-admin
Examples
# Enable IGMP snooping globally, and enter IGMP-snooping view.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping]
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping dot1p-priority
Use igmp-snooping dot1p-priority to set the 802.1p priority for IGMP messages in a VLAN.
Use undo igmp-snooping dot1p-priority to restore the default.
igmp-snooping dot1p-priority priority-number
undo igmp-snooping dot1p-priority
Default
The 802.1p priority for IGMP messages is not configured.
Views
VLAN view
Predefined user roles
network-admin
Parameters
priority-number: Specifies an 802.1p priority for IGMP messages, in the range of 0 to 7. A higher value means a higher priority.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
You can set the 802.1p priority for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable IGMP snooping, and set the 802.1p priority for IGMP messages to 3.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping dot1p-priority 3
Related commands
· dot1p-priority (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping drop-unknown
Use igmp-snooping drop-unknown to enable dropping unknown multicast data for a VLAN.
Use undo igmp-snooping drop-unknown to disable dropping unknown multicast data for a VLAN.
Syntax
igmp-snooping drop-unknown
undo igmp-snooping drop-unknown
Default
Dropping unknown multicast data in a VLAN is disabled, and unknown multicast data is flooded in the VLAN.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
You can enable this feature for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view.
The igmp-snooping drop-unknown command in VLAN view and the drop-unknown command in IGMP-snooping view are mutually exclusive. You cannot configure them on the same device.
Examples
# In VLAN 2, enable IGMP snooping, and enable 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
Related commands
· drop-unknown (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping enable
Use igmp-snooping enable to enable IGMP snooping for a VLAN.
Use undo igmp-snooping enable to disable IGMP snooping for a VLAN.
Syntax
igmp-snooping enable
undo igmp-snooping enable
Default
IGMP snooping is disabled in a VLAN.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable IGMP snooping globally before you execute this command.
You can enable IGMP snooping for a VLAN in VLAN view or for the specified VLANs in IGMP-snooping view. For a VLAN, the configuration in VLAN view has the same priority as the configuration in IGMP-snooping view, and the most recent configuration takes effect.
Examples
# Enable IGMP snooping globally, and enable IGMP snooping for VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
Related commands
· enable (IGMP-snooping view)
· igmp-snooping
igmp-snooping fast-leave
Use igmp-snooping fast-leave to enable fast-leave processing on a port.
Use undo igmp-snooping fast-leave to disable fast-leave processing on a port.
Syntax
igmp-snooping fast-leave [ vlan vlan-list ]
undo igmp-snooping fast-leave [ vlan vlan-list ]
Default
Fast-leave processing is disabled on a port.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
The fast-leave processing feature enables the device to immediately remove a port from the forwarding entry for a multicast group when the port receives a leave message.
You can enable fast-leave processing for a port in interface view or globally for all ports in IGMP-snooping view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# On GigabitEthernet 1/0/1, enable fast-leave processing for VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping fast-leave vlan 2
Related commands
fast-leave (IGMP-snooping view)
igmp-snooping general-query source-ip
Use igmp-snooping general-query source-ip to configure the source IP address for IGMP general queries.
Use undo igmp-snooping general-query source-ip to restore the default.
Syntax
igmp-snooping general-query source-ip ip-address
undo igmp-snooping general-query source-ip
Default
In a VLAN, the source IP address of IGMP general queries is the IP address of the current VLAN interface. If the current VLAN interface does not have an IP address, the source IP address is 0.0.0.0.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ip-address: Specifies a source IP address for IGMP general queries.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
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
Related commands
· igmp-snooping enable
igmp-snooping group-limit
Use igmp-snooping group-limit to set the maximum number of multicast groups that a port can join.
Use undo igmp-snooping group-limit to restore the default.
Syntax
igmp-snooping group-limit limit [ vlan vlan-list ]
undo igmp-snooping group-limit [ vlan vlan-list ]
Default
The default setting is 4294967295.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
limit: Specifies the maximum number of multicast groups that a port can join, in the range of 0 to 4294967295.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
This command takes effect only on the multicast groups that a port joins dynamically.
Examples
# On GigabitEthernet 1/0/1, set the maximum number of multicast groups the port can join in VLAN 2 to 10.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping group-limit 10 vlan 2
igmp-snooping group-policy
Use igmp-snooping group-policy to configure a multicast group policy on a port to control the multicast groups that hosts attached to the port can join.
Use undo igmp-snooping group-policy to delete the multicast group policy on a port.
Syntax
igmp-snooping group-policy acl-number [ vlan vlan-list ]
undo igmp-snooping group-policy [ vlan vlan-list ]
Default
No multicast group policies exist on a port. Hosts attached to the port can join any multicast groups.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
acl-number: Specifies an IPv4 basic or advanced ACL by its number in the range of 2000 to 3999. Hosts can join only the multicast groups that the ACL permits. If the ACL does not exist or have valid rules, hosts cannot join multicast groups.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
When you configure a rule in the IPv4 ACL, follow these restrictions and guidelines:
· In a basic ACL, the source source-address source-wildcard option specifies a multicast group address.
· In an advanced ACL, the source source-address source-wildcard option specifies a multicast source address. The destination dest-address dest-wildcard option specifies a multicast group address.
To match the following IGMP reports, set the source source-address source-wildcard option to 0.0.0.0:
? IGMPv1 and IGMPv2 reports.
? IGMPv3 IS_EX and IGMPv3 TO_EX reports that do not carry multicast source addresses.
· Among the other optional parameters, only the fragment keyword and the time-range time-range-name option take effect.
You can configure different ACLs for a port in different VLANs. If you configure multiple ACLs for a port in the same VLAN, the most recent configuration takes effect.
This command takes effect only on the multicast groups that a port joins dynamically.
You can configure a multicast group policy for a port in interface view or globally for all ports in IGMP-snooping view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# On GigabitEthernet 1/0/1, configure a multicast group policy for VLAN 2 so that hosts in VLAN 2 can join only multicast group 225.1.1.1.
<Sysname> system-view
[Sysname] acl basic 2000
[Sysname-acl-ipv4-basic-2000] rule permit source 225.1.1.1 0
[Sysname-acl-ipv4-basic-2000] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping group-policy 2000 vlan 2
Related commands
group-policy (IGMP-snooping view)
igmp-snooping host-aging-time
Use igmp-snooping host-aging-time to set the aging timer for dynamic member ports in a VLAN.
Use undo igmp-snooping host-aging-time to restore the default.
Syntax
igmp-snooping host-aging-time interval
undo igmp-snooping host-aging-time
Default
The default setting is 260 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic member ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
To avoid mistakenly deleting multicast group members, set the aging timer for dynamic member ports to be greater than the value calculated by using the following formula:
[ IGMP general query interval ] + [ maximum response time for IGMP general queries ]
H3C recommends that you set the aging timer of dynamic member ports to the value calculated by using the following formula:
[ IGMP general query interval ] × 2 + [ maximum response time for IGMP general queries ]
You can set the timer for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable IGMP snooping, and set the aging timer for dynamic member ports to 300 seconds.
<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
Related commands
· host-aging-time (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping host-join
Use igmp-snooping host-join to configure a port as a simulated member host for a multicast group.
Use undo igmp-snooping host-join to delete the simulated joining configuration.
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 | all }
Default
A port is not configured as a simulated member host for multicast groups.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
group-address: Specifies a multicast group in the range of 224.0.1.0 to 239.255.255.255.
source-ip source-address: Specifies a multicast source by its IP address. If you specify a multicast source, this command configures the port as a simulated member host for a multicast source and group. If you do not specify a multicast source, this command configures the port as a simulated member host for a multicast group. This option takes effect on IGMPv3 snooping devices.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
all: Specifies all multicast groups.
Usage guidelines
The version of IGMP running on a simulated member host is the same as the version of IGMP snooping running on the port. The port ages out in the same way as a dynamic member port.
Examples
# Configure GigabitEthernet 1/0/1 as a simulated member host of the multicast source and group (1.1.1.1, 232.1.1.1) in VLAN 2.
[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 gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping host-join 232.1.1.1 source-ip 1.1.1.1 vlan 2
igmp-snooping last-member-query-interval
Use igmp-snooping last-member-query-interval to set the IGMP last member query interval (interval for sending IGMP group-specific queries) for a VLAN.
Use undo igmp-snooping last-member-query-interval to restore the default.
Syntax
igmp-snooping last-member-query-interval interval
undo igmp-snooping last-member-query-interval
Default
The IGMP last member query interval is 1 second.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an IGMP last member query interval in the range of 1 to 25 seconds.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
You can set the interval for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable IGMP snooping, and set the IGMP last member query interval to 3 seconds.
<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
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
· last-member-query-interval (IGMP-snooping view)
igmp-snooping leave source-ip
Use igmp-snooping leave source-ip to configure the source IP address for IGMP leave messages.
Use undo igmp-snooping leave source-ip to restore the default.
Syntax
igmp-snooping leave source-ip ip-address
undo igmp-snooping leave source-ip
Default
The source IP address of IGMP leave messages is the IP address of the current VLAN interface. If the current VLAN interface does not have an IP address, the source IP address is 0.0.0.0.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ip-address: Specifies a source IP address for IGMP leave messages.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable IGMP snooping, and specify 10.1.1.1 as the source IP address of IGMP leave messages.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping leave source-ip 10.1.1.1
Related commands
· igmp-snooping enable
igmp-snooping max-response-time
Use igmp-snooping max-response-time to set the maximum response time for IGMP general queries in a VLAN.
Use undo igmp-snooping max-response-time to restore the default.
Syntax
igmp-snooping max-response-time interval
undo igmp-snooping max-response-time
Default
The maximum response time for IGMP general queries is 10 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies the maximum response time for IGMP general queries, in the range of 1 to 3174 seconds.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
To avoid mistakenly deleting multicast group members, set the maximum response time for IGMP general queries to be less than the IGMP general query interval.
You can set the time for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable IGMP snooping, and set the maximum response time for IGMP general queries to 5 seconds.
<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
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
· igmp-snooping query-interval
· max-response-time (IGMP-snooping view)
igmp-snooping overflow-replace
Use igmp-snooping overflow-replace to enable the multicast group replacement feature on a port.
Use undo igmp-snooping overflow-replace to disable the multicast group replacement feature on a port.
Syntax
igmp-snooping overflow-replace [ vlan vlan-list ]
undo igmp-snooping overflow-replace [ vlan vlan-list ]
Default
The multicast group replacement feature is disabled.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
This command takes effect only on the multicast groups that a port joins dynamically.
You can enable the multicast group replacement feature for a port in interface view or globally for all ports in IGMP-snooping view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# On GigabitEthernet 1/0/1, enable the multicast group replacement feature for VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping overflow-replace vlan 2
Related commands
overflow-replace (IGMP-snooping view)
igmp-snooping querier
Use igmp-snooping querier to enable the IGMP snooping querier.
Use undo igmp-snooping querier to disable the IGMP snooping querier.
Syntax
igmp-snooping querier
undo igmp-snooping querier
Default
The IGMP snooping querier is disabled.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable IGMP snooping, and enable the IGMP snooping querier.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping querier
· enable (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping query-interval
Use igmp-snooping query-interval to set the IGMP general query interval for a VLAN.
Use undo igmp-snooping query-interval to restore the default.
Syntax
igmp-snooping query-interval interval
undo igmp-snooping query-interval
Default
The IGMP general query interval is 125 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an IGMP general query interval in the range of 2 to 31744 seconds.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
To avoid mistakenly deleting multicast group members, set the IGMP general query interval to be greater than the maximum response time for IGMP general queries.
Examples
# In VLAN 2, enable IGMP snooping, and set the IGMP general query interval to 20 seconds.
<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
· enable (IGMP-snooping view)
· igmp-snooping enable
· igmp-snooping max-response-time
· igmp-snooping querier
· max-response-time
igmp-snooping report source-ip
Use igmp-snooping report source-ip to configure the source IP address for IGMP reports.
Use undo igmp-snooping report source-ip to restore the default.
Syntax
igmp-snooping report source-ip ip-address
undo igmp-snooping report source-ip
Default
The source IP address of IGMP reports is the IP address of the current VLAN interface. If the current VLAN interface does not have an IP address, the source IP address is 0.0.0.0.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ip-address: Specifies a source IP address for IGMP reports.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable IGMP snooping, and specify 10.1.1.1 as the source IP address of IGMP reports.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping report source-ip 10.1.1.1
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping router-aging-time
Use igmp-snooping router-aging-time to set the aging timer for dynamic router ports in a VLAN.
Use undo igmp-snooping router-aging-time to restore the default.
Syntax
igmp-snooping router-aging-time interval
undo igmp-snooping router-aging-time
Default
The aging timer for dynamic router ports is 260 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic router ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
You can set the timer for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable IGMP snooping, and set the aging timer for dynamic router ports to 100 seconds.
<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
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
· router-aging-time (IGMP-snooping view)
igmp-snooping router-port-deny
Use igmp-snooping router-port-deny to disable a port from becoming a dynamic router port.
Use undo igmp-snooping router-port-deny to restore the default.
Syntax
igmp-snooping router-port-deny [ vlan vlan-list ]
undo igmp-snooping router-port-deny [ vlan vlan-list ]
Default
A port can become a dynamic router port.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you specify VLANs, this command takes effect only when the port belongs to the specified VLANs. If you do not specify a VLAN, this command takes effect on all VLANs to which the port belongs.
Examples
# Disable GigabitEthernet 1/0/1 from becoming a dynamic router port in VLAN 2.
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping router-port-deny vlan 2
igmp-snooping special-query source-ip
Use igmp-snooping special-query source-ip to configure the source IP address for IGMP group-specific queries.
Use undo igmp-snooping special-query source-ip to restore the default.
Syntax
igmp-snooping special-query source-ip ip-address
undo igmp-snooping special-query source-ip
Default
The source IP address of IGMP group-specific queries is one of the following:
· The source address of IGMP group-specific queries if the IGMP snooping querier of the VLAN has received IGMP general queries.
· The IP address of the current VLAN interface if the IGMP snooping querier does not receive an IGMP general query.
· 0.0.0.0 if the IGMP snooping querier does not receive an IGMP general query and the current VLAN interface does not have an IP address.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ip-address: Specifies a source IP address for IGMP group-specific queries.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable IGMP snooping, and specify 10.1.1.1 as the source IP address of IGMP group-specific queries.
[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
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
igmp-snooping static-group
Use igmp-snooping static-group to configure a port as a static member port of a multicast group.
Use undo igmp-snooping static-group to delete a static member port.
Syntax
igmp-snooping static-group group-address [ source-ip source-address ] vlan vlan-id
undo igmp-snooping static-group { group-address [ source-ip source-address ] vlan vlan-id | all }
Default
A port is not a static member port of multicast group or multicast source and group.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
group-address: Specifies a multicast group address in the range of 224.0.1.0 to 239.255.255.255.
source-ip source-address: Specifies a multicast source by its IP address. If you specify a multicast source, this command configures the port as a static member port for a multicast source and group. If you do not specify a multicast source, this command configures the port as a static member port for a multicast group. This option takes effect on IGMPv3 snooping devices.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
all: Specifies all multicast groups.
Examples
# Configure GigabitEthernet 1/0/1 as a static member port of the multicast source and group (1.1.1.1, 225.0.0.1) 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 version 3
[Sysname-vlan2] quit
[Sysname] interface Gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping static-group 225.0.0.1 source-ip 1.1.1.1 vlan 2
igmp-snooping static-router-port
Use igmp-snooping static-router-port to configure a port as a static router port.
Use undo igmp-snooping static-router-port to delete a static router port.
Syntax
igmp-snooping static-router-port vlan vlan-id
undo igmp-snooping static-router-port { all | vlan vlan-id }
Default
A port is not a static router port.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
all: Specifies all VLANs.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
Examples
# Configure GigabitEthernet 1/0/1 as a static router port in VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping static-router-port vlan 2
igmp-snooping version
Use igmp-snooping version to specify an IGMP snooping version for a VLAN.
Use undo igmp-snooping version to restore the default.
Syntax
igmp-snooping version version-number
undo igmp-snooping version
Default
The IGMP snooping version in a VLAN is 2.
Views
VLAN view
Predefined user roles
network-admin
Parameters
version-number: Specifies an IGMP snooping version, 2 or 3.
Usage guidelines
You must enable IGMP snooping for a VLAN before you execute this command.
You can specify the version for a VLAN in VLAN view or for the specified VLANs in IGMP-snooping view. For a VLAN, the configuration in VLAN view has the same priority as the configuration in IGMP-snooping view, and the most recent configuration takes effect.
Examples
# In VLAN 2, enable IGMP snooping, and specify IGMP snooping 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
Related commands
· igmp-snooping enable
· version (IGMP-snooping view)
last-member-query-interval (IGMP-snooping view)
Use last-member-query-interval to set the IGMP last member query interval (interval for sending IGMP group-specific queries) globally.
Use undo last-member-query-interval to restore the default.
Syntax
last-member-query-interval interval
undo last-member-query-interval
Default
The IGMP last member query interval is 1 second.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies an IGMP last member query interval in the range of 1 to 25 seconds.
Usage guidelines
You can set the interval for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global IGMP last member query interval to 3 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] last-member-query-interval 3
Related commands
igmp-snooping last-member-query-interval
max-response-time (IGMP-snooping view)
Use max-response-time to set the maximum response time for IGMP general queries globally.
Use undo max-response-time to restore the default.
Syntax
max-response-time interval
undo max-response-time
Default
The maximum response time for IGMP general queries is 10 seconds.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies the maximum response time for IGMP general queries, in the range of 1 to 3174 seconds.
Usage guidelines
To avoid mistakenly deleting multicast group members, set the maximum response time for IGMP general queries to be less than the IGMP general query interval.
You can set the time for a VLAN in VLAN view or globally for all VLANs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global maximum response time for IGMP general queries to 5 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] max-response-time 5
Related commands
· igmp-snooping max-response-time
· igmp-snooping query-interval
overflow-replace (IGMP-snooping view)
Use overflow-replace to enable the multicast group replacement feature globally.
Use undo overflow-replace to disable the multicast group replacement feature globally.
Syntax
overflow-replace [ vlan vlan-list ]
undo overflow-replace [ vlan vlan-list ]
Default
The multicast group replacement feature is disabled globally.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
This command takes effect only on the multicast groups that a port joins dynamically.
You can enable the multicast group replacement feature globally for all ports in IGMP-snooping view or for a port in interface view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Globally enable the multicast group replacement feature for VLAN 2.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] overflow-replace vlan 2
Related commands
igmp-snooping overflow-replace
report-aggregation (IGMP-snooping view)
Use report-aggregation to enable IGMP report suppression.
Use undo report-aggregation to disable IGMP report suppression.
Syntax
report-aggregation
undo report-aggregation
Default
IGMP report suppression is enabled.
Views
IGMP-snooping view
Predefined user roles
network-admin
Examples
# Disable IGMP report suppression.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] undo report-aggregation
reset igmp-snooping group
Use reset igmp-snooping group to clear dynamic IGMP snooping group entries.
Syntax
reset igmp-snooping group { group-address [ source-address ] | all } [ vlan vlan-id ]
Views
User view
Predefined user roles
network-admin
Parameters
group-address: Specifies a multicast group address in the range of 224.0.1.0 to 239.255.255.255.
source-address: Specifies a multicast source address. If you do not specify a multicast source, this command clears dynamic IGMP snooping group entries for all multicast sources.
all: Specifies all multicast groups.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command clears dynamic IGMP snooping group entries for all VLANs.
Examples
# Clear all dynamic IGMP snooping group entries.
<Sysname> reset igmp-snooping group all
display igmp-snooping group
reset igmp-snooping router-port
Use reset igmp-snooping router-port to clear dynamic router port information.
Syntax
reset igmp-snooping router-port { all | vlan vlan-id }
Views
User view
Predefined user roles
network-admin
Parameters
all: Specifies all dynamic router ports.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command clears dynamic router port information for all VLANs.
Examples
# Clear information about all dynamic router ports.
<Sysname> reset igmp-snooping router-port all
Related commands
display igmp-snooping router-port
reset igmp-snooping statistics
Use reset igmp-snooping statistics to clear statistics for IGMP messages learned through IGMP snooping.
Syntax
reset igmp-snooping statistics
Views
User view
Predefined user roles
network-admin
Examples
# Clear the statistics for all IGMP messages learned through IGMP snooping.
<Sysname> reset igmp-snooping statistics
Related commands
display igmp-snooping statistics
router-aging-time (IGMP-snooping view)
Use router-aging-time to set the aging timer for dynamic router ports globally.
Use undo router-aging-time to restore the default.
Syntax
router-aging-time interval
undo router-aging-time
Default
The aging timer for dynamic router ports is 260 seconds.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic router ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You can set the timer globally for all VLANs in IGMP-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global aging timer for dynamic router ports to 100 seconds.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] router-aging-time 100
Related commands
igmp-snooping router-aging-time
version (IGMP-snooping view)
Use version to specify an IGMP snooping version for VLANs.
Use undo version to restore the default.
Syntax
version version-number vlan vlan-list
undo version vlan vlan-list
Default
The IGMP snooping version in a VLAN is 2.
Views
IGMP-snooping view
Predefined user roles
network-admin
Parameters
version-number: Specifies an IGMP snooping version, 2 or 3.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094.
Usage guidelines
You must enable IGMP snooping for the specified VLANs before you execute this command.
You can specify the version for the specified VLANs in IGMP-snooping view or for a VLAN in VLAN view. For a VLAN, the configuration in IGMP-snooping view has the same priority as the configuration in VLAN view, and the most recent configuration takes effect.
Examples
# Enable IGMP snooping for VLAN 2 through VLAN 10, and specify IGMP snooping version 3 for these VLANs.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] enable vlan 2 to 10
[Sysname-igmp-snooping] version 3 vlan 2 to 10
Related commands
· enable (IGMP-snooping view)
· igmp-snooping enable
MLD snooping commands
The WX1800H series access controllers do not support the slot keyword or the slot-number argument.
display ipv6 l2-multicast ip
Use display ipv6 l2-multicast ip to display information about Layer 2 IPv6 multicast groups.
Syntax
display ipv6 l2-multicast ip [ group ipv6-group-address | source ipv6-source-address ] * [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group ipv6-group-address: Specifies an IPv6 multicast group by its IPv6 address. If you do not specify an IPv6 multicast group, this command displays information about all Layer 2 IPv6 multicast groups.
source ipv6-source-address: Specifies an IPv6 multicast source by its IPv6 address. If you do not specify an IPv6 multicast source, this command displays information about Layer 2 IPv6 multicast groups for all IPv6 multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays information about Layer 2 IPv6 multicast groups for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information about Layer 2 IP multicast groups for the master device.
Examples
# Display information about Layer 2 IPv6 multicast groups for VLAN 2.
<Sysname> display ipv6 l2-multicast ip vlan 2
Total 1 entries.
VLAN 2: Total 1 IP entries.
(::, FF1E::101)
Attribute: static, success
Host slots (0 in total):
Host ports (1 in total):
GE1/0/1 (S, SUC)
Table 11 Command output
Field |
Description |
Total 1 entries |
Total number of Layer 2 IPv6 multicast groups. |
VLAN 2: Total 1 IP entries |
Total number of Layer 2 IPv6 multicast groups in VLAN 2. |
(::, FF1E::101) |
(S, G) entry, where a double colon (::) in the S position means all IPv6 multicast sources. |
Attribute |
Entry attribute: · dynamic—The entry is created by a dynamic protocol. · static—The entry is created by a static protocol. · pim—The entry is created by IPv6 PIM. The device does not support this attribute in the current software version. · kernel—The entry is obtained from the kernel. · success—Processing succeeds. · fail—Processing fails. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
(S, SUC) |
Port attribute: · D—Dynamic port. · S—Static port. · P—IPv6 PIM port. The device does not support this attribute in the current software version. · K—Port obtained from the kernel. · R—Port learned from (*, *) entries. · W—Port learned from (*, G) entries. · SUC—Processing succeeds. · F—Processing fails. · BC—Broadcast port. The TRILL port floods IPv6 multicast data after the topology changes. The device does not support this attribute in the current software version. |
display ipv6 l2-multicast ip forwarding
Use display ipv6 l2-multicast ip forwarding to display Layer 2 IPv6 multicast group entries.
Syntax
display ipv6 l2-multicast ip forwarding [ group ipv6-group-address | source ipv6-source-address ] * [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group ipv6-group-address: Specifies an IPv6 multicast group by its IPv6 address. If you do not specify an IPv6 multicast group, this command displays Layer 2 IPv6 multicast group entries for all IPv6 multicast groups.
source ipv6-source-address: Specifies an IPv6 multicast source by its IPv6 address. If you do not specify an IPv6 multicast source, this command displays Layer 2 IPv6 multicast group entries for all IPv6 multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays Layer 2 IPv6 multicast group entries for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays Layer 2 IPv6 multicast group entries for the master device.
Examples
# Display Layer 2 IPv6 multicast group entries for VLAN 2.
<Sysname> display ipv6 l2-multicast ip forwarding vlan 2
Total 1 entries.
VLAN 2: Total 1 IP entries.
(::, FF1E::101)
Host slots (0 in total):
Host ports (3 in total):
GigabitEthernet1/0/1
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Table 12 Command output
Field |
Description |
Total 1 entries |
Total number of Layer 2 IPv6 multicast group entries. |
VLAN 2: Total 1 IP entries |
Total number of Layer 2 IPv6 multicast group entries in VLAN 2. |
(::, FF1E::101) |
(S, G) entry, where a double colon (::) in the S position means all IPv6 multicast sources. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (3 in total) |
Member ports, and the total number of member ports. |
display ipv6 l2-multicast mac
Use display ipv6 l2-multicast mac to display information about Layer 2 IPv6 MAC multicast groups.
Syntax
display ipv6 l2-multicast mac [ mac-address ] [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
mac-address: Specifies an IPv6 multicast MAC address. If you do not specify an IPv6 multicast MAC address, this command displays information about all Layer 2 IPv6 MAC multicast groups.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays information about Layer 2 IPv6 MAC multicast groups for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information about Layer 2 IPv6 MAC multicast groups for the master device.
Examples
# Display information about Layer 2 IPv6 MAC multicast groups for VLAN 2.
<Sysname> display ipv6 l2-multicast mac vlan 2
Total 1 MAC entries.
VLAN 2: Total 1 MAC entries.
MAC group address: 3333-0000-0101
Attribute: success
Host slots (0 in total):
Host ports (1 in total):
GE1/0/1
Table 13 Command output
Field |
Description |
Total 1 MAC entries |
Total number of Layer 2 IPv6 MAC multicast groups. |
VLAN 2: Total 1 MAC entries |
Total number of Layer 2 IPv6 MAC multicast groups in VLAN 2. |
MAC group address |
IPv6 address of the Layer 2 IPv6 MAC multicast group. |
Attribute |
Entry attribute: · success—Processing succeeds. · fail—Processing fails. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
display ipv6 l2-multicast mac forwarding
Use display ipv6 l2-multicast mac forwarding to display IPv6 Layer 2 MAC forwarding entries.
Syntax
display ipv6 l2-multicast mac forwarding [ mac-address ] [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
mac-address: Specifies an IPv6 MAC multicast group by its IPv6 MAC address. If you do not specify an IPv6 MAC multicast group, this command displays IPv6 Layer 2 MAC forwarding entries for all IPv6 MAC multicast groups.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays IPv6 Layer 2 MAC forwarding entries for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays IPv6 Layer 2 MAC forwarding entries for the master device.
Examples
# Display IPv6 Layer 2 MAC forwarding entries for VLAN 2.
<Sysname> display ipv6 l2-multicast mac forwarding vlan 2
Total 1 MAC entries.
VLAN 2: Total 1 MAC entries.
MAC group address: 3333-0000-0101
Host slots (0 in total):
Host ports (3 in total):
GigabitEthernet1/0/1
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Table 14 Command output
Field |
Description |
Total 1 MAC entries |
Total number of IPv6 Layer 2 MAC forwarding entries. |
VLAN 2: Total 1 MAC entries |
Total number of IPv6 Layer 2 MAC forwarding entries in VLAN 2. |
MAC group address |
Address of the IPv6 MAC multicast group. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (3 in total) |
Member ports, and the total number of member ports. |
display mld-snooping
Use display mld-snooping to display MLD snooping status.
Syntax
display mld-snooping [ global | vlan vlan-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
global: Displays the global MLD snooping status.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
Usage guidelines
If you do not specify any parameters, this command displays the global MLD snooping status and the MLD snooping status in all VLANs.
Examples
# Display the global MLD snooping status and the MLD snooping status for all VLANs.
<Sysname> display mld-snooping
MLD snooping information: Global
MLD snooping: Enabled
Drop-unknown: Disabled
Host-aging-time: 260s
Router-aging-time: 260s
Max-response-time: 10s
Last-listener-query-interval: 1s
Report-aggregation: Enabled
Dot1p-priority: --
MLD snooping information: VLAN 1
MLD snooping: Enabled
Drop-unknown: Disabled
Version: 1
Host-aging-time: 260s
Router-aging-time: 260s
Max-response-time: 10s
Last-listener-query-interval: 1s
Querier: Disabled
Query-interval: 125s
General-query source IP: FE80::2FF:FFFF:FE00:1
Special-query source IP: FE80::2FF:FFFF:FE00:1
Report source IP: FE80::2FF:FFFF:FE00:2
Done source IP: FE80::2FF:FFFF:FE00:3
Dot1p-priority: 2
MLD snooping information: VLAN 10
MLD snooping: Enabled
Drop-unknown: Enabled
Version: 2
Host-aging-time: 260s
Router-aging-time: 260s
Max-response-time: 10s
Last-listener-query-interval: 1s
Querier: Disabled
Query-interval: 125s
General-query source IP: FE80::2FF:FFFF:FE00:1
Special-query source IP: FE80::2FF:FFFF:FE00:1
Report source IP: FE80::2FF:FFFF:FE00:2
Done source IP: FE80::2FF:FFFF:FE00:3
Dot1p-priority: --
Table 15 Command output
Field |
Description |
MLD snooping |
MLD snooping status: · Enabled. · Disabled. |
Drop-unknown |
Status of dropping unknown IPv6 multicast data: · Enabled. · Disabled. |
Version |
MLD snooping version. |
Host-aging-time |
Aging timer for the dynamic member port. |
Router-aging-time |
Aging timer for the dynamic router port. |
Max-response-time |
Maximum time for responding to MLD general queries. |
Last-listener-query-interval |
Interval for sending MLD multicast-address-specific queries. |
Report-aggregation |
Status of MLD report suppression: · Enabled. · Disabled. |
Dot1p-priority |
802.1p priority for MLD messages. This field displays two hyphens (--) if the 802.1p priority is not configured. |
Querier |
Status of MLD snooping querier: · Enabled. · Disabled. |
Query-interval |
Interval for sending MLD general queries. |
General-query source IP |
Source IP address of MLD general queries. |
Special-query source IP |
Source IP address of MLD multicast-address-specific queries. |
Report source IP |
Source IP address of MLD reports. |
Done source IP |
Source IP address of MLD done messages. |
display mld-snooping group
Use display mld-snooping group to display dynamic MLD snooping group entries.
Syntax
display mld-snooping group [ ipv6-group-address | ipv6-source-address ] * [ vlan vlan-id ] [ verbose ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ipv6-group-address: Specifies an IPv6 multicast group address. The value range for this argument is FFxy::/16 (excluding FFx1::/16 and FFx2::/16), where "x" and "y" represent any hexadecimal numbers in the range of 0 to F. If you do not specify an IPv6 multicast group, this command displays dynamic MLD snooping group entries for all IPv6 multicast groups.
ipv6-source-address: Specifies an IPv6 multicast source by its IPv6 address. If you do not specify an IPv6 multicast source, this command displays dynamic MLD snooping group entries for all IPv6 multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays dynamic MLD snooping group entries for all VLANs.
verbose: Displays detailed information about dynamic MLD snooping group entries. If you do not specify this keyword, the command displays brief information about dynamic MLD snooping group entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays dynamic MLD snooping group entries for the master device.
Examples
# Display dynamic MLD snooping group entries for VLAN 2.
<Sysname> display mld-snooping group vlan 2 verbose
Total 1 entries.
VLAN 2: Total 1 entries.
(::,FF1E::101)
Attribute: local port
FSM information: normal
Host slots (0 in total):
Host ports (1 in total):
WLAN-BSS1/0/20 (00:03:23)
Table 16 Command output
Field |
Description |
Total 1 entries |
Total number of dynamic MLD snooping group entries. |
VLAN 2: Total 1 entries |
Total number of dynamic MLD snooping group entries in VLAN 2. |
(::, FF1E::101) |
(S, G) entry, where a double colon (::) in the S position means all IPv6 multicast sources. |
Attribute |
Entry attribute: · global port—The entry has a global port. · local port—The entry has a port that resides on the specified card. · slot—The entry has a port that resides on a card other than the specified card. |
FSM information |
Finite state machine information of the entry: · delete—The entry attributes have been deleted. · dummy—The entry is a new temporary entry. · no info—The entry does not exist. · normal—The entry is a correct entry. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
(00:03:23) |
Remaining aging time for the dynamic member port. For a global port, this field is always displayed. For a non-global port, this filed is displayed when one of the following conditions exists: · The port is on the specified member device. · The port is on the master device and no member device is specified. |
Related commands
reset mld-snooping group
display mld-snooping router-port
Use display mld-snooping router-port to display dynamic router port information.
Syntax
display mld-snooping router-port [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays dynamic router port information for all VLANs.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays dynamic router port information for the master device.
Examples
# Display dynamic router port information for VLAN 2.
<Sysname> display mld-snooping router-port vlan 2
VLAN 2:
Router slots (0 in total):
Router ports (2 in total):
WLAN-BSS1/0/10 (00:01:30)
WLAN-BSS1/0/20 (00:00:23)
Table 17 Command output
Field |
Description |
VLAN ID. |
|
Router slots (0 in total) |
Member IDs and total number of the member devices that have dynamic router ports, except for the specified member device or the master device when no member device is specified. |
Router ports (2 in total) |
Dynamic router ports, and the total number of dynamic router ports. |
(00:01:30) |
Remaining aging time for the dynamic router port. For a global port, this field is always displayed. For a non-global port, this filed is displayed when one of the following conditions exists: · The port is on the specified member device. · The port is on the master device and no member device is specified. |
Related commands
reset mld-snooping router-port
display mld-snooping static-group
Use display mld-snooping static-group to display static MLD snooping group entries.
Syntax
display mld-snooping static-group [ ipv6-group-address | ipv6-source-address ] * [ vlan vlan-id ] [ verbose ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ipv6-group-address: Specifies an IPv6 multicast group by its IPv6 address. The value range for this argument is FFxy::/16 (excluding FFx1::/16 and FFx2::/16), where "x" and "y" represent any hexadecimal numbers in the range of 0 to F. If you do not specify an IPv6 multicast group, this command displays static MLD snooping group entries for all IPv6 multicast groups.
ipv6-source-address: Specifies an IPv6 multicast source by its IPv6 address. If you do not specify an IPv6 multicast source, this command displays static MLD snooping group entries for all IPv6 multicast sources.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command displays static MLD snooping group entries for all VLANs.
verbose: Displays detailed information about static MLD snooping group entries. If you do not specify the keyword, this command displays brief information about static MLD snooping group entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays static MLD snooping group entries for the master device.
Examples
# Display detailed information about static MLD snooping group entries for VLAN 2.
<Sysname> display mld-snooping static-group vlan 2 verbose
Total 1 entries.
VLAN 2: Total 1 entries.
(::,FF1E::101)
Attribute: local port
FSM information: normal
Host slots (0 in total):
Host ports (1 in total):
GE1/0/2
Table 18 Command output
Field |
Description |
Total 1 entries |
Total number of static MLD snooping group entries. |
VLAN 2: Total 1 entries |
Total number of static MLD snooping group entries in VLAN 2. |
(::, FF1E::101) |
(S, G) entry, where a double colon (::) in the S position means all IPv6 multicast sources. |
Attribute |
Entry attribute: · global port—The entry has a global port. · local port—The entry has a port that resides on the specified card. · slot—The entry has a port that resides on a card other than the specified card. |
FSM information |
Finite state machine information of the entry: · delete—The entry attributes have been deleted. · dummy—The entry is a new temporary entry. · no info—The entry does not exist. · normal—The entry is a correct entry. |
Host slots (0 in total) |
Member IDs and total number of the member devices that have member ports, except for the specified member device or the master device when no member device is specified. |
Host ports (1 in total) |
Member ports, and the total number of member ports. |
display mld-snooping static-router-port
Use display mld-snooping static-router-port to display static router port information.
Syntax
display mld-snooping static-router-port [ vlan vlan-id ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays static router port information for the master device.
Examples
# Display static router port information for VLAN 2.
<Sysname> display mld-snooping static-router-port vlan 2
VLAN 2:
Router slots (0 in total):
Router ports (2 in total):
GE1/0/1
GE1/0/2
Table 19 Command output
Field |
Description |
VLAN 2 |
VLAN ID. |
Router slots (0 in total) |
Member IDs and total number of the member devices that have static router ports, except for the specified member device or the master device when no member device is specified. |
Router ports (2 in total) |
Static router ports, and the total number of static router ports. |
display mld-snooping statistics
Use display mld-snooping statistics to display statistics for MLD messages learned through MLD snooping.
Syntax
display mld-snooping statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display statistics for MLD messages learned through MLD snooping.
<Sysname> display mld-snooping statistics
Received MLD general queries: 0
Received MLDv1 specific queries: 0
Received MLDv1 reports: 0
Received MLD dones: 0
Sent MLDv1 specific queries: 0
Received MLDv2 reports: 0
Received MLDv2 reports with right and wrong records: 0
Received MLDv2 specific queries: 0
Received MLDv2 specific sg queries: 0
Sent MLDv2 specific queries: 0
Sent MLDv2 specific sg queries: 0
Received IPv6 PIM hello: 0
Received error MLD messages: 0
Table 20 Command output
Field |
Description |
general queries |
Number of MLD general queries. |
specific queries |
Number of MLD multicast-address-specific queries. |
reports |
Number of MLD reports. |
dones |
Number of MLD done messages. |
reports with right and wrong records |
Number of MLD reports with correct and incorrect records. |
specific sg queries |
Number of MLD multicast-address-and-source-specific queries. |
IPv6 PIM hello |
Number of IPv6 PIM hello messages. The device does not support this field in the current software version. |
error MLD messages |
Number of MLD messages with errors. |
Related commands
reset mld-snooping statistics
dot1p-priority (MLD-snooping view)
Use dot1p-priority to set the 802.1p priority for MLD messages globally.
Use undo dot1p-priority to restore the default.
Syntax
dot1p-priority priority-number
undo dot1p-priority
Default
The 802.1p priority for MLD messages is not configured.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
priority-number: Specifies an 802.1p priority for MLD messages, in the range of 0 to 7. A higher value means a higher priority.
Usage guidelines
You can set the 802.1p priority globally for all VLANs in MLD-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the 802.1p priority for MLD messages to 3 globally.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] dot1p-priority 3
Related commands
drop-unknown (MLD-snooping view)
Use drop-unknown to enable dropping unknown IPv6 multicast data globally.
Use undo drop-unknown to disable dropping unknown IPv6 multicast data globally.
Syntax
drop-unknown
undo drop-unknown
Default
Dropping unknown IPv6 multicast data is disabled, and unknown IPv6 multicast data is flooded.
Views
MLD-snooping view
Predefined user roles
network-admin
Usage guidelines
You can enable this feature globally for all VLANs in MLD-snooping view or for a VLAN in VLAN view.
The mld-snooping drop-unknown command in VLAN view and the drop-unknown command in MLD-snooping view are mutually exclusive. You cannot configure them on the same device.
Examples
# Enable the device to drop unknown IPv6 multicast data globally.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] drop-unknown
Related commands
mld-snooping drop-unknown
enable (MLD-snooping view)
Use enable to enable MLD snooping for VLANs.
Use undo enable to disable MLD snooping for VLANs.
Syntax
enable vlan vlan-list
undo enable vlan vlan-list
Default
MLD snooping is disabled in a VLAN.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094.
Usage guidelines
You must globally enable MLD snooping before you execute this command.
You can enable MLD snooping for the specified VLANs in MLD-snooping view or for a VLAN in VLAN view. For a VLAN, the configuration in VLAN view has the same priority as the configuration in MLD-snooping view, and the most recent configuration takes effect.
Examples
# Enable MLD snooping globally, and enable MLD snooping for VLAN 2 through VLAN 10.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] enable vlan 2 to 10
Related commands
· mld-snooping
· mld-snooping enable
entry-limit (MLD-snooping view)
Use entry-limit to globally set the maximum number of MLD snooping forwarding entries, including dynamic entries and static entries.
Use undo entry-limit to restore the default.
Syntax
entry-limit limit
undo entry-limit
Default
The maximum number of MLD snooping forwarding entries is 4294967295.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
limit: Specifies the maximum number of MLD snooping forwarding entries, in the range of 0 to 4294967295.
Examples
# Set the global maximum number of MLD snooping forwarding entries to 512.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] entry-limit 512
fast-leave (MLD-snooping view)
Use fast-leave to enable fast-leave processing globally.
Use undo fast-leave to disable fast-leave processing globally.
Syntax
fast-leave [ vlan vlan-list ]
undo fast-leave [ vlan vlan-list ]
Default
Fast-leave processing is disabled.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect for all VLANs.
Usage guidelines
The fast-leave processing feature enables the device to immediately remove a port from the forwarding entry for an IPv6 multicast group when the port receives a done message.
You can enable fast-leave processing globally for all ports in MLD-snooping view or for a port in interface view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Globally enable MLD snooping fast-leave processing for VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] fast-leave vlan 2
Related commands
mld-snooping fast-leave
group-policy (MLD-snooping view)
Use group-policy to globally configure an IPv6 multicast group policy to control the IPv6 multicast groups that hosts can join.
Use undo group-policy to delete the configured global IPv6 multicast group policy.
Syntax
group-policy acl6-number [ vlan vlan-list ]
undo group-policy [ vlan vlan-list ]
Default
No IPv6 multicast group policies exist. Hosts can join any IPv6 multicast groups.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
acl6-number: Specifies an IPv6 basic or advanced ACL by its number in the range of 2000 to 3999. Hosts can join only IPv6 multicast groups that the ACL permits. If the ACL does not exist or have valid rules, hosts cannot join IPv6 multicast groups.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect for all VLANs.
Usage guidelines
When you configure a rule in the IPv6 ACL, follow these restrictions and guidelines:
· In a basic ACL, the source source-address source-prefix option specifies an IPv6 multicast group address.
· In an advanced ACL, the source source-address source-prefix option specifies an IPv6 multicast source address. The destination dest-address dest-prefix option specifies an IPv6 multicast group address.
To match the following MLD reports, set the source source-address source-prefix option to 0::0:
? MLDv1 reports.
? MLDv2 IS_EX and MLDv2 TO_EX reports that do not carry IPv6 multicast source addresses.
· Among the other optional parameters, only the fragment keyword and the time-range time-range-name option take effect.
You can configure different ACLs on a port in different VLANs. If you configure multiple ACLs on a port in the same VLAN, the most recent configuration takes effect.
This configuration takes effect only on the IPv6 multicast groups that the port joins dynamically.
You can configure an IPv6 multicast group policy globally for all ports in MLD-snooping view or for a port in interface view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Configure an IPv6 multicast group policy for VLAN 2 so that hosts in VLAN 2 can join only IPv6 multicast group FF03::101.
<Sysname> system-view
[Sysname] acl ipv6 basic 2000
[Sysname-acl-ipv6-basic-2000] rule permit source ff03::101 128
[Sysname-acl-ipv6-basic-2000] quit
[Sysname] mld-snooping
[Sysname-mld-snooping] group-policy 2000 vlan 2
Related commands
mld-snooping group-policy
host-aging-time (MLD-snooping view)
Use host-aging-time to set the aging timer for dynamic member ports globally.
Use undo host-aging-time to restore the default.
Syntax
host-aging-time interval
undo host-aging-time
Default
The aging timer for dynamic member ports is 260 seconds.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic member ports, in the range of 1 to 8097894 seconds.
Usage guidelines
To avoid mistakenly deleting IPv6 multicast group members, set the aging timer for dynamic member ports to be greater than the value calculated by using the following formula:
[ MLD general query interval ] + [ maximum response time for MLD general queries ]
H3C recommends that you set the aging timer of dynamic member ports to the value calculated by using the following formula:
[ MLD general query interval ] × 2 + [ maximum response time for MLD general queries ]
You can set the timer globally for all VLANs in MLD-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global aging timer for dynamic member ports to 300 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] host-aging-time 300
Related commands
mld-snooping host-aging-time
last-listener-query-interval (MLD-snooping view)
Use last-listener-query-interval to set the MLD last listener query interval (interval for sending MLD multicast-address-specific queries) globally.
Use undo last-listener-query-interval to restore the default.
Syntax
last-listener-query-interval interval
undo last-listener-query-interval
Default
The MLD last listener query interval is 1 second.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies an MLD last listener query interval in the range of 1 to 25 seconds.
Usage guidelines
You can set the interval for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global MLD last listener query interval to 3 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] last-listener-query-interval 3
Related commands
mld-snooping last-listener-query-interval
max-response-time (MLD-snooping view)
Use max-response-time to set the maximum response time for MLD general queries globally.
Use undo max-response-time to restore the default.
Syntax
max-response-time interval
undo max-response-time
Default
The maximum response time for MLD general queries is 10 seconds.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies the maximum response time for MLD general queries, in the range of 1 to 3174 seconds.
Usage guidelines
To avoid mistakenly deleting IPv6 multicast group members, set the maximum response time for MLD general queries to be less than the MLD general query interval.
You can set the time globally for all VLANs in MLD-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global maximum response time for MLD general queries to 5 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] max-response-time 5
Related commands
· mld-snooping max-response-time
mld-snooping
Use mld-snooping to enable MLD snooping globally and enter MLD-snooping view.
Use undo mld-snooping to disable MLD snooping globally.
Syntax
mld-snooping
undo mld-snooping
Default
MLD snooping is globally disabled.
Views
System view
Predefined user roles
network-admin
Examples
# Globally enable MLD snooping, and enter MLD-snooping view.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping]
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping done source-ip
Use mld-snooping done source-ip to configure the source IPv6 address for MLD done messages.
Use undo mld-snooping done source-ip to restore the default.
Syntax
mld-snooping done source-ip ipv6-address
undo mld-snooping done source-ip
Default
The source IPv6 address of the MLD done messages is the IPv6 link-local address of the current VLAN interface. If the current VLAN interface does not have an IPv6 link-local address, the source IPv6 address is FE80::02FF:FFFF:FE00:0001.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies a source IPv6 address for MLD done messages.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable MLD snooping, and specify FE80:0:0:1::1 as the source IPv6 address of MLD done messages.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping done source-ip fe80:0:0:1::1
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping dot1p-priority
Use mld-snooping dot1p-priority to set the 802.1p priority for MLD messages in a VLAN.
Use undo mld-snooping dot1p-priority to restore the default.
Syntax
mld-snooping dot1p-priority priority-number
undo mld-snooping dot1p-priority
Default
The 802.1p priority for MLD messages is not configured.
Views
VLAN view
Predefined user roles
network-admin
Parameters
priority-number: Specifies an 802.1p priority for MLD messages, in the range of 0 to 7. A higher value means a higher priority.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
You can set the 802.1p priority for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable MLD snooping, and set the 802.1p priority for MLD messages to 3.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping dot1p-priority 3
· dot1p-priority (MLD-snooping view)
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping drop-unknown
Use mld-snooping drop-unknown to enable dropping unknown IPv6 multicast data for a VLAN.
Use undo mld-snooping drop-unknown to disable dropping unknown IPv6 multicast data for a VLAN.
Syntax
mld-snooping drop-unknown
undo mld-snooping drop-unknown
Default
Dropping unknown IPv6 multicast data in a VLAN is disabled, and unknown IPv6 multicast data is flooded in the VLAN.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
You can enable this feature for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view.
The mld-snooping drop-unknown command in VLAN view and the drop-unknown command in MLD-snooping view are mutually exclusive. You cannot configure them on the same device.
Examples
# In VLAN 2, enable MLD snooping, and enable dropping unknown IPv6 multicast data.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping drop-unknown
Related commands
· drop-unknown (MLD-snooping view)
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping enable
Use mld-snooping enable to enable MLD snooping for a VLAN.
Use undo mld-snooping enable to disable MLD snooping for a VLAN.
Syntax
mld-snooping enable
undo mld-snooping enable
Default
MLD snooping is disabled in a VLAN.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable MLD snooping globally before you enable MLD snooping for a VLAN.
You can enable MLD snooping for a VLAN in VLAN view or for the specified VLANs in MLD-snooping view. For a VLAN, the configuration in VLAN view has the same priority as the configuration in MLD-snooping view, and the most recent configuration takes effect.
Examples
# Enable MLD snooping globally, and enable MLD snooping for VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
Related commands
· enable (MLD-snooping view)
· mld-snooping
mld-snooping fast-leave
Use mld-snooping fast-leave to enable fast-leave processing on a port.
Use undo mld-snooping fast-leave to disable fast-leave processing on a port.
Syntax
mld-snooping fast-leave [ vlan vlan-list ]
undo mld-snooping fast-leave [ vlan vlan-list ]
Default
Fast-leave processing is disabled on a port.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
The fast-leave processing feature enables the device to immediately remove a port from the forwarding entry for an IPv6 multicast group when the port receives a done message.
You can enable fast-leave processing for a port in interface view or globally for all ports in MLD-snooping view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Enable fast-leave processing for VLAN 2 on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping fast-leave vlan 2
Related commands
fast-leave (MLD-snooping view)
mld-snooping general-query source-ip
Use mld-snooping general-query source-ip to configure the source IPv6 address for MLD general queries.
Use undo mld-snooping general-query source-ip to restore the default.
Syntax
mld-snooping general-query source-ip ipv6-address
undo mld-snooping general-query source-ip
Default
In a VLAN, the source IPv6 address for MLD general queries is the IPv6 link-local address of the current VLAN interface. If the current VLAN interface does not have an IPv6 link-local address, the source IPv6 address is FE80::02FF:FFFF:FE00:0001.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies a source IPv6 address for MLD general queries.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable MLD snooping, and specify FE80:0:0:1::1 as the source IPv6 address for MLD general queries.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping general-query source-ip fe80:0:0:1::1
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping group-limit
Use mld-snooping group-limit to set the maximum number of IPv6 multicast groups that a port can join.
Use undo mld-snooping group-limit to restore the default.
Syntax
mld-snooping group-limit limit [ vlan vlan-list ]
undo mld-snooping group-limit [ vlan vlan-list ]
Default
The default setting is 4294967295.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
limit: Specifies the maximum number of multicast groups that a port can join, in the range of 0 to 4294967295.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect for all VLANs.
Usage guidelines
This command takes effect only on the IPv6 multicast groups that a port joins dynamically.
Examples
# On GigabitEthernet 1/0/1, set the maximum number of IPv6 multicast groups that the port can join in VLAN 2 to 10.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping group-limit 10 vlan 2
mld-snooping group-policy
Use mld-snooping group-policy to configure an IPv6 multicast group policy on a port to control the IPv6 multicast groups that hosts attached to the port can join.
Use undo mld-snooping group-policy to delete the IPv6 multicast group policy on a port.
Syntax
mld-snooping group-policy acl6-number [ vlan vlan-list ]
undo mld-snooping group-policy [ vlan vlan-list ]
Default
No IPv6 multicast group policies exists on a port. Hosts attached to the port can join any IPv6 multicast groups.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
acl6-number: Specifies an IPv6 basic or advanced ACL number in the range of 2000 to 3999. Hosts can join only the IPv6 multicast groups that the ACL permits. If the ACL does not exist or have valid rules, hosts cannot join IPv6 multicast groups.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
When you configure a rule in the IPv6 ACL, follow these restrictions and guidelines:
· In a basic ACL, the source source-address source-prefix option specifies an IPv6 multicast group address.
· In an advanced ACL, the source source-address source-prefix option specifies an IPv6 multicast source address. The destination dest-address dest-prefix option specifies an IPv6 multicast group address.
To match the following MLD reports, set the source source-address source-prefix option to 0::0:
? MLDv1 reports.
? MLDv2 IS_EX and MLDv2 TO_EX reports that do not carry IPv6 multicast source addresses.
· Among the other optional parameters, only the fragment keyword and the time-range time-range-name option take effect.
You can configure different ACLs on a port in different VLANs. If you configure multiple ACLs on a port in the same VLAN, the most recent configuration takes effect.
This command takes effect only on the IPv6 multicast groups that a port joins dynamically.
You can configure an IPv6 multicast group policy for a port in interface view or globally for all ports in MLD-snooping view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# On GigabitEthernet 1/0/1, configure an IPv6 multicast group policy for VLAN 2 so that hosts attached to the port in VLAN 2 can join only group FF03::101.
<Sysname> system-view
[Sysname] acl ipv6 basic 2000
[Sysname-acl-ipv6-basic-2000] rule permit source ff03::101 128
[Sysname-acl-ipv6-basic-2000] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping group-policy 2000 vlan 2
Related commands
group-policy (MLD-snooping view)
mld-snooping host-aging-time
Use mld-snooping host-aging-time to set the aging timer for dynamic member ports in a VLAN.
Use undo mld-snooping host-aging-time to restore the default.
Syntax
mld-snooping host-aging-time interval
undo mld-snooping host-aging-time
Default
The aging timer for dynamic member ports is 260 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic member ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
To avoid mistakenly deleting IPv6 multicast group members, set the aging timer for dynamic member ports to be greater than the value calculated by using the following formula:
[ MLD general query interval ] + [ maximum response time for MLD general queries ]
H3C recommends that you set the aging timer of dynamic member ports to the value calculated by using the following formula:
[ MLD general query interval ] × 2 + [ maximum response time for MLD general queries ]
You can set the timer for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable MLD snooping, and set the aging timer for dynamic member ports in the VLAN to 300 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping host-aging-time 300
Related commands
· enable (MLD-snooping view)
· host-aging-time (MLD-snooping view)
· mld-snooping enable
mld-snooping host-join
Use mld-snooping host-join to configure a port as a simulated member host for an IPv6 multicast group.
Use undo mld-snooping host-join to restore the default.
Syntax
mld-snooping host-join ipv6-group-address [ source-ip ipv6-source-address ] vlan vlan-id
undo mld-snooping host-join { ipv6-group-address [ source-ip ipv6-source-address ] vlan vlan-id | all }
Default
A port is not a simulated member host of IPv6 multicast groups.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
ipv6-group-address: Specifies an IPv6 multicast group address. The value range for this argument is FFxy::/16 (excluding FFx1::/16 and FFx2::/16), where "x" and "y" represent any hexadecimal numbers in the range of 0 to F.
source-ip ipv6-source-address: Specifies an IPv6 multicast source by its IPv6 address. If you specify an IPv6 multicast source, this command configures the port as a simulated member host for an IPv6 multicast source and group. If you do not specify an IPv6 multicast source, this command configures the port as a simulated member host for an IPv6 multicast group. This option takes effect on MLDv2 snooping devices.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
all: Specifies all IPv6 multicast groups.
Usage guidelines
The version of MLD running on a simulated member host is the same as the version of MLD snooping running on the port. The port ages out in the same way as a dynamic member port.
Examples
# Configure GigabitEthernet 1/0/1 as a simulated member host for the IPv6 multicast source and group (2002::22, FF3E::101) in VLAN 2.
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping version 2
[Sysname-vlan2] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping host-join ff3e::101 source-ip 2002::22 vlan 2
mld-snooping last-listener-query-interval
Use mld-snooping last-listener-query-interval to set the MLD last listener query interval (interval for sending MLD multicast-address-specific queries) for a VLAN.
Use undo mld-snooping last-listener-query-interval to restore the default.
Syntax
mld-snooping last-listener-query-interval interval
undo mld-snooping last-listener-query-interval
Default
The default setting is 1 second.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an MLD last listener query interval in the range of 1 to 25 seconds.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
You can set the interval for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable MLD snooping, and set the MLD last listener query interval to 3 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping last-listener-query-interval 3
Related commands
· enable (MLD-snooping view)
· last-listener-query-interval (MLD-snooping view)
· mld-snooping enable
mld-snooping max-response-time
Use mld-snooping max-response-time to set the maximum response time for MLD general queries in a VLAN.
Use undo mld-snooping max-response-time to restore the default.
Syntax
mld-snooping max-response-time interval
undo mld-snooping max-response-time
Default
The default setting is 10 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies the maximum response time for MLD general queries, in the range of 1 to 3174 seconds.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
To avoid mistakenly deleting IPv6 multicast group members, set the maximum response time for MLD general queries to be less than the MLD general query interval.
You can set the time for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable MLD snooping, and set the maximum response time for MLD general queries to 5 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping max-response-time 5
Related commands
· enable (MLD-snooping view)
· max-response-time (MLD-snooping view)
· mld-snooping enable
mld-snooping overflow-replace
Use mld-snooping overflow-replace to enable the IPv6 multicast group replacement feature on a port.
Use undo mld-snooping overflow-replace to disable the multicast group replacement feature on a port.
Syntax
mld-snooping overflow-replace [ vlan vlan-list ]
undo mld-snooping overflow-replace [ vlan vlan-list ]
Default
The IPv6 multicast group replacement feature is disabled.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
This command takes effect only on the IPv6 multicast groups that a port joins dynamically.
You can enable the IPv6 multicast group replacement feature for a port in interface view or globally for all ports in MLD-snooping view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# On GigabitEthernet 1/0/1, enable the IPv6 multicast group replacement feature for VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping overflow-replace vlan 2
Related commands
overflow-replace (MLD-snooping view)
mld-snooping querier
Use mld-snooping querier to enable the MLD snooping querier for a VLAN.
Use undo mld-snooping querier to disable the MLD snooping querier.
Syntax
mld-snooping querier
undo mld-snooping querier
Default
The MLD snooping querier for a VLAN is disabled.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable MLD snooping, and enable the MLD snooping querier.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping querier
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping query-interval
Use mld-snooping query-interval to set the MLD general query interval in a VLAN.
Use undo mld-snooping query-interval to restore the default.
Syntax
mld-snooping query-interval interval
undo mld-snooping query-interval
Default
The MLD general query interval is 125 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an MLD general query interval, in the range of 2 to 31744 seconds.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command for the VLAN.
To avoid mistakenly deleting IPv6 multicast group members, set the MLD general query interval to be greater than the maximum response time for MLD general queries.
Examples
# In VLAN 2, enable MLD snooping, and set the MLD general query interval to 20 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping query-interval 20
· enable (MLD-snooping view)
· max-response-time
· mld-snooping enable
· mld-snooping max-response-time
· mld-snooping querier
mld-snooping report source-ip
Use mld-snooping report source-ip to configure the source IPv6 address for MLD reports.
Use undo mld-snooping report source-ip to restore the default.
Syntax
mld-snooping report source-ip ipv6-address
undo mld-snooping report source-ip
Default
The source IPv6 address for MLD reports is the IPv6 link-local address of current VLAN interface. If the current VLAN interface does not have an IPv6 link-local address, the source IPv6 address is FE80::02FF:FFFF:FE00:0001.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies a source IPv6 address for MLD reports.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable MLD snooping, and specify FE80:0:0:1::1 as the source IPv6 address for MLD reports.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping report source-ip fe80:0:0:1::1
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping router-aging-time
Use mld-snooping router-aging-time to set the aging timer for dynamic router ports in a VLAN.
Use undo mld-snooping router-aging-time to restore the default.
Syntax
mld-snooping router-aging-time interval
undo mld-snooping router-aging-time
Default
The source IPv6 address for MLD reports in a VLAN is 260 seconds.
Views
VLAN view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic router ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
You can set the timer for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# In VLAN 2, enable MLD snooping, and set the aging timer for dynamic router ports in the VLAN to 100 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping router-aging-time 100
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
· router-aging-time (MLD-snooping view)
mld-snooping router-port-deny
Use mld-snooping router-port-deny to disable a port from becoming a dynamic router port.
Use undo mld-snooping router-port-deny to restore the default.
Syntax
mld-snooping router-port-deny [ vlan vlan-list ]
undo mld-snooping router-port-deny [ vlan vlan-list ]
Default
A port can become a dynamic router port.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you specify VLANs, this command takes effect only when the port belongs to the specified VLANs. If you do not specify a VLAN, this command takes effect on all VLANs.
Examples
# Disable GigabitEthernet 1/0/1 from becoming a dynamic router port in VLAN 2.
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping router-port-deny vlan 2
mld-snooping special-query source-ip
Use mld-snooping special-query source-ip to configure the source IPv6 address for MLD multicast-address-specific queries.
Use undo mld-snooping special-query source-ip to restore the default.
Syntax
mld-snooping special-query source-ip ipv6-address
undo mld-snooping special-query source-ip
Default
The source IPv6 address of MLD multicast-address-specific queries is one of the following:
· The source address of MLD general queries if the MLD snooping querier of the VLAN has received MLD general queries.
· The IPv6 link-local address of the current VLAN interface if the MLD snooping querier does not receive an MLD general query.
· FE80::02FF:FFFF:FE00:0001 if the MLD snooping querier does not receive an MLD general query and the current VLAN interface does not have an IPv6 link-local address.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ipv6-address: Specifies a source IPv6 address for MLD multicast-address-specific queries.
Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable MLD snooping, and specify FE80:0:0:1::1 as the source IPv6 address of MLD multicast-address-specific queries.
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping special-query source-ip fe80:0:0:1::1
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
mld-snooping static-group
Use mld-snooping static-group to configure a port as a static member port of an IPv6 multicast group.
Use undo mld-snooping static-group to delete a static member port.
Syntax
mld-snooping static-group ipv6-group-address [ source-ip ipv6-source-address ] vlan vlan-id
undo mld-snooping static-group { ipv6-group-address [ source-ip ipv6-source-address ] vlan vlan-id | all }
Default
A port is not a static member port of IPv6 multicast groups.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
ipv6-group-address: Specifies an IPv6 multicast group address. The value range for this argument is FFxy::/16 (excluding FFx1::/16 and FFx2::/16), where "x" and "y" represent any hexadecimal numbers in the range of 0 to F.
source-ip ipv6-source-address: Specifies an IPv6 multicast source by its IPv6 address. If you specify an IPv6 multicast source, this command configures the port as a static member port of an IPv6 multicast source and group. If you do not specify an IPv6 multicast source, this command configures the port as a static member port of an IPv6 multicast group. This option takes effect on MLDv2 snooping devices.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
all: Specifies all IPv6 multicast groups.
Examples
# Configure GigabitEthernet 1/0/1 as a static member port for the IPv6 multicast source and group (2002::22, FF3E::101) in VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping version 2
[Sysname-vlan2] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping static-group ff3e::101 source-ip 2002::22 vlan 2
mld-snooping static-router-port
Use mld-snooping static-router-port to configure a port as a static router port.
Use undo mld-snooping static-router-port to delete a static router port.
Syntax
mld-snooping static-router-port vlan vlan-id
undo mld-snooping static-router-port { all | vlan vlan-id }
Default
A port is not a static router port.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
all: Specifies all VLANs.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
Examples
# Configure GigabitEthernet 1/0/1 as a static router port in VLAN 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mld-snooping static-router-port vlan 2
mld-snooping version
Use mld-snooping version to specify an MLD snooping version for a VLAN.
Use undo mld-snooping version to restore the default.
Syntax
mld-snooping version version-number
undo mld-snooping version
Default
The MLD snooping version in a VLAN is 1.
Views
VLAN view
Predefined user roles
network-admin
Parameters
version-number: Specifies an MLD snooping version, 1 or 2.
Usage guidelines
You must enable MLD snooping for a VLAN before you configure this command.
You can specify the version for a VLAN in VLAN view or for the specified VLANs in MLD-snooping view. For a VLAN, the configuration in VLAN view has the same priority as the configuration in MLD-snooping view, and the most recent configuration takes effect.
Examples
# In VLAN 2, enable MLD snooping, and specify MLD snooping version 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping version 2
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
· version (MLD-snooping view)
overflow-replace (MLD-snooping view)
Use overflow-replace to enable the IPv6 multicast group replacement feature globally.
Use undo overflow-replace to disable the IPv6 multicast group replacement feature globally.
Syntax
overflow-replace [ vlan vlan-list ]
undo overflow-replace [ vlan vlan-list ]
Default
The IPv6 multicast group replacement feature is disabled globally.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094. If you do not specify a VLAN, this command takes effect on all VLANs.
Usage guidelines
This command takes effect only on the IPv6 multicast groups that a port joins dynamically.
You can enable IPv6 multicast group replacement globally for all ports in MLD-snooping view or for a port in interface view. For a port, the port-specific configuration takes priority over the global configuration.
Examples
# Globally enable the IPv6 multicast group replacement feature for VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] overflow-replace vlan 2
Related commands
mld-snooping overflow-replace
report-aggregation (MLD-snooping view)
Use report-aggregation to enable MLD report suppression.
Use undo report-aggregation to disable MLD report suppression.
Syntax
report-aggregation
undo report-aggregation
Default
MLD report suppression is enabled.
Views
MLD-snooping view
Predefined user roles
network-admin
Examples
# Disable MLD report suppression.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] undo report-aggregation
reset mld-snooping group
Use reset mld-snooping group to clear dynamic MLD snooping group entries.
Syntax
reset mld-snooping group { ipv6-group-address [ ipv6-source-address ] | all } [ vlan vlan-id ]
Views
User view
Predefined user roles
network-admin
Parameters
ipv6-group-address: Specifies an IPv6 multicast group address. The value range for this argument is FFxy::/16 (excluding FFx1::/16 and FFx2::/16), where "x" and "y" represent any hexadecimal numbers in the range of 0 to F.
ipv6-source-address: Specifies an IPv6 multicast source address. If you do not specify an IPv6 multicast source, this command clears dynamic MLD snooping group entries for all IPv6 multicast sources.
all: Specifies all IPv6 multicast groups.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command clears dynamic MLD snooping group entries for all VLANs.
Examples
# Clear all dynamic MLD snooping group entries.
<Sysname> reset mld-snooping group all
Related commands
display mld-snooping group
reset mld-snooping router-port
Use reset mld-snooping router-port to clear dynamic router port information.
Syntax
reset mld-snooping router-port { all | vlan vlan-id }
Views
User view
Predefined user roles
network-admin
Parameters
all: Specifies all dynamic router ports.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094. If you do not specify a VLAN, this command clears dynamic router port information for all VLANs.
Examples
# Clear information about all dynamic router ports.
<Sysname> reset mld-snooping router-port all
Related commands
display mld-snooping router-port
reset mld-snooping statistics
Use reset mld-snooping statistics to clear statistics for MLD messages learned through MLD snooping.
Syntax
reset mld-snooping statistics
Views
User view
Predefined user roles
network-admin
Examples
# Clear statistics for all MLD messages learned through MLD snooping.
<Sysname> reset mld-snooping statistics
Related commands
display mld-snooping statistics
router-aging-time (MLD-snooping view)
Use router-aging-time to set the aging timer for dynamic router ports globally.
Use undo router-aging-time to restore the default.
Syntax
router-aging-time interval
undo router-aging-time
Default
The aging timer for dynamic router ports is 260 seconds.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
interval: Specifies an aging timer for dynamic router ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You can set the timer globally for all VLANs in MLD-snooping view or for a VLAN in VLAN view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration.
Examples
# Set the global aging timer for dynamic router ports to 100 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] router-aging-time 100
Related commands
mld-snooping router-aging-time
version (MLD-snooping view)
Use version to specify an MLD snooping version for VLANs.
Use undo version to restore the default.
Syntax
version version-number vlan vlan-list
undo version vlan vlan-list
Default
The MLD snooping version in a VLAN is 1.
Views
MLD-snooping view
Predefined user roles
network-admin
Parameters
version-number: Specifies an MLD snooping version, 1 or 2.
vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094.
Usage guidelines
You must enable MLD snooping for the specified VLANs before you execute this command.
You can specify the version for the specified VLANs in MLD-snooping view or for a VLAN in VLAN view. For a VLAN, the configuration in MLD-snooping view has the same priority as the configuration in VLAN view, and the most recent configuration takes effect.
Examples
# Enable MLD snooping for VLAN 2 through VLAN 10, and specify MLD snooping version 2 for these VLANs.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] enable vlan 2 to 10
[Sysname-mld-snooping] version 2 vlan 2 to 10
Related commands
· enable (MLD-snooping view)
· mld-snooping enable
display igmp-snooping,1
display igmp-snooping group,3
display igmp-snooping router-port,4
display igmp-snooping static-group,5
display igmp-snooping static-router-port,6
display igmp-snooping statistics,7
display ipv6 l2-multicast ip,42
display ipv6 l2-multicast ip forwarding,43
display ipv6 l2-multicast mac,44
display ipv6 l2-multicast mac forwarding,45
display l2-multicast ip,8
display l2-multicast ip forwarding,9
display l2-multicast mac,10
display l2-multicast mac forwarding,11
display mld-snooping,46
display mld-snooping group,48
display mld-snooping router-port,50
display mld-snooping static-group,51
display mld-snooping static-router-port,52
display mld-snooping statistics,53
dot1p-priority (IGMP-snooping view),12
dot1p-priority (MLD-snooping view),54
drop-unknown (IGMP-snooping view),13
drop-unknown (MLD-snooping view),54
enable (IGMP-snooping view),13
enable (MLD-snooping view),55
entry-limit (IGMP-snooping view),14
entry-limit (MLD-snooping view),56
fast-leave (IGMP-snooping view),15
fast-leave (MLD-snooping view),56
group-policy (IGMP-snooping view),15
group-policy (MLD-snooping view),57
host-aging-time (IGMP-snooping view),17
host-aging-time (MLD-snooping view),58
igmp-snooping,17
igmp-snooping dot1p-priority,18
igmp-snooping drop-unknown,19
igmp-snooping enable,19
igmp-snooping fast-leave,20
igmp-snooping general-query source-ip,21
igmp-snooping group-limit,22
igmp-snooping group-policy,22
igmp-snooping host-aging-time,24
igmp-snooping host-join,25
igmp-snooping last-member-query-interval,25
igmp-snooping leave source-ip,26
igmp-snooping max-response-time,27
igmp-snooping overflow-replace,28
igmp-snooping querier,29
igmp-snooping query-interval,29
igmp-snooping report source-ip,30
igmp-snooping router-aging-time,31
igmp-snooping router-port-deny,32
igmp-snooping special-query source-ip,32
igmp-snooping static-group,33
igmp-snooping static-router-port,34
igmp-snooping version,35
last-listener-query-interval (MLD-snooping view),59
last-member-query-interval (IGMP-snooping view),35
max-response-time (IGMP-snooping view),36
max-response-time (MLD-snooping view),60
mld-snooping,60
mld-snooping done source-ip,61
mld-snooping dot1p-priority,62
mld-snooping drop-unknown,62
mld-snooping enable,63
mld-snooping fast-leave,64
mld-snooping general-query source-ip,65
mld-snooping group-limit,65
mld-snooping group-policy,66
mld-snooping host-aging-time,67
mld-snooping host-join,68
mld-snooping last-listener-query-interval,69
mld-snooping max-response-time,70
mld-snooping overflow-replace,71
mld-snooping querier,72
mld-snooping query-interval,72
mld-snooping report source-ip,73
mld-snooping router-aging-time,74
mld-snooping router-port-deny,75
mld-snooping special-query source-ip,75
mld-snooping static-group,76
mld-snooping static-router-port,77
mld-snooping version,78
overflow-replace (IGMP-snooping view),37
overflow-replace (MLD-snooping view),78
report-aggregation (IGMP-snooping view),37
report-aggregation (MLD-snooping view),79
reset igmp-snooping group,38
reset igmp-snooping router-port,38
reset igmp-snooping statistics,39
reset mld-snooping group,80
reset mld-snooping router-port,80
reset mld-snooping statistics,81
router-aging-time (IGMP-snooping view),39
router-aging-time (MLD-snooping view),81
version (IGMP-snooping view),40
version (MLD-snooping view),82