Static port configuration example (for VLANs)
Network requirements
As shown in Figure 15:
Router A runs IGMPv2 and acts as the IGMP querier. Switch A, Switch B, and Switch C run IGMPv2 snooping.
Host A and host C are permanent receivers of multicast group 224.1.1.1.
Configure static ports to meet the following requirements:
To enhance the reliability of multicast traffic transmission, configure Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/5 on Switch C as static member ports for multicast group 224.1.1.1.
Suppose the STP runs on the network. To avoid data loops, the forwarding path from Switch A to Switch C is blocked. Multicast data flows to the receivers attached to Switch C only along the path of Switch A—Switch B—Switch C. When this path is blocked, a minimum of one IGMP query-response cycle must be completed before multicast data flows to the receivers along the path of Switch A—Switch C. In this case, the multicast delivery is interrupted during the process. For more information about the STP, see Layer 2—LAN Switching Configuration Guide.
Configure Ten-GigabitEthernet 1/0/3 on Switch A as a static router port. Then, multicast data can flow to the receivers nearly uninterruptedly along the path of Switch A—Switch C when the path of Switch A—Switch B—Switch C is blocked.
Figure 15: Network diagram
Configuration procedure
Assign an IP address and subnet mask to each interface, as shown in Figure 15. (Details not shown.)
Configure Router A:
# Enable IP multicast routing.
<RouterA> system-view [RouterA] multicast routing [RouterA-mrib] quit
# Enable IGMP on Ten-GigabitEthernet 1/0/1.
[RouterA] interface ten-gigabitethernet 1/0/1 [RouterA-Ten-GigabitEthernet1/0/1] igmp enable [RouterA-Ten-GigabitEthernet1/0/1] quit
# Enable PIM-DM on Ten-GigabitEthernet 1/0/2.
[RouterA] interface ten-gigabitethernet 1/0/2 [RouterA-Ten-GigabitEthernet1/0/2] pim dm [RouterA-Ten-GigabitEthernet1/0/2] quit
Configure Switch A:
# Enable the IGMP snooping feature.
<SwitchA> system-view [SwitchA] igmp-snooping [SwitchA-igmp-snooping] quit
# Create VLAN 100, and assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/3 to the VLAN.
[SwitchA] vlan 100 [SwitchA-vlan100] port ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/3
# Enable IGMP snooping for VLAN 100.
[SwitchA-vlan100] igmp-snooping enable [SwitchA-vlan100] quit
# Configure Ten-GigabitEthernet 1/0/3 as a static router port.
[SwitchA] interface ten-gigabitethernet 1/0/3 [SwitchA-Ten-GigabitEthernet1/0/3] igmp-snooping static-router-port vlan 100 [SwitchA-Ten-GigabitEthernet1/0/3] quit
Configure Switch B:
# Enable the IGMP snooping feature.
<SwitchB> system-view [SwitchB] igmp-snooping [SwitchB-igmp-snooping] quit
# Create VLAN 100, and assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to the VLAN.
[SwitchB] vlan 100 [SwitchB-vlan100] port ten-gigabitethernet 1/0/1 ten-gigabitethernet 1/0/2
# Enable IGMP snooping for VLAN 100.
[SwitchB-vlan100] igmp-snooping enable [SwitchB-vlan100] quit
Configure Switch C:
# Enable the IGMP snooping feature.
<SwitchC> system-view [SwitchC] igmp-snooping [SwitchC-igmp-snooping] quit
# Create VLAN 100, and assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/5 to the VLAN.
[SwitchC] vlan 100 [SwitchC-vlan100] port ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/5
# Enable IGMP snooping for VLAN 100.
[SwitchC-vlan100] igmp-snooping enable [SwitchC-vlan100] quit
# Configure Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/5 as static member ports for multicast group 224.1.1.1.
[SwitchC] interface ten-gigabitethernet 1/0/3 [SwitchC-Ten-GigabitEthernet1/0/3] igmp-snooping static-group 224.1.1.1 vlan 100 [SwitchC-Ten-GigabitEthernet1/0/3] quit [SwitchC] interface ten-gigabitethernet 1/0/5 [SwitchC-Ten-GigabitEthernet1/0/5] igmp-snooping static-group 224.1.1.1 vlan 100 [SwitchC-Ten-GigabitEthernet1/0/5] quit
Verifying the configuration
# Display static router port information for VLAN 100 on Switch A.
[SwitchA] display igmp-snooping static-router-port vlan 100 VLAN 100: Router ports (1 in total): XGE1/0/3
The output shows that Ten-GigabitEthernet 1/0/3 on Switch A has become a static router port.
# Display information about static IGMP snooping group entries for 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 ports (2 in total): XGE1/0/3 XGE1/0/5
The output shows that Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/5 on Switch C have become static member ports of multicast group 224.1.1.1.