The igmp-snooping router-learning command enables router port learning in a VSI.
The undo igmp-snooping router-learning command disables router port learning in a VSI.
By default, router port learning is enabled in a VSI.
Usage Scenario
A switch running IGMP snooping considers an interface as a dynamic router port when the interface receives an IGMP General Query message with any source IP address except 0.0.0.0. Router ports are configured to guide forwarding of IGMP Report/Leave messages. To prevent interfaces in a VSI from becoming a router port, disable router port learning in the VSI.
Prerequisites
IGMP snooping has been enabled for VPLS using the igmp-snooping over-vpls enable command in the system view.
Follow-up Procedure
The switch does not listen on IGMP Query messages in a VSI after router port learning is disabled in the VSI. Therefore, run the igmp-snooping static-router-port command to configure a static router port.
Precautions
The configuration takes effect only when IGMP snooping is enabled in the VSI using the igmp-snooping enable (VSI view) command.