By default, dynamic port learning is enabled in a virtual switching instance (VSI). A switch decides whether to add dynamic router ports by monitoring IGMP Query messages. When a dynamic router port does not receive an IGMP Query message before it times out, the switch deletes the interface from the router port list.
If a switch needs to forward IGMP Report/Leave messages from an interface for a long period of time, configure this interface as a static router port.
Interfaces on a virtual private LAN service (VPLS) network include pseudo wire (PW) side interfaces and attachment circuit (AC) side interfaces. The methods for configuring PW-side and AC-side interfaces as static router ports are different.
If the AC-side interface bound to a VSI is a VLANIF interface, configure the Layer 2 interface in the corresponding VLAN as a static router port. For details, see (Optional) Configuring a Static Router Port in "VLAN-based IGMP Snooping Configuration."
If the AC-side interface bound to a VSI is a physical interface that has been switched to Layer 3 mode using the undo portswitch command, perform the following steps to configure the interface as a static router port:
Run system-view
The system view is displayed.
(Optional) Disable router port learning in the VSI.
Run vsi vsi-name
The VSI view is displayed.
Run undo igmp-snooping router-learning
Dynamic router port learning is disabled.
Run quit
Exit from the VSI view.
Run interface interface-type interface-number
The interface view is displayed.
Run igmp-snooping static-router-port vsi vsi-name
The interface is configured as a static router port.