MLD Snooping Commands

Use these commands to configure MLD Snooping.

This section describes commands used for MLD Snooping. In IPv4, Layer 2 switches can use IGMP Snooping to limit the flooding of multicast traffic by dynamically configuring Layer 2 interfaces so that multicast traffic is forwarded only to those interfaces associated with IP multicast addresses. In IPv6, MLD Snooping performs a similar function. With MLD Snooping, IPv6 multicast data is selectively forwarded to a list of ports that want to receive the data, instead of being flooded to all ports in a VLAN. This list is constructed by snooping IPv6 multicast control packets.

Note: This note clarifies the prioritization of MGMD Snooping Configurations. Many of the IGMP/MLD Snooping commands are available both in the Interface and VLAN modes. Operationally, the switch gives precedence to the configured VLAN values over the configured interface values for most configurations when the interface participates in the VLAN.

set mld

M4250

M4350

This command enables MLD Snooping on the system (Global Config Mode) or an interface (Interface Config Mode). This command also enables MLD Snooping on a particular VLAN and enables MLD Snooping on all interfaces participating in a VLAN.

If an interface has MLD Snooping enabled and you enable this interface for routing or enlist it as a member of a port-channel (LAG), MLD Snooping functionality is disabled on that interface. MLD Snooping functionality is re-enabled if you disable routing or remove port channel (LAG) membership from an interface that has MLD Snooping enabled.

MLD Snooping supports the following activities:

  • Validation of address version, payload length consistencies and discarding of the frame upon error.
  • Maintenance of the forwarding table entries based on the MAC address versus the IPv6 address.
  • Filters out unknown IPv6 multicast packets on a VLAN if MLD snooping is enabled, with the exception of group addresses in the range ffx2::/16 and FF05::X. These control packets are always flooded to all ports in the VLAN.
Format set mld
Mode

Global Config

Interface Config

Default Enabled for VLAN 1; Disabled for other VLANs.
Format set mld vlan-id
Mode VLAN Mode

no set mld

Use this command to disable MLD Snooping on the system.

Format no set mld
Mode

Global Config

Interface Config

Format no set mld vlan-id
Mode VLAN Mode

set mld interfacemode

M4250

M4350

Use this command to enable MLD Snooping on all interfaces. If an interface has MLD Snooping enabled and you enable this interface for routing or enlist it as a member of a port-channel (LAG), MLD Snooping functionality is disabled on that interface. MLD Snooping functionality is re-enabled if you disable routing or remove port-channel (LAG) membership from an interface that has MLD Snooping enabled.

Default Disabled
Format set mld interfacemode
Mode Global Config

no set mld interfacemode

Use this command to disable MLD Snooping on all interfaces.

Format no set mld interfacemode
Mode Global Config

set mld fast-leave

M4250

M4350

Use this command to enable MLD Snooping fast-leave admin mode on a selected interface or VLAN. Enabling fast-leave allows the switch to immediately remove the Layer 2 LAN interface from its forwarding table entry upon receiving an MLD done message for that multicast group without first sending out MAC-based general queries to the interface.

Note: Enable fast-leave admin mode only on VLANs on which only one host is connected to each Layer 2 LAN port. This prevents the inadvertent dropping of other hosts that are connected to the same layer 2 LAN port but are still interested in receiving multicast traffic directed to that group.
Note: Fast-leave processing is supported only with MLD version 1 hosts.
Format set mld fast-leave
Mode Interface Config
Default Enabled for VLAN 1; Disabled for other VLANs.
Format set mld fast-leave vlan-id
Mode VLAN Mode

no set mld fast-leave

Use this command to disable MLD Snooping fast-leave admin mode on a selected interface or VLAN.

Format no set mld fast-leave
Mode Interface Config
Format no set mld fast-leave vlan-id
Mode VLAN Mode

set mld groupmembership-interval

M4250

M4350

Use this command to set the MLD Group Membership Interval time on a VLAN, one interface or all interfaces. The Group Membership Interval time is the amount of time in seconds that a switch waits for a report from a particular group on a particular interface before deleting the interface from the entry. This value must be greater than the MLDv2 maximum response time value. The range is 2 to 3600 seconds.

Default 260 seconds
Format set mld groupmembership-interval seconds
Mode

Interface Config

Global Config

Default 260 seconds
Format set mld groupmembership-interval vlan-id seconds
Mode VLAN Mode

no set mld groupmembership-interval

Use this command to set the MLDv2 group membership Interval time to the default value.

Format no set mld groupmembership-interval
Mode

Interface Config

Global Config

Format no set mld groupmembership-interval vlan-id
Mode VLAN Mode

set mld maxresponse

M4250

M4350

Use this command to set the MLD maximum response time for the system, on a particular interface or VLAN. The maximum response time is the amount of time in seconds that a switch will wait after sending a query on an interface because it did not receive a report for a particular group in that interface. This value must be less than the MLD query interval time value. The range is 1 to 65 seconds.

Default 10 seconds
Format set mld maxresponse seconds
Mode

Global Config

Interface Config

Default 10 seconds
Format set mld maxresponse vlan-id seconds
Mode VLAN Mode

no set mld maxresponse

Use this command to set the max response time (on the interface or VLAN) to the default value.

Format no set mld maxresponse
Mode

Global Config

Interface Config

Format no set mld maxresponse vlan-id
Mode VLAN Mode

set mld mcrtrexpiretime

M4250

M4350

Use this command to set the multicast router present expiration time. The time is set for the system, on a particular interface or VLAN. This is the amount of time in seconds that a switch waits for a query to be received on an interface before the interface is removed from the list of interfaces with multicast routers attached. The range is 0 to 3600 seconds. A value of 0 indicates an infinite time-out, that is, no expiration.

Default 0
Format set mld mcrtrexpiretime seconds
Mode

Global Config

Interface Config

Default 0
Format set mld mcrtrexpiretime vlan-id seconds
Mode VLAN Config (also referred to as VLAN Database)

no set mld mcrtrexpiretime

Use this command to set the multicast router present expiration time to 0. The time is set for the system, on a particular interface or a VLAN.

Format no set mld mcrtrexpiretime
Mode

Global Config

Interface Config

Format no set mld mcrtrexpiretime vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set mld mrouter

M4250

M4350

Use this command to configure the VLAN ID for the VLAN that has the multicast router attached mode enabled.

Format set mld mrouter vlan-id
Mode Interface Config

no set mld mrouter

Use this command to disable multicast router attached mode for a VLAN with a particular VLAN ID.

Format no set mld mrouter vlan-id
Mode Interface Config

set mld mrouter interface

M4250

M4350

Use this command to configure the interface as a multicast router-attached interface. When configured as a multicast router interface, the interface is treated as a multicast router-attached interface in all VLANs.

Default disabled
Format set mld mrouter interface
Mode Interface Config

no set mld mrouter interface

Use this command to disable the status of the interface as a statically configured multicast router-attached interface.

Format no set mld mrouter interface
Mode Interface Config

set mld exclude-mrouter-intf

M4250

M4350

Use this command to control whether unknown multicast data is sent to an mrouter interface.

If either IGMP Snooping or MLD Snooping is enabled on a VLAN, by default, dynamic mrouter mode is enabled on the interface that receives MLD PDUs from the upstream router. When the mrouter mode is enabled on the interface, unknown multicast data is sent to that interface.

If you enter the command, the switch blocks all unknown multicast data through the mrouter port, whether the port is configured dynamically or statically. Only MLD PDUs are allowed to pass through the mrouter port to the upstream router interface.

Enter the command in Global Config mode to globally apply the setting to all interfaces.

Enter the command in VLAN Config mode (also referred to as VLAN Database mode) to apply the setting at VLAN or interface level.

For the VLAN configuration to take effect, you must first enter the set mld exclude-mrouter-intf command and then enter the same command for a specific VLAN.

Default Enabled
Format set mld exclude-mrouter-intf
Mode Global Config
Default Enabled
Format set mld exclude-mrouter-intf vlan-id
Mode VLAN Config (also referred to as VLAN Database)

no set mld exclude-mrouter-intf

Use this command to let the switch pass unknown multicast data to an mrouter interface.

Enter the command in Global Config mode to globally apply the setting to all interfaces.

Enter the command in VLAN Config mode (also referred to as VLAN Database mode) to apply the setting at VLAN or interface level.

Format no set mld exclude-mrouter-intf
Mode Global Config
Format no set mld exclude-mrouter-intf vlan-id
Mode

Global Config

VLAN Config (also referred to as VLAN Database)

set mld-plus (Global Config)

M4250

M4350

This command enables both of the following global MLD Snooping configuration commands:

  • set mld
  • set mld exclude-mrouter-intf
Default Enabled
Format set mld-plus
Mode Global Config

no set mld-plus (Global Config)

This command disables both of the following global MLD Snooping configuration commands:

  • set mld
  • set mld exclude-mrouter-intf
Format no set mld-plus
Mode Global Config

set mld-plus (VLAN Config)

M4250

M4350

After you enable the set mld-plus command, you can enable the set mld-plus vlan-id command to enable all of the following global MLD Snooping configuration commands at the VLAN level for a particular VLAN:

  • set mld vlan-id
  • set mld exclude-mrouter-intf vlan-id
  • set mld fast-leave vlan-id

The vlan-id argument in the set mld-plus vlan-id command can be a VLAN from 1 to 4093.

Default Enabled for VLAN 1
Format set mld-plus vlan-id
Mode VLAN Config (also referred to as VLAN Database)

no set mld-plus (VLAN Config)

This command disables all of the following global MLD Snooping configuration commands at the VLAN level for a particular VLAN:

  • set mld vlan-id
  • set mld exclude-mrouter-intf vlan-id
  • set mld fast-leave vlan-id

The vlan-id argument in the no set mld-plus vlan-id command can be a VLAN from 1 to 4093.

Format no set mld-plus vlan-id
Mode VLAN Config (also referred to as VLAN Database)

show mldsnooping

M4250

M4350

Use this command to display MLD Snooping information. Configured information is displayed whether or not MLD Snooping is enabled. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show igmpsnooping mrouter interface {unit/slot/port | all}
Mode Privileged EXEC
Format show mldsnooping [unit/slot/port | vlan-id]
Mode Privileged EXEC

When the optional arguments unit/slot/port or vlan-id are not used, the command displays the following information.

Term Definition
Admin Mode Indicates whether or not MLD Snooping is active on the switch.
Interfaces Enabled for MLD Snooping Interfaces on which MLD Snooping is enabled.
MLD Control Frame Count Displays the number of MLD Control frames that are processed by the CPU.
VLANs Enabled for MLD Snooping VLANs on which MLD Snooping is enabled.
Exclude Mrouter Interface Mode Indicates whether the Exclude Mrouter Interface is globally enabled or not.
MLD-Plus Indicates whether MLD Plus is enabled or not.

When you specify the unit/slot/port values, the following information displays for the interface.

Term Definition
Admin Mode Indicates whether MLD Snooping is active on the interface.
Fast Leave Mode Indicates whether MLD Snooping Fast Leave is active on the interface.
Group Membership Interval Shows the period in seconds that a switch will wait for a report from a particular group on a particular interface before deleting the interface from the entry. This value may be configured.
Max Response Time Displays the period the switch waits after it sends a query on an interface because it did not receive a report for a particular group on that interface. This value may be configured.
Multicast Router Expiry Time Displays the period to wait before removing an interface from the list of interfaces with multicast routers attached. The interface is removed if a query is not received. This value may be configured.

When you specify a value for vlan-id, the following information displays for the VLAN.

Term Definition
Admin Mode Indicates whether MLD Snooping is active on the VLAN.
Fast Leave Mode Indicates whether MLD Snooping Fast Leave is active on the VLAN.
Group Membership Interval Shows the period in seconds that a switch will wait for a report from a particular group on a particular interface, which is participating in the VLAN, before deleting the interface from the entry. This value may be configured.
Max Response Time Displays the period the switch waits after it sends a query on an interface, participating in the VLAN, because it did not receive a report for a particular group on that interface. This value may be configured.
Multicast Router Present Expiration Time Displays the period to wait before removing an interface that is participating in the VLAN from the list of interfaces with multicast routers attached. The interface is removed if a query is not received. This value may be configured.
Multicast Router Expiry Time Indicates whether the Exclude Mrouter Interface is enabled or not.
MLD-Plus Indicates whether MLD Plus is enabled or not.

show mldsnooping mrouter interface

M4250

M4350

Use this command to display information about statically configured multicast router attached interfaces. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show mldsnooping mrouter interface {unit/slot/port | all}
Mode Privileged EXEC
Term Definition
Interface Shows the interface on which multicast router information is displayed.
Multicast Router Attached Indicates whether multicast router is statically enabled on the interface.
VLAN ID Displays the list of VLANs of which the interface is a member.

show mldsnooping mrouter vlan

M4250

M4350

This command displays interfaces on which multicast routers are detected. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show mldsnooping mrouter vlan {vlan-id | interface unit/slot/port}
Mode Privileged EXEC
Term Definition
Interface Shows the interface on which multicast router information is displayed.
VLAN ID Displays the list of VLANs of which the interface is a member.

show mldsnooping ssm entries

M4250

M4350

Use this command to display the source specific multicast forwarding database built by MLD snooping.

A source, group, and VLAN combination can have few interfaces in “Include” mode and few interfaces in “Exclude” mode. In such instances, two rows for the same source, group, and VLAN combination are displayed.

Format show mldsnooping ssm entries
Mode Privileged EXEC
Term Definition
VLAN The VLAN on which the entry is learned.
Group The IPv6 multicast group address.
Source The IPv6 source address.
Source Filter Mode The source filter mode (Include/Exclude) for the specified group.
Interfaces
  • If Source Filter Mode is “Include,” specifies the list of interfaces on which an incoming packet is forwarded. If its source IP address is equal to the current entry’s Source, the destination IP address is equal to the current entry’s Group and the VLAN ID on which it arrived is current entry’s VLAN.
  • If Source Filter Mode is “Exclude,” specifies the list of interfaces on which an incoming packet is forwarded. If its source IP address is *not* equal to the current entry’s Source, the destination IP address is equal to current entry’s Group and VLAN ID on which it arrived is current entry’s VLAN.

show mldsnooping ssm stats

M4250

M4350

Use this command to display the statistics of MLD snooping’s SSMFDB.

Format show mldsnooping ssm stats
Mode Privileged EXEC
Term Definition
Total Entries The total number of entries that can possibly be in the MLD snooping’s SSMFDB.
Most SSMFDB Entries Ever Used The largest number of entries that have been present in the MLD snooping’s SSMFDB.
Current Entries The current number of entries in the MLD snooping’s SSMFDB.

show mldsnooping ssm groups

M4250

M4350

Use this command to display the MLD SSM group membership information.

Format show mldsnooping ssm groups
Mode Privileged EXEC
Term Definition
VLAN VLAN on which the MLD v2 report is received.
Group The IPv6 multicast group address.
Interface The interface on which the MLD v2 report is received.
Reporter The IPv6 address of the host that sent the MLDv2 report.
Source Filter Mode The source filter mode (Include/Exclude) for the specified group.
Source Address List List of source IP addresses for which source filtering is requested.

show mac-address-table mldsnooping

M4250

M4350

Use this command to display the MLD Snooping entries in the Multicast Forwarding Database (MFDB) table.

Format show mac-address-table mldsnooping
Mode Privileged EXEC
Term Definition
VLAN ID The VLAN in which the MAC address is learned.
MAC Address A multicast MAC address for which the switch has forwarding or filtering information. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB.
Type The type of entry, which is either static (added by the user) or dynamic (added to the table as a result of a learning process or protocol.)
Description The text description of this multicast table entry.
Interfaces The list of interfaces that are designated for forwarding (Fwd:) and filtering (Flt:).

clear mldsnooping

M4250

M4350

Use this command to delete all MLD snooping entries from the MFDB table.

Format clear mldsnooping
Mode Privileged EXEC