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.
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.<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