- Table of Contents
-
- 04-IP Multicast Volume
- 00-IP Multicast Volume Organization
- 01-Multicast Routing and Forwarding Commands
- 02-IGMP Commands
- 03-PIM Commands
- 04-MSDP Commands
- 05-MBGP Commands
- 06-Multicast VPN Commands
- 07-IGMP Snooping Commands
- 08-Multicast VLAN Commands
- 09-IPv6 Multicast Routing and Forwarding Commands
- 10-MLD Commands
- 11-IPv6 PIM Commands
- 12-IPv6 MBGP Commands
- 13-MLD Snooping Commands
- 14-IPv6 Multicast VLAN Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
13-MLD Snooping Commands | 109.05 KB |
Table of Contents
1 MLD Snooping Configuration Commands
MLD Snooping Configuration Commands
display mld-snooping statistics
drop-unknown (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)
router-aging-time (MLD-Snooping view)
source-deny (MLD-Snooping view)
MLD Snooping Configuration Commands
display mld-snooping group
Syntax
display mld-snooping group [ vlan vlan-id ] [ slot slot-number ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
vlan vlan-id: Displays the MLD Snooping multicast group information in the specified VLAN, where vlan-id is in the range of 1 to 4094. If you do not specify a VLAN, this command will display the MLD Snooping multicast group information in all VLANs.
slot slot-number: Displays the MLD Snooping multicast group information for the specified card. If you do not specify a slot, this command will display the MLD Snooping multicast group information on the SRPU.
verbose: Displays the detailed MLD Snooping multicast group information.
Description
Use the display mld-snooping group command to view the MLD Snooping multicast group information.
Examples
# View the detailed MLD Snooping multicast group information in VLAN 2.
<Sysname> display mld-snooping group vlan 2 verbose
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Port flags: D-Dynamic port, S-Static port, C-Copy port
Subvlan flags: R-Real VLAN, C-Copy VLAN
Vlan(id):2.
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Router port(s):total 1 port.
Eth2/0/1 (D) ( 00:01:30 )
IP group(s):the following ip group(s) match to one mac group.
IP group address:FF1E::101
(::, FF1E::101):
Attribute: Host Port
Host port(s):total 1 port.
Eth2/0/2 (D) ( 00:03:23 )
MAC group(s):
MAC group address:3333-0000-0101
Host port(s):total 1 port.
Eth2/0/2
Table 1-1 display mld-snooping group command output description
Field |
Description |
Total 1 IP Group(s). |
|
Total 1 IP Source(s). |
Total number of IPv6 multicast sources |
Total 1 MAC Group(s). |
Total number of MAC multicast groups |
Port flags: D-Dynamic port, S-Static port, C-Copy port |
Port flags: D for dynamic port, S for static port, C for port copied from a (*, G) entry to an (S, G) entry |
Subvlan flags: R-Real VLAN, C-Copy VLAN |
Sub-VLAN flags: R for real egress sub-VLAN under the current entry, C for sub-VLAN copied from a (*, G) entry to an (S, G) entry |
Router port(s) |
Number of router ports |
( 00:01:30 ) |
Remaining time of the dynamic member port or router port aging timer. On a distributed device, to get this time value of a non-aggregation port that does not belong to the SRPU, you must specify the number of the slot where the corresponding board resides; this is not required on an aggregation port. |
IP group address |
Address of IPv6 multicast group |
(::, FF1E::101) |
(S, G) entry, :: represents all the multicast sources |
MAC group address |
Address of MAC multicast group |
Attribute |
Attribute of IPv6 multicast group |
Host port(s) |
Number of member ports |
display mld-snooping statistics
Syntax
display mld-snooping statistics
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display mld-snooping statistics command to view the statistics information of MLD messages learned by MLD Snooping.
Examples
# View the statistics information of all kinds of MLD messages learned by 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 error MLD messages:0.
Table 1-2 display mld-snooping statistics command output description
Field |
Description |
general queries |
General query messages |
specific queries |
Multicast-address-specific query messages |
reports |
Report messages |
dones |
Done messages |
reports with right and wrong records |
Reports containing correct and incorrect records |
specific sg queries |
Multicast-address-and-source-specific queries |
error MLD messages |
Error MLD messages |
drop-unknown (MLD-Snooping view)
Syntax
drop-unknown
undo drop-unknown
View
MLD-Snooping view
Default Level
2: System level
Parameters
None
Description
Use the drop-unknown command to enable dropping unknown IPv6 multicast data globally.
Use the undo drop-unknown command to disable dropping unknown IPv6 multicast data globally.
By default, this function is disabled, that is, unknown IPv6 multicast data is flooded in the VLAN.
This command works only on MLD Snooping–enabled VLANs, but not on VLANs with MLD enabled on their VLAN interfaces.
Related commands: mld-snooping drop-unknown.
Examples
# Globally enable the device to drop unknown IPv6 multicast data.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] drop-unknown
fast-leave (MLD-Snooping view)
Syntax
fast-leave [ vlan vlan-list ]
undo fast-leave [ vlan vlan-list ]
View
MLD-Snooping view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the fast-leave command to enable fast leave processing globally.
Use the undo fast-leave command to disable fast leave processing globally.
By default, fast leave processing is disabled.
Note that:
l This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
l If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
Related commands: mld-snooping fast-leave.
Examples
# Enable fast leave processing globally in VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] fast-leave vlan 2
group-policy (MLD-Snooping view)
Syntax
group-policy acl6-number [ vlan vlan-list ]
undo group-policy [ vlan vlan-list ]
View
MLD-Snooping view
Default Level
2: System level
Parameters
Acl6-number: Basic or advanced IPv6 ACL number, in the range of 2000 to 3999. The source address or address range specified in the advanced IPv6 ACL rule is used to match the IPv6 multicast source address(es) specified in MLDv2 reports, rather than the source address in the IPv6 packets. The system assumes that an MLDv1 report or an MLDv2 IS_EX or TO_EX report that does not carry an IPv6 multicast source address carries an IPv6 multicast source address of 0::0.
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the group-policy command to configure a global IPv6 multicast group filter.
Use the undo group-policy command to remove the configured global IPv6 multicast group filter.
By default, no IPv6 multicast group filter is configured globally, namely any host can join any valid IPv6 multicast group.
Note that:
l If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
l If the specified IPv6 ACL does not exist or the ACL rule is null, all IPv6 multicast groups will be filtered out.
l You can configure different IPv6 ACL rules for each port in different VLANs; for a given VLAN, a newly configured IPv6 ACL rule will override the existing one.
Related commands: mld-snooping group-policy.
Examples
# Apply ACL 2000 as an IPv6 multicast group filter in VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] group-policy 2000 vlan 2
host-aging-time (MLD-Snooping view)
Syntax
host-aging-time interval
undo host-aging-time
View
MLD-Snooping view
Default Level
2: System level
Parameters
interval: Dynamic member port aging time, in units of seconds. The effective range is 200 to 1,000.
Description
Use the host-aging-time command to configure the aging time of dynamic member ports globally.
Use the undo host-aging-time command to restore the default setting.
By default, the aging time of dynamic member ports is 260 seconds.
This command works only on MLD Snooping–enabled VLANs, but not on VLANs with MLD enabled on their VLAN interfaces.
Related commands: mld-snooping host-aging-time.
Examples
# Set the aging time of dynamic member ports globally to 300 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] host-aging-time 300
last-listener-query-interval (MLD-Snooping view)
Syntax
last-listener-query-interval interval
undo last-listener-query-interval
View
MLD-Snooping view
Default Level
2: System level
Parameters
interval: MLD last listener query interval in units of seconds, namely the length of time the device waits between sending MLD multicast-address-specific queries. The effective range is 1 to 5.
Description
Use the last-listener-query-interval command to configure the MLD last listener query interval globally.
Use the undo last-listener-query-interval command to restore the system default.
By default, the MLD last listener query interval is 1 second.
This command works only on MLD Snooping–enabled VLANs, but not on VLANs with MLD enabled on their VLAN interfaces.
Related commands: mld-snooping last-listener-query-interval.
Examples
# Set the MLD last listener query interval to 3 seconds globally.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] last-listener-query-interval 3
max-response-time (MLD-Snooping view)
Syntax
max-response-time interval
undo max-response-time
View
MLD-Snooping view
Default Level
2: System level
Parameters
interval: Maximum response time for MLD general queries, in units of seconds. The effective range is 1 to 25.
Description
Use the max-response-time command to configure the maximum response time for MLD general queries globally.
Use the undo max-response-time command to restore the system default.
By default, the maximum response time for MLD general queries is 10 seconds.
This command works only on MLD Snooping–enabled VLANs, but not on VLANs with MLD enabled on their VLAN interfaces.
Related commands: mld-snooping max-response-time, mld-snooping query-interval.
Examples
# Set the maximum response time for MLD general queries globally to 5 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] max-response-time 5
mld-snooping
Syntax
mld-snooping
undo mld-snooping
View
System view
Default Level
2: System level
Parameters
None
Description
Use the mld-snooping command to enable MLD Snooping globally and enter MLD-Snooping view.
Use the undo mld-snooping command to disable MLD Snooping globally.
By default, MLD Snooping is disabled.
Related commands: mld-snooping enable.
Examples
# Enable MLD Snooping globally and enter MLD-Snooping view.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping]
mld-snooping drop-unknown
Syntax
mld-snooping drop-unknown
undo mld-snooping drop-unknown
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the mld-snooping drop-unknown command to enable dropping unknown IPv6 multicast data in the current VLAN.
Use the undo mld-snooping drop-unknown command to disable dropping unknown IPv6 multicast data in the current VLAN.
By default, this function is disabled, unknown IPv6 multicast data is flooded in the VLAN.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Related commands: drop-unknown.
Examples
# Enable dropping unknown IPv6 multicast data in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping drop-unknown
mld-snooping enable
Syntax
mld-snooping enable
undo mld-snooping enable
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the mld-snooping enable command to enable MLD Snooping in the current VLAN.
Use the undo mld-snooping enable command to disable MLD Snooping in the current VLAN.
By default, MLD Snooping is disabled in a VLAN.
MLD Snooping must be enabled globally before it can be enabled in a VLAN
Related commands: mld-snooping.
Examples
# Enable MLD Snooping in VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
mld-snooping fast-leave
Syntax
mld-snooping fast-leave [ vlan vlan-list ]
undo mld-snooping fast-leave [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the mld-snooping fast-leave command to enable fast leave processing on the current port or group of ports.
Use the undo mld-snooping fast-leave command to disable fast leave processing on the current port or group of ports.
By default, fast leave processing is disabled.
Note that:
l This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
l If you do not specify any VLAN when using this command in Ethernet interface view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
Related commands: fast-leave.
Examples
# Enable fast leave processing on Ethernet 2/0/1 in VLAN 2.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping fast-leave vlan 2
mld-snooping general-query source-ip
Syntax
mld-snooping general-query source-ip { current-interface | ipv6-address }
undo mld-snooping general-query source-ip
View
VLAN view
Default Level
2: System level
Parameters
current-interface: Sets the source IPv6 link-local address of MLD general queries to the IPv6 address of the current VLAN interface. If the current VLAN interface does not have an IPv6 address, the default IPv6 address FE80::02FF:FFFF:FE00:0001 will be used as the source IPv6 address of MLD general queries.
ipv6-address: Specifies the source IPv6 address of MLD general queries, which can be any legal IPv6 link-local address.
Description
Use the mld-snooping general-query source-ip command to configure the source IPv6 address of MLD general queries.
Use the undo mld-snooping general-query source-ip command to restore the default configuration.
By default, the source IPv6 address of MLD general queries is FE80::02FF:FFFF:FE00:0001.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Examples
# In VLAN 2, specify FE80:0:0:1::1 as the source IPv6 address of MLD general queries.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping general-query source-ip fe80:0:0:1::1
mld-snooping group-limit
Syntax
mld-snooping group-limit limit [ vlan vlan-list ]
undo mld-snooping group-limit [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
limit: Maximum number of IPv6 multicast groups that can be joined on a port. The value is in the range 1 to 512.
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the mld-snooping group-limit command to configure the maximum number of IPv6 multicast groups that can be joined on a port.
Use the undo mld-snooping group-limit command to restore the default setting.
By default, maximum number of IPv6 multicast groups that can be joined on a port is 512.
Note that:
l You can also use the mld group-limit command to limit the number of IPv6 multicast groups that can be joined on an port. If you configure a limit of the number of groups for ports in a VLAN while you have configured a limit of the number of groups for the VLAN interface, or vice versa, this may cause inconsistencies between Layer 2 and Layer 3 table entries. Therefore, it is recommended to configure a limit of the number of groups only on the VLAN interface.
l If you do not specify any VLAN when using this command in Ethernet porti view or Layer 2 aggregate port view, the command will take effect for all VLANs the port belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the port belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
Related commands: mld group-limit in MLD Commands in the IP Multicast Volume.
Examples
# Specify to allow a maximum of 10 IPv6 multicast groups to be joined on Ethernet 2/0/1 in VLAN 2.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping group-limit 10 vlan 2
mld-snooping group-policy
Syntax
mld-snooping group-policy acl6-number [ vlan vlan-list ]
undo mld-snooping group-policy [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
acl6-number: Basic or advanced IPv6 ACL number, in the range of 2000 to 3999. The IPv6 source address or address range specified in the advanced IPv6 ACL rule is the IPv6 multicast source address(es) specified in MLDv2 reports, rather than the source address in the IPv6 packets. The system assumes that an MLDv1 report or an MLDv2 IS_EX or TO_EX report that does not carry an IPv6 multicast source address carries an IPv6 multicast source address of 0::0.
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the mld-snooping group-policy command to configure an IPv6 multicast group filter on the current port(s).
Use the undo mld-snooping group-policy command to remove the configured IPv6 multicast group filter on the current port(s).
By default, no IPv6 multicast group filter is configured on a port, namely a host can join any valid IPv6 multicast group.
Note that:
l If you do not specify any VLAN when using this command in Ethernet interface view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
l If the specified ACL does not exist or the ACL rule is null, all IPv6 multicast groups will be filtered out.
l You can configure different IPv6 ACL rules for each port in different VLANs; for a given VLAN, a newly configured IPv6 ACL rule will override the existing one.
Related commands: group-policy.
Examples
# Apply ACL 2000 as an IPv6 multicast group filter on Ethernet 2/0/1 in VLAN 2.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping group-policy 2000 vlan 2
mld-snooping host-aging-time
Syntax
mld-snooping host-aging-time interval
undo mld-snooping host-aging-time
View
VLAN view
Default Level
2: System level
Parameters
interval: Dynamic member port aging time, in seconds. The effective range is 200 to 1,000.
Description
Use the mld-snooping host-aging-time command to configure the aging time of dynamic member ports in the current VLAN.
Use the undo mld-snooping host-aging-time command to restore the system default.
By default, the dynamic member port aging time is 260 seconds.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Related commands: host-aging-time.
Examples
# Set the aging time of dynamic member ports to 300 seconds in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping host-aging-time 300
mld-snooping host-join
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
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
ipv6-group-address: Address of IPv6 multicast group which the simulated host is to join. The effective range is FFxy::/16 (excluding FFx0::/16, FFx1::/16, FFx2::/16 and FF0y::), where x and y represent any hexadecimal number between 0 and F, inclusive.
ipv6-source-address: Address of the IPv6 multicast source that the simulated host is to join.
vlan vlan-id: Specifies a VLAN that comprises the port(s), where vlan-id is in the range of 1 to 4094.
Description
Use the mld-snooping host-join command to configure the current port(s) as simulated member host(s) for the specified IPv6 multicast group or source and group.
Use the undo mld-snooping host-join command to remove the current port(s) as simulated member host(s) for the specified IPv6 multicast group or source and group.
By default, no ports are configured as static member ports for any IPv6 multicast group or source and group.
Note that:
l This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces, and the version of MLD on the simulated host depends on the version of MLD Snooping running in the VLAN or the version of MLD running on the VLAN interface.
l The source-ip ipv6-source-address option in the command is meaningful only for MLD Snooping version 2. If MLD Snooping version 1 is running, although you can include source-ip ipv6-source-address in your command, the simulated host responses with only an MLDv1 report when receiving a query message.
l If configured in Ethernet interface view or Layer 2 aggregate interface view, this feature takes effect only if the interface belongs to the specified VLAN.
l If configured in port group view, this feature takes effect only on those ports in this port group that belong to the specified VLAN.
Examples
# Configure Ethernet 2/0/1 in VLAN 2 to join (2002::22, FF3E::101) as a simulated host.
<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 ethernet2/0/1
[Sysname-Ethernet2/0/1] mld-snooping host-join ff3e::101 source-ip 2002::22 vlan 2
mld-snooping last-listener-query-interval
Syntax
mld-snooping last-listener-query-interval interval
undo mld-snooping last-listener-query-interval
View
VLAN view
Default Level
2: System level
Parameters
interval: MLD last listener query interval in units of seconds, namely the length of time the device waits between sending IGMP multicast-address-specific queries. The effective range is 1 to 5.
Description
Use the mld-snooping last-listener-query-interval command to configure the MLD last-listener query interval in the VLAN.
Use the undo mld-snooping last-listener-query-interval command to restore the system default.
By default, the MLD last listener query interval is 1 second.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Related commands: last-listener-query-interval.
Examples
# Set the MLD last-listener query interval to 3 seconds in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping last-listener-query-interval 3
mld-snooping max-response-time
Syntax
mld-snooping max-response-time interval
undo mld-snooping max-response-time
View
VLAN view
Default Level
2: System level
Parameters
interval: Maximum response time for MLD general queries, in units of seconds. The effective range is 1 to 25.
Description
Use the mld-snooping max-response-time command to configure the maximum response time for MLD general queries in the VLAN.
Use the undo mld-snooping max-response-time command to restore the default setting.
By default, the maximum response time for MLD general queries is 10 seconds.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Related commands: max-response-time, mld-snooping query-interval.
Examples
# Set the maximum response time for MLD general queries to 5 seconds in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping max-response-time 5
mld-snooping overflow-replace
Syntax
mld-snooping overflow-replace [ vlan vlan-list ]
undo mld-snooping overflow-replace [ vlan vlan-list ]
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the mld-snooping overflow-replace command to enable the IPv6 multicast group replacement function on the current port(s).
Use the undo mld-snooping overflow-replace command to disable the IPv6 multicast group replacement function on the current port(s).
By default, the IPv6 multicast group replacement function is disabled.
Note that:
l This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
l If you do not specify any VLAN when using this command in Ethernet interface view or Layer 2 aggregate interface view, the command will take effect for all VLANs the interface belongs to; if you specify a VLAN or multiple VLANs, the command will take effect only if the interface belongs to the specified VLAN(s).
l If you do not specify any VLAN when using this command in port group view, the command will take effect on all the ports in this group; if you specify a VLAN or multiple VLANs, the command will take effect only on those ports in this group that belong to the specified VLAN(s).
Related commands: overflow-replace.
Examples
# Enable the IPv6 multicast group replacement function on Ethernet 2/0/1 in VLAN 2.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping overflow-replace vlan 2
mld-snooping querier
Syntax
mld-snooping querier
undo mld-snooping querier
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the mld-snooping querier command to enable the MLD Snooping querier function.
Use the undo mld-snooping querier command to disable the MLD Snooping querier function.
By default, the MLD Snooping querier function is disabled.
Note that:
l This command takes effect only if MLD Snooping is enabled in the VLAN.
l This command does not take effect in a sub-VLAN of an IPv6 multicast VLAN.
Related commands: subvlan command in IPv6 Multicast VLAN Commands in the IP Multicast Volume.
Examples
# Enable the MLD Snooping querier function in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping querier
mld-snooping query-interval
Syntax
mld-snooping query-interval interval
undo mld-snooping query-interval
View
VLAN view
Default Level
2: System level
Parameters
interval: MLD query interval in seconds, namely the length of time the device waits between sending MLD general queries. The effective range is 2 to 300.
Description
Use the mld-snooping query-interval command to configure the MLD query interval.
Use the undo mld-snooping query-interval command to restore the system default.
By default, the MLD query interval is 125 seconds.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Related commands: mld-snooping querier, mld-snooping max-response-time, max-response-time.
Examples
# Set the MLD query interval to 20 seconds in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping query-interval 20
mld-snooping router-aging-time
Syntax
mld-snooping router-aging-time interval
undo mld-snooping router-aging-time
View
VLAN view
Default Level
2: System level
Parameters
interval: Dynamic router port aging time, in seconds. The effective range is 1 to 1,000.
Description
Use the mld-snooping router-aging-time command to configure the aging time of dynamic router ports in the current VLAN.
Use the undo mld-snooping router-aging-time command to restore the default setting.
By default, the dynamic router port aging time is 260 seconds.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Related commands: router-aging-time.
Examples
# Set the aging time of dynamic router ports to 100 seconds in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping router-aging-time 100
mld-snooping source-deny
Syntax
mld-snooping source-deny
undo mld-snooping source-deny
View
Ethernet interface view, port group view
Default Level
2: System level
Parameters
None
Description
Use the mld-snooping source-deny command to enable IPv6 multicast source port filtering.
Use the undo mld-snooping source-deny command to disable IPv6 multicast source port filtering.
By default, IPv6 multicast source port filtering is disabled.
This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
Examples
# Enable source port filtering for IPv6 multicast data on Ethernet 2/0/1.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping source-deny
mld-snooping special-query source-ip
Syntax
mld-snooping special-query source-ip { current-interface | ipv6-address }
undo mld-snooping special-query source-ip
View
VLAN view
Default Level
2: System level
Parameters
current-interface: Specifies the source IPv6 link-local address of the VLAN interface of the current VLAN as the source IPv6 address of MLD multicast-address-specific queries. If the current VLAN interface does not have an IPv6 address, the default IPv6 address FE80::02FF:FFFF:FE00:0001 will be used as the source IPv6 address of MLD multicast-address-specific queries.
ipv6-address: Specifies an IPv6 link-local address as the source IPv6 address of MLD multicast-address-specific queries.
Description
Use the mld-snooping special-query source-ip command to configure the source IPv6 address of MLD multicast-address-specific queries.
Use the undo mld-snooping special-query source-ip command to restore the default configuration.
By default, the source IPv6 address of MLD multicast-address-specific queries is FE80::02FF:FFFF:FE00:0001.
This command takes effect only if MLD Snooping is enabled in the VLAN.
Examples
# In VLAN 2, specify FE80:0:0:1::1 as the source IPv6 address of MLD multicast-address-specific queries.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping special-query source-ip fe80:0:0:1::1
mld-snooping static-group
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
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
ipv6-group-address: Address of a IPv6 multicast group the port(s) will be configured to join as static member port(s). The effective range is FFxy::/16 (excluding FFx0::/16, FFx1::/16, FFx2::/16 and FF0y::), where x and y represent any hexadecimal number between 0 and F, inclusive.
ipv6-source-address: Address of the IPv6 multicast source the port(s) will be configured to join as static member port(s).
vlan vlan-id: Specifies the VLAN that comprises the Ethernet port(s), where vlan-id is in the range of 1 to 4094.
Description
Use the mld-snooping static-group command to configure the static IPv6 (*, G) or (S, G) joining function, namely to configure the port or port group as static IPv6 multicast group or source-group member(s).
Use the undo mld-snooping static-group command to restore the system default.
By default, no ports are static member ports.
Note that:
l The source-ip ipv6-source-address option in the command is meaningful only for MLD Snooping version 2. If MLD Snooping version 1 is running, although you can include source-ip ipv6-source-address in your command, the simulated host responses with only an MLDv1 report when receiving a query message.
l If configured in Ethernet interface view or Layer 2 aggregate interface view, this feature takes effect only if the interface belongs to the specified VLAN.
l If configured in port group view, this feature takes effect only on those ports in this port group that belong to the specified VLAN.
Examples
# Configure Ethernet 2/0/1 in VLAN 2 to be a static member port for (2002::22, FF3E::101).
<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 ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping static-group ff3e::101 source-ip 2002::22 vlan 2
mld-snooping static-router-port
Syntax
mld-snooping static-router-port vlan vlan-id
undo mld-snooping static-router-port vlan vlan-id
View
Ethernet interface view, Layer 2 aggregate interface view, port group view
Default Level
2: System level
Parameters
vlan vlan-id: Specifies a VLAN in which one or more static router ports are to be configured, where vlan-id is in the range of 1 to 4094.
Description
Use the mld-snooping static-router-port command to configure the current port(s) as static router port(s).
Use the undo mld-snooping static-router-port command to restore the system default.
By default, no ports are static router ports.
Note that:
l This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
l This command does not take effect in a sub-VLAN of an IPv6 multicast VLAN.
l If configured in Ethernet interface view or Layer 2 aggregate interface view, this feature takes effect only if the interface belongs to the specified VLAN.
l If configured in port group view, this feature takes effect only on those ports in this port group that belong to the specified VLAN.
Related commands: subvlan command in IPv6 Multicast VLAN Commands in the IP Multicast Volume.
Examples
# Enable the static router port function on Ethernet 2/0/1 in VLAN 2.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mld-snooping static-router-port vlan 2
mld-snooping version
Syntax
mld-snooping version version-number
undo mld-snooping version
View
VLAN view
Default Level
2: System level
Parameters
version-number: MLD snooping version, in the range of 1 to 2.
Description
Use the mld-snooping version command to configure the MLD Snooping version.
Use the undo mld-snooping version command to restore the default setting.
By default, the MLD version is 1.
Note that:
l This command can take effect only if MLD Snooping is enabled in the VLAN.
l This command does not take effect in a sub-VLAN of an IPv6 multicast VLAN.
Related commands: mld-snooping enable; subvlan in IPv6 Multicast VLAN Commands in the IP Multicast Volume.
Examples
# Enable MLD Snooping in VLAN 2, and set the MLD Snooping version to 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
overflow-replace (MLD-Snooping view)
Syntax
overflow-replace [ vlan vlan-list ]
undo overflow-replace [ vlan vlan-list ]
View
MLD-Snooping view
Default Level
2: System level
Parameters
vlan vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The effective range of a VLAN ID is 1 to 4094.
Description
Use the overflow-replace command to enable the IPv6 multicast group replacement function globally.
Use the undo overflow-replace command to disable the IPv6 multicast group replacement function globally.
By default, the IPv6 multicast group replacement function is disabled globally.
Note that:
l This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
l If you do not specify any VLAN, the command will take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command will take effect for the specified VLAN(s) only.
Related commands: mld-snooping overflow-replace.
Examples
# Enable the IPv6 multicast group replacement function globally in VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] overflow-replace vlan 2
report-aggregation (MLD-Snooping view)
Syntax
report-aggregation
undo report-aggregation
View
MLD-Snooping view
Default Level
2: System level
Parameters
None
Description
Use the mld-snooping report-aggregation command to enable MLD report suppression.
Use the undo mld-snooping report-aggregation command to disable MLD report suppression.
By default, MLD report suppression is enabled.
This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
Examples
# Disable MLD report suppression.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] undo report-aggregation
reset mld-snooping group
Syntax
reset mld-snooping group { ipv6-group-address | all } [ vlan vlan-id ]
View
User view
Default Level
2: System level
Parameters
ipv6-group-address: Clears the information about the specified multicast group. The effective range of ipv6-group-address is FFxy::/16 (excluding FFx0::/16, FFx1::/16, FFx2::/16 and FF0y::), where x and y represent any hexadecimal number between 0 and F, inclusive.
all: Clears all MLD Snooping multicast group information.
vlan vlan-id: Clears the MLD Snooping multicast group information in the specified VLAN. The effective range of vlan-id is 1 to 4094.
Description
Use the reset mld-snooping group command to clear MLD Snooping multicast group information.
Note that:
l This command works only on MLD Snooping–enabled VLANs, but not on VLANs with MLD enabled on their VLAN interfaces.
l This command cannot clear MLD Snooping multicast group information of static joining.
Examples
# Clear all MLD Snooping multicast group information.
<Sysname> reset mld-snooping group all
reset mld-snooping statistics
Syntax
reset mld-snooping statistics
View
User view
Default Level
2: System level
Parameters
None
Description
Use the reset mld-snooping statistics command to clear the statistics information of MLD messages learned by MLD Snooping.
Examples
# Clear the statistics information of all kinds of MLD messages learned by MLD Snooping.
<Sysname> reset mld-snooping statistics
router-aging-time (MLD-Snooping view)
Syntax
router-aging-time interval
undo router-aging-time
View
MLD-Snooping view
Default Level
2: System level
Parameters
interval: Dynamic router port aging time, in seconds. The effective range is 1 to 1,000.
Description
Use the router-aging-time command to configure the aging time of dynamic router ports globally.
Use the undo router-aging-time command to restore the default setting.
By default, the dynamic router port aging time is 260 seconds.
This command works only on MLD Snooping–enabled VLANs, but not on VLANs with MLD enabled on their VLAN interfaces.
Related commands: mld-snooping router-aging-time.
Examples
# Set the aging time of dynamic router ports globally to 100 seconds.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] router-aging-time 100
source-deny (MLD-Snooping view)
Syntax
source-deny port interface-list
undo source-deny port interface-list
View
MLD-Snooping view
Default Level
2: System level
Parameters
interface-list: Port list. You can specify multiple ports or port ranges by providing the this argument in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] }, where interface-type is port type and interface-number is port number.
Description
Use the source-deny command to enable IPv6 multicast source port filtering, namely to filter out all the received IPv6 multicast packets.
Use the undo source-deny command to disable IPv6 multicast source port filtering.
By default, IPv6 multicast source port filtering is disabled.
This command works on both MLD Snooping–enabled VLANs and VLANs with MLD enabled on their VLAN interfaces.
Examples
# Enable source port filtering for IPv6 multicast data on interfaces Ethernet 2/0/1 through Ethernet 2/0/4.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] source-deny port ethernet 2/0/1 to ethernet 2/0/4