Configuring Basic IGMP Snooping Functions

Configuring basic IGMP snooping functions is the prerequisite for implementing Layer 2 multicast. Configuring basic IGMP snooping functions involves enabling IGMP snooping, setting the version for IGMP messages that can be processed by IGMP snooping, and setting the IGMP snooping forwarding mode.

Context

After IGMP snooping is enabled on a Layer 2 device, the Layer 2 device listens to IGMP Report messages exchanged between the connected Layer 3 device and user hosts and uses these IGMP Report messages to set up mappings between interfaces and multicast group addresses. Based on the mappings, the Layer 2 device forwards received multicast data to connected member ports.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run igmp-snooping enable

    IGMP snooping is enabled globally.

  3. Enable IGMP snooping on VLANs or virtual switch instances (VSIs).

    Table 1 Enabling IGMP snooping on VLANs or VSIs

    Usage Scenario

    Configuration Procedure

    Enabling IGMP snooping on a specified VLAN

    1. Run the vlan vlan-id command to enter the VLAN view.

    2. Run the igmp-snooping enable command to enable IGMP snooping on the VLAN.

      By default, IGMP snooping is disabled.

      NOTE:

      IGMP snooping must be enabled in the system view before being enabled on a VLAN.

    Enabling IGMP snooping on multiple VLANs

    Run the igmp-snooping enable vlan { vlan-id1 [ to vlan-id2 ] } & <1-10> command to enable IGMP snooping on multiple VLANs.

    Enabling IGMP snooping on a specified VSI

    1. Run the vsi vsi-name [ static ] command to enter the VSI view.

    2. Run the igmp-snooping enable command to enable IGMP snooping on the VSI.

      NOTE:

      IGMP snooping must be enabled in the system view being enabled on a VSI.

  4. (Optional) Run igmp-snooping version number

    The version of IGMP messages that can be processed by IGMP snooping is set.

    IGMP snooping can process IGMPv1, IGMPv2, and IGMPv3 messages.

    • If the IGMP version number is set to 1, only IGMPv1 messages can be processed.

    • If the IGMP version number is set to 2, both IGMPv1 and IGMPv2 messages can be processed.

    • If the IGMP version number is set to 3, IGMPv1, IGMPv2, and IGMPv3 messages can be processed.

  5. (Optional) Run igmp-snooping ip-policy acl-number

    A policy is configured to filter Report messages in a VLAN or VSI. The configuration enables you to limit users that can enjoy multicast services.

    To improve multicast service deployment security, configure a policy to filter out IGMP Report messages sent by specific hosts.

  6. Run commit

    The configuration is committed.

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