The mld-snooping router-learning command enables router port learning in a VLAN.
The undo mld-snooping router-learning command disables router port learning in a VLAN.
By default, router port learning is enabled in a VLAN.
mld-snooping router-learning vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }
undo mld-snooping router-learning vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }
Parameter |
Description |
Value |
---|---|---|
vlan vlan-id1 [ to vlan-id2 ] |
Enables an interface to function as a router port in the specified VLANs. |
vlan-id1 and vlan-id2 are integers that range from 1 to 4094. |
all | Enables an interface to function as a router port in all the VLANs. |
- |
MultiGE interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view
Usage Scenario
A router port is located on a Layer 2 device and connects to an upstream Layer 3 device (a multicast router or Layer 3 switch). A switch running MLD snooping considers an interface as a router port when the interface receives an MLD General Query message with any source IP address except 0.0.0.0 or a PIM Hello message. A router port provides the following functions:
Prerequisites
MLD snooping has been enabled globally using the mld-snooping enable command.
Follow-up Procedure
The switch does not listen on MLD Query messages in a VLAN after router port learning is disabled in the VLAN. To ensure normal multicast forwarding in the VLAN, run the mld-snooping static-router-port command to configure a static router port.
Precautions
This command takes effect only when the interface has been added to the specified VLANs and MLD snooping has been enabled in these VLANs using the mld-snooping enable command.