igmp-snooping router-learning

Function

The igmp-snooping router-learning command enables dynamic router port learning.

The undo igmp-snooping router-learning command disables dynamic router port learning.

By default, dynamic router port learning is enabled on a device.

Format

igmp-snooping router-learning

undo igmp-snooping router-learning

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

On a device enabled with IGMP snooping, the interfaces receive any IGMP general query messages with the source IP addresses other than 0.0.0.0 or Protocol Independent Multicast (PIM) Hello packets are considered as dynamic router ports. The device records all router ports in a router port list. Receiving multicast data through router ports causes multicast data available to users to be uncontrollable. To control the multicast data available to users, you can disable dynamic router port learning.

Prerequisites

IGMP snooping has been enabled both globally and in a VLAN.

Configuration Impact

After dynamic router port learning is disabled, no interface will listen to IGMP Query messages, and static router ports must be configured.

Precautions

If the multicast VLAN function has been enabled on a device, disabling dynamic router port learning is not allowed in any user VLAN configured on the device.

If a sub-interface in a VLAN has been bound to a VSI, IGMP snooping must be enabled in the VSI.

The igmp-snooping router-learning command fails to be run in a VLAN in either of the following situations:

  • A Dot1q termination sub-interface has been added to the VLAN.
  • The VLAN has a VE interface.

Example

# Enable dynamic router port learning in VLAN 10.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] igmp-snooping router-learning
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >