No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Multicast

CloudEngine 8800, 7800, 6800, and 5800 V200R005C00

This document describes the configurations of IP multicast, including IP multicast basics, IGMP, MLD, PIM (IPv4), PIM (IPv6), MSDP, multicast VPN, multicast route management (IPv4), multicast route management (IPv6), IGMP snooping, MLD snooping, static multicast MAC address, multicast VLAN, multicast network management.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring MLD Snooping

Example for Configuring MLD Snooping

Networking Requirements

In Figure 10-7, the router connects to the user network through the Layer 2 Switch on an IPv6 network. The multicast source (Source) sends data to multicast groups FF16::1 to FF16::5. There are three receivers HostA, HostB, and HostC on the network. The receivers are only allowed to receive data of groups FF16::1 to FF16::3.

Figure 10-7 Networking of MLD snooping

Configuration Roadmap

To meet the requirement, basic functions of MLD snooping and a multicast group policy need to be configured on the Layer 2 device. The configuration roadmap is as follows:

  1. Create a VLAN on the Switch and add interfaces to the VLAN.
  2. Enable MLD snooping globally and in a VLAN.
  3. Configure a multicast group policy and apply it to a VLAN.

Procedure

  1. Create a VLAN and add interfaces to the VLAN.

    <HUAWEI> system-view
    [~HUAWEI] sysname Switch
    [*HUAWEI] commit
    [~Switch] vlan 10
    [*Switch-vlan10] quit
    [*Switch] interface 10ge 1/0/1
    [*Switch-10GE1/0/1] port default vlan 10
    [*Switch-10GE1/0/1] quit
    [*Switch] interface 10ge 1/0/2
    [*Switch-10GE1/0/2] port default vlan 10
    [*Switch-10GE1/0/2] quit
    [*Switch] interface 10ge 1/0/3
    [*Switch-10GE1/0/3] port link-type trunk
    [*Switch-10GE1/0/3] port trunk allow-pass vlan 10
    [*Switch-10GE1/0/3] commit
    [~Switch-10GE1/0/3] quit

  2. Enable MLD snooping.

    # Enable MLD snooping globally.

    [~Switch] mld snooping enable

    # Enable MLD snooping in VLAN 10.

    [*Switch] vlan 10
    [*Switch-vlan10] mld snooping enable
    [*Switch-vlan10] commit
    [~Switch-vlan10] quit
    NOTE:

    After the configuration is complete, the switch can generate Layer 2 multicast forwarding entries by listening on MLD messages. Ensure that the interval for sending MLD General Query messages on the switch is the same as that on the upstream Layer 3 multicast device (router); otherwise, some Layer 2 multicast forwarding entries may be aged out incorrectly, causing multicast traffic interruption. If the default interval for sending MLD General Query messages on the switch is different from that on the router, run the mld snooping query interval query-interval command in VLAN 10 to change the interval on the switch.

  3. Configure and apply a multicast group policy.

    # Configure a multicast group policy.

    [~Switch] acl ipv6 2000
    [*Switch-acl6-basic-2000] rule 1 permit source ff16::1 128
    [*Switch-acl6-basic-2000] rule 2 permit source ff16::2 128
    [*Switch-acl6-basic-2000] rule 3 permit source ff16::3 128
    [*Switch-acl6-basic-2000] commit
    [~Switch-acl6-basic-2000] quit

    # Apply the multicast group policy to VLAN 10.

    [~Switch] vlan 10
    [~Switch-vlan10] mld snooping group-policy 2000
    [*Switch-vlan10] commit
    [~Switch-vlan10] quit

  4. Verify the configuration.

    # Check the interface configuration on the Switch.

    [~Switch] display mld snooping port-info vlan 10
     --------------------------------------------------------------------------------------
      Flag: S:Static     D:Dynamic     M:Ssm-mapping
            A:Active     P:Protocol    T:Trill
    (Source, Group)                       Port                                         Flag
     --------------------------------------------------------------------------------------
     VLAN 10, 3 Entry(s)
    (*, FF16::1)                                                                       PA-
                                          10GE1/0/1                                    -D-
                                          10GE1/0/2                                    -D-
                                                            2 port(s) include
    (*, FF16::2)                                                                       PA-
                                          10GE1/0/1                                    -D-
                                          10GE1/0/2                                    -D-
                                                            2 port(s) include
    (*, FF16::3)                                                                       PA-
                                          10GE1/0/1                                    -D-
                                          10GE1/0/2                                    -D-
                                                            2 port(s) include
     --------------------------------------------------------------------------------------

    The command output shows that 10GE1/0/1 and 10GE1/0/2 on the Switch have joined multicast groups FF16::1 to FF16::3.

    # Check the router port information on the Switch.

    [~Switch] display mld snooping router-port vlan 10 
     Port Name                            UpTime        Expires       Flags
     -------------------------------------------------------------------------- 
     VLAN 10, 1 router-port(s)
     10GE1/0/3                            12h03m12s     00h02m31s     DYNAMIC

    The command output shows that the router port is 10GE1/0/3.

    # Check the Layer 2 multicast forwarding table on the Switch.

    [~Switch] display multicast layer-2 ipv6 fib vlan 10
    --------------------------------------------------------------------------------
    Forwarding Mode: IP
    VLAN  Total                            (Source,Group)  Interface                
    --------------------------------------------------------------------------------
    10     3
                                             (*, FF16::1)  10GE1/0/1                   
                                                           10GE1/0/2                
                                                           10GE1/0/3                
                                             (*, FF16::2)  10GE1/0/1                   
                                                           10GE1/0/2                
                                                           10GE1/0/3                
                                             (*, FF16::3)  10GE1/0/1                   
                                                           10GE1/0/2                
                                                           10GE1/0/3                
    --------------------------------------------------------------------------------

    The command output shows that the forwarding table only contains multicast data of multicast groups FF16::1 to FF16::3. Multicast groups FF16::4 and FF16::5 do not send data to hosts.

Configuration Files

  • Switch configuration file

    #
    sysname Switch
    #
    vlan batch 10
    #
    mld snooping enable
    #
    vlan 10
     mld snooping enable
     mld snooping group-policy 2000
    #
    acl ipv6 number 2000
     rule 1 permit source FF16::1/128 
     rule 2 permit source FF16::2/128  
     rule 3 permit source FF16::3/128  
    #
    interface 10GE1/0/1
     port default vlan 10
    #
    interface 10GE1/0/2
     port default vlan 10
    #
    interface 10GE1/0/3
     port link-type trunk
     port trunk allow-pass vlan 10
    #
    return
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100039595

Views: 47671

Downloads: 85

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next