< Home

(Optional) Configuring a Static Router Port

Context

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:

  • Receives multicast data from the upstream device.
  • Forwards IGMP Report/Leave messages. IGMP Report/Leave messages received in a VLAN are forwarded only to router ports in the VLAN.

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.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run vlan vlan-id

    The VLAN view is displayed.

  3. (Optional) Run undo igmp-snooping router-learning

    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.

  4. (Optional) Run quit

    Exit from the VLAN view.

  5. Run interface interface-type interface-number

    The interface view is displayed.

  6. Run igmp-snooping static-router-port vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

    The interface is configured as a static router port.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >