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). When IGMP snooping is enabled in a VLAN, all interfaces in this VLAN learn forwarding entries from multicast protocol packets. When an interface receives IGMP Query messages or Protocol Independent Multicast (PIM) Hello messages, the Layer 2 device sets this interface as a dynamic router port. A router port provides the following functions:
A dynamic router port has an aging time. If a dynamic router port does not receive an IGMP Query or a PIM Hello message before the aging time expires, the device deletes the port from the router port list. To enable an interface to forward IGMP Report/Leave messages to the upstream querier for a long time, configure the interface as a static router port.
On a ring network running IGMP snooping, if the downstream port of a device is configured as a static router port, downstream ports of all devices on the ring network must be configured as static router ports. Otherwise, multicast traffic cannot be forwarded normally if the Layer 2 network topology changes. Therefore, it is not recommended to configure downstream ports as static router ports.
The system view is displayed.
The VLAN view is displayed.
Dynamic router port learning is disabled.
By default, dynamic router port learning is enabled in a VLAN.
You can also disable router port learning by running the undo igmp-snooping router-learning vlan { { vlan-id1 [ to vlan-id2 ] } &<1–10> | all } command in the interface view.
Exit from the VLAN view.
The interface view is displayed.
The interface is configured as a static router port.