Static port configuration example

Network requirements

As shown in Figure 13:

Configure static ports to meet the following requirements:

Configuration procedure

  1. Assign an IP address and subnet mask to each interface according to Figure 13. (Details not shown.)

  2. Configure Router A:

    # Enable IP multicast routing.

    <RouterA> system-view
    [RouterA] multicast routing
    [RouterA-mrib] quit
    

    # Enable IGMP and PIM-DM on FortyGigE 1/0/1.

    [RouterA] interface fortygige 1/0/1
    [RouterA-FortyGigE1/0/1] igmp enable
    [RouterA-FortyGigE1/0/1] pim dm
    [RouterA-FortyGigE1/0/1] quit
    

    # Enable PIM-DM on FortyGigE 1/0/2.

    [RouterA] interface fortygige 1/0/2
    [RouterA-FortyGigE1/0/2] pim dm
    [RouterA-FortyGigE1/0/2] quit
    
  3. Configure Switch A:

    # Enable IGMP snooping globally.

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

    # Create VLAN 100, assign FortyGigE 1/0/1 through FortyGigE 1/0/3 to the VLAN, and enable IGMP snooping for the VLAN.

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

    # Configure FortyGigE 1/0/3 as a static router port.

    [SwitchA] interface fortygige 1/0/3
    [SwitchA-FortyGigE1/0/3] igmp-snooping static-router-port vlan 100
    [SwitchA-FortyGigE1/0/3] quit
    
  4. Configure Switch B:

    # Enable IGMP snooping globally.

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

    # Create VLAN 100, assign FortyGigE 1/0/1 and FortyGigE 1/0/2 to the VLAN, and enable IGMP snooping for the VLAN.

    [SwitchB] vlan 100
    [SwitchB-vlan100] port fortygige 1/0/1 fortygige 1/0/2
    [SwitchB-vlan100] igmp-snooping enable
    [SwitchB-vlan100] quit
    
  5. Configure Switch C:

    # Enable IGMP snooping globally.

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

    # Create VLAN 100, assign FortyGigE 1/0/1 through FortyGigE 1/0/5 to the VLAN, and enable IGMP snooping for the VLAN.

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

    # Configure FortyGigE 1/0/3 and FortyGigE 1/0/5 as static member ports for multicast group 224.1.1.1.

    [SwitchC] interface fortygige 1/0/3
    [SwitchC-FortyGigE1/0/3] igmp-snooping static-group 224.1.1.1 vlan 100
    [SwitchC-FortyGigE1/0/3] quit
    [SwitchC] interface fortygige 1/0/5
    [SwitchC-FortyGigE1/0/5] igmp-snooping static-group 224.1.1.1 vlan 100
    [SwitchC-FortyGigE1/0/5] quit
    

Verifying the configuration

# Display information about static router ports in VLAN 100 on Switch A.

[SwitchA] display igmp-snooping static-router-port vlan 100
VLAN 100:
  Router slots (1 in total):
    1
  Router ports (1 in total):
    1
    FGE1/0/3

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

# Display information about static IGMP snooping forwarding entries in VLAN 100 on Switch C.

[SwitchC] display igmp-snooping static-group vlan 100
Total 1 entries.

VLAN 100: Total 1 entries.
  (0.0.0.0, 224.1.1.1)
    Host slots (1 in total):
      1
    Host ports (2 in total):
      FGE1/0/3
      FGE1/0/5

The output shows that FortyGigE 1/0/3 and FortyGigE 1/0/5 on Switch C have become static member ports of multicast group 224.1.1.1.