The mld-snooping enable command enables MLD snooping.
The undo mld-snooping enable command disables MLD snooping.
By default, MLD snooping is disabled.
Parameter | Description | Value |
---|---|---|
vlan |
Enables MLD snooping in VLANs. |
- |
vlan-id1 |
Specifies the start VLAN ID. |
The value is an integer ranging from 1 to 4094. |
to vlan-id2 |
Specifies the end VLAN ID. |
The value is an integer ranging from 1 to 4094. vlan-id2 must be greater than vlan-id1. |
all |
Disables MLD snooping for all VLANs. |
- |
Usage Scenario
MLD snooping runs on a Layer 2 device that is deployed between a Layer 3 device and user hosts. The Layer 2 device can then maintain multicast forwarding entries by listening to multicast protocol messages transmitted between the upstream device and hosts, controlling multicast data packet forwarding. Enabling MLD snooping is the prerequisite for implementing Layer 2 multicast.
Precautions
The mld-snooping enable vlan command fails to be run in a VLAN view in any of the following conditions: