igmp-snooping enable (VSI view)

Function

The igmp-snooping enable command enables IGMP snooping.

The undo igmp-snooping enable command disables IGMP snooping.

By default, IGMP snooping is disabled.

Format

igmp-snooping enable

undo igmp-snooping enable

Parameters

None

Views

VSI-AUTO view, VSI-BD view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

IGMP snooping runs on a Layer 2 device that is deployed between a Layer 3 device and user hosts. It maintains multicast forwarding entries by listening to multicast protocol packets transmitted between the upstream device and hosts, thereby controlling multicast data packet forwarding. Enabling IGMP snooping is the prerequisite for implementing Layer 2 multicast. The igmp-snooping enable command can be used to enable IGMP snooping.

The differences between the command configuration in the system view and that in the VLAN/VSI/BD view are listed as follows:

  • After the igmp-snooping enable or undo igmp-snooping enable command is run in the system view, IGMP snooping will be enabled or disabled globally. Running the undo igmp snooping enable command deletes all Layer 2 multicast commands on a device. The running Layer 2 multicast services are then terminated. To restore Layer 2 multicast services on the device, you must reconfigure the deleted multicast commands.
  • After the igmp-snooping enable or undo igmp-snooping enable command is run in the VLAN/VSI/BD view, IGMP snooping will be enabled or disabled in a specified VLAN/VSI/BD. IGMP snooping can be enabled in a VLAN/VSI/BD only after IGMP snooping is enabled globally. By default, IGMP snooping is still disabled in a VLAN/VSI/BD though IGMP snooping is enabled in the system view.

Precautions

If a VSI is bound to a BD, the igmp-snooping enable command fails to be run in theVSI.

If the command is run for a VSI associated with a main interface, only untagged packets can be transmitted on the interface, and tagged packets are discarded.

If a VSI is bound to a sub-interface configured with the pw-tag command, the igmp-snooping enable command fails to be run in theVSI.

If a VSI is bound to a L2VE sub-interface configured with QinQ mapping, the igmp-snooping enable command fails to be run in theVSI. If the igmp-snooping enable command is run in a VSI, the VSI cannot be bound to a L2VE sub-interface configured with QinQ mapping.

Example

# Enable IGMP snooping in VSI v1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] igmp-snooping enable
[*HUAWEI] vsi v1
[*HUAWEI-vsi-v1] pwsignal ldp
[*HUAWEI-vsi-v1-ldp] vsi-id 123
[*HUAWEI-vsi-v1-ldp] quit
[*HUAWEI-vsi-v1] igmp-snooping enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >