igmp-snooping learning

Function

The igmp-snooping learning command enables an interface to dynamically learn forwarding entries.

The undo igmp-snooping learning command disables an interface from dynamically learning forwarding entries.

By default, an interface is enabled to dynamically learn forwarding entries.

Format

igmp-snooping learning

undo igmp-snooping learning

Parameters

None

Views

400GE Layer 2 sub-interface view, 50GE Layer 2 sub-interface view, Eth-Trunk Layer 2 sub-interface view, GE Layer 2 sub-interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

After you run the igmp-snooping learning command to enable an interface dynamically to learn forwarding entries, the interface can both be added to a multicast group statically and learn forwarding entries dynamically based on received IGMP Report messages. After the interface is disabled from dynamically learning forwarding entries, you can only add the interface to a multicast group statically.

If the igmp-snooping learning command is run more than once, all configurations take effect.

Example

# Disable GE 0/1/0 that belongs to VLANs 3 and 4 from dynamically learning forwarding entries.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] vlan 3
[*HUAWEI-vlan3] igmp-snooping enable
[*HUAWEI-vlan3] quit
[*HUAWEI] vlan 4
[*HUAWEI-vlan4] igmp-snooping enable
[*HUAWEI-vlan4] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] portswitch
[*HUAWEI-GigabitEthernet0/1/0] port link-type trunk
[*HUAWEI-GigabitEthernet0/1/0] port trunk allow-pass vlan 3 to 4
[*HUAWEI] undo igmp-snooping learning vlan 3 to 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >