< Home

Binding User VLANs to Multicast VLANs

Context

To implement N-to-N multicast replication based on user VLANs, you must enable Layer 2 IGMP snooping in multicast VLANs, bind user VLANs to multicast VLANs, and configure static multicast flows in multicast VLANs. When a user VLAN requests to join a certain multicast group, multicast forwarding entries are generated and an N-to-N mapping is established between user VLANs and multicast VLANs based on {UVLAN, Source, Group}.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run igmp-snooping enable

    IGMP snooping is enabled globally.

  3. Run vlan vlan-id

    A VLAN is created, and the VLAN view is displayed.

  4. Run igmp-snooping enable

    IGMP snooping is enabled in the VLAN.

  5. (Optional) Run igmp-snooping querier enable

    The IGMP snooping querier function is enabled in the VLAN.

    This configuration is recommended in the multicast VLAN view. If the upstream device is the gateway with IGMP enabled, you do not need to perform step 5.

  6. Run multicast-vlan enable

    Multicast VLAN replication is enabled and the current VLAN is configured as a multicast VLAN.

  7. Run multicast-vlan user-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

    The binding between a multicast VLAN and user VLANs is configured and user VLANs are bound to a multicast VLAN.

  8. Run multicast static-flow ipv4-group-address1 [ to ipv4-group-address2 ] [ source ipv4–source-address ]

    Static multicast flows are configured.

    After static multicast flows are configured, users in user VLANs can join multicast groups according to the static multicast flow and can receive multicast data from these groups.

    Any two static flows in a multicast VLAN cannot be the same. Flows of the same multicast group with different source IP addresses are considered as different flows.

  9. (Optional) Run multicast-vlan send-query prune-source-port

    Query messages received in the multicast VLAN are prevented from being sent back to the upstream interface through user VLANs.

    By default, if an upstream interface belongs to a multicast VLAN and a user VLAN, Query messages sent to the multicast VLAN can be sent back from the upstream interface through the user VLAN. To prevent Query messages from being sent back to the upstream device, run this command in the multicast VLAN.

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