Static port configuration example

Network requirements


[NOTE: ]

NOTE:

  • If no static router port is configured, when the path of Switch A—Switch B—Switch C gets blocked, at least one MLD query-response cycle must be completed before the IPv6 multicast data can flow to the receivers along the new path of Switch A—Switch C. Namely, IPv6 multicast delivery will be interrupted during this process.

  • For more information about the Spanning Tree Protocol (STP), see the Layer 2—LAN Switching Configuration Guide.


  • Figure 24: Network diagram for static port configuration

    Configuration procedure

    1. Enable IPv6 forwarding and configure IPv6 addresses

    Enable IPv6 forwarding and configure an IPv6 address and prefix length for each interface according to Figure 24.

    1. Configure Router A

    # Enable IPv6 multicast routing, enable IPv6 PIM-DM on each interface, and enable MLD on GigabitEthernet 1/0/1.

    <RouterA> system-view
    [RouterA] multicast ipv6 routing-enable
    [RouterA] interface gigabitethernet 1/0/1
    [RouterA-GigabitEthernet1/0/1] mld enable
    [RouterA-GigabitEthernet1/0/1] pim ipv6 dm
    [RouterA-GigabitEthernet1/0/1] quit
    [RouterA] interface gigabitethernet 1/0/2
    [RouterA-GigabitEthernet1/0/2] pim ipv6 dm
    [RouterA-GigabitEthernet1/0/2] quit
    
    1. Configure Switch A

    # Enable MLD snooping globally.

    <SwitchA> system-view
    [SwitchA] mld-snooping
    [SwitchA-mld-snooping] quit
    

    # Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to this VLAN, and enable MLD snooping in the VLAN.

    [SwitchA] vlan 100
    [SwitchA-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/3
    [SwitchA-vlan100] mld-snooping enable
    [SwitchA-vlan100] quit
    

    # Configure GigabitEthernet 1/0/3 to be a static router port.

    [SwitchA] interface gigabitethernet 1/0/3
    [SwitchA-GigabitEthernet1/0/3] mld-snooping static-router-port vlan 100
    [SwitchA-GigabitEthernet1/0/3] quit
    
    1. Configure Switch B

    # Enable MLD snooping globally.

    <SwitchB> system-view
    [SwitchB] mld-snooping
    [SwitchB-mld-snooping] quit
    

    # Create VLAN 100, assign GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to this VLAN, and enable MLD snooping in the VLAN.

    [SwitchB] vlan 100
    [SwitchB-vlan100] port gigabitethernet 1/0/1 gigabitethernet 1/0/2
    [SwitchB-vlan100] mld-snooping enable
    [SwitchB-vlan100] quit
    
    1. Configure Switch C

    # Enable MLD snooping globally.

    <SwitchC> system-view
    [SwitchC] mld-snooping
    [SwitchC-mld-snooping] quit
    

    # Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/5 to this VLAN, and enable MLD snooping in the VLAN.

    [SwitchC] vlan 100
    [SwitchC-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/5
    [SwitchC-vlan100] mld-snooping enable
    [SwitchC-vlan100] quit
    

    # Configure GigabitEthernet 1/0/3 and GigabitEthernet 1/0/5 as static member ports for IPv6 multicast group FF1E::101.

    [SwitchC] interface Gigabitethernet 1/0/3
    [SwitchC-GigabitEthernet1/0/3] mld-snooping static-group ff1e::101 vlan 100
    [SwitchC-GigabitEthernet1/0/3] quit
    [SwitchC] interface Gigabitethernet 1/0/5
    [SwitchC-GigabitEthernet1/0/5] mld-snooping static-group ff1e::101 vlan 100
    [SwitchC-GigabitEthernet1/0/5] quit
    
    1. Verify the configuration

    # Display the detailed MLD snooping group information in VLAN 100 on Switch A.

    [SwitchA] display mld-snooping group vlan 100 verbose
      Total 1 IP Group(s).
      Total 1 IP Source(s).
      Total 1 MAC Group(s).
    
      Port flags: D-Dynamic port, S-Static port, C-Copy port
      Subvlan flags: R-Real VLAN, C-Copy VLAN
      Vlan(id):100.
        Total 1 IP Group(s).
        Total 1 IP Source(s).
        Total 1 MAC Group(s).
        Router port(s):total 2 port(s).
                GE1/0/1                (D) ( 00:01:30 )
                GE1/0/3                (S)
        IP group(s):the following ip group(s) match to one mac group.
          IP group address:FF1E::101
            (::, FF1E::101):
              Attribute:    Host Port
              Host port(s):total 1 port(s).
                GE1/0/2                (D) ( 00:03:23 )
        MAC group(s):
          MAC group address:3333-0000-0101
              Host port(s):total 1 port(s).
                GE1/0/2
    

    The output shows that GigabitEthernet 1/0/3 of Switch A has become a static router port.

    # Display the detailed MLD snooping group information in VLAN 100 on Switch C.

    [SwitchC] display mld-snooping group vlan 100 verbose
      Total 1 IP Group(s).
      Total 1 IP Source(s).
      Total 1 MAC Group(s).
    
      Port flags: D-Dynamic port, S-Static port, C-Copy port
      Subvlan flags: R-Real VLAN, C-Copy VLAN
      Vlan(id):100.
        Total 1 IP Group(s).
        Total 1 IP Source(s).
        Total 1 MAC Group(s).
        Router port(s):total 1 port(s).
                GE1/0/2                (D) ( 00:01:23 )
        IP group(s):the following ip group(s) match to one mac group.
          IP group address:FF1E::101
            (::, FF1E::101):
              Attribute:    Host Port
              Host port(s):total 2 port(s).
                GE1/0/3                (S)
                GE1/0/5                (S)
        MAC group(s):
          MAC group address:3333-0000-0101
              Host port(s):total 2 port(s).
                GE1/0/3
                GE1/0/5
    

    The output shows that GigabitEthernet 1/0/3 and GigabitEthernet 1/0/5 on Switch C have become static member ports for IPv6 multicast group FF1E::101.