Static port configuration example
Network requirements
As shown in Figure 45:
Router A runs MLDv1 and acts as the MLD querier. Switch A, Switch B, and Switch C run MLDv1 snooping.
Host A and Host C are permanent receivers of IPv6 multicast group FF1E::101.
Configure static ports to meet the following requirements:
To enhance the reliability of IPv6 multicast traffic transmission, configure FortyGigE 1/0/3 and FortyGigE 1/0/5 on Switch C as static member ports for IPv6 multicast group FF1E::101.
Suppose the STP runs on the network. To avoid data loops, the forwarding path from Switch A to Switch C is blocked under normal conditions. IPv6 multicast data flows to the receivers attached to Switch C only along the path of Switch A—Switch B—Switch C. Configure FortyGigE 1/0/3 on Switch A as a static router port, so that IPv6 multicast data can flow to the receivers nearly uninterrupted along the path of Switch A—Switch C when the path of Switch A—Switch B—Switch C is blocked.
NOTE: If no static router port is configured, IPv6 multicast transmission is interrupted for a while after the path of Switch A—Switch B—Switch C is blocked. The reason is that at least one MLD query/response exchange is required before the new path can forward IPv6 multicast packets. | ||
For more information about the STP, see Layer 2—LAN Switching Configuration Guide.
Figure 45: Network diagram
Configuration procedure
Assign an IPv6 address and prefix length to each interface according to Figure 45. (Details not shown.)
Configure Router A:
# Enable IPv6 multicast routing.
<RouterA> system-view [RouterA] ipv6 multicast routing [RouterA-mrib6] quit
# Enable MLD on FortyGigE 1/0/1.
[RouterA] interface fortygige 1/0/1 [RouterA-FortyGigE1/0/1] mld enable [RouterA-FortyGigE1/0/1] quit
# Enable IPv6 PIM-DM on FortyGigE 1/0/2.
[RouterA] interface fortygige 1/0/2 [RouterA-FortyGigE1/0/2] ipv6 pim dm [RouterA-FortyGigE1/0/2] quit
Configure Switch A:
# Enable MLD snooping globally.
<SwitchA> system-view [SwitchA] mld-snooping [SwitchA-mld-snooping] quit
# Create VLAN 100, and assign FortyGigE 1/0/1 through FortyGigE 1/0/3 to the VLAN.
[SwitchA] vlan 100 [SwitchA-vlan100] port fortygige 1/0/1 to fortygige 1/0/3
# Enable MLD snooping for VLAN 100.
[SwitchA-vlan100] mld-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] mld-snooping static-router-port vlan 100 [SwitchA-FortyGigE1/0/3] quit
Configure Switch B:
# Enable MLD snooping globally.
<SwitchB> system-view [SwitchB] mld-snooping [SwitchB-mld-snooping] quit
# Create VLAN 100, and assign FortyGigE 1/0/1 and FortyGigE 1/0/2 to the VLAN.
[SwitchB] vlan 100 [SwitchB-vlan100] port fortygige 1/0/1 fortygige 1/0/2
# Enable MLD snooping for VLAN 100.
[SwitchB-vlan100] mld-snooping enable [SwitchB-vlan100] quit
Configure Switch C:
# Enable MLD snooping globally.
<SwitchC> system-view [SwitchC] mld-snooping [SwitchC-mld-snooping] quit
# Create VLAN 100, and assign FortyGigE 1/0/1 through FortyGigE 1/0/5 to the VLAN.
[SwitchC] vlan 100 [SwitchC-vlan100] port fortygige 1/0/1 to fortygige 1/0/5
# Enable MLD snooping for VLAN 100.
[SwitchC-vlan100] mld-snooping enable [SwitchC-vlan100] quit
# Configure FortyGigE 1/0/3 and FortyGigE 1/0/5 as static member ports for IPv6 multicast group FF1E::101.
[SwitchC] interface fortygige 1/0/3 [SwitchC-FortyGigE1/0/3] mld-snooping static-group ff1e::101 vlan 100 [SwitchC-FortyGigE1/0/3] quit [SwitchC] interface fortygige 1/0/5 [SwitchC-FortyGigE1/0/5] mld-snooping static-group ff1e::101 vlan 100 [SwitchC-FortyGigE1/0/5] quit
Verifying the configuration
# Display information about the static router ports in VLAN 100 on Switch A.
[SwitchA] display mld-snooping static-router-port vlan 100 VLAN 100: Router slots (1 in total): 1 Router ports (1 in total): FGE1/0/3
The output shows that FortyGigE 1/0/3 on Switch A has become a static router port.
# Display static MLD snooping forwarding entries in VLAN 100 on Switch C.
[SwitchC] display mld-snooping static-group vlan 100 Total 1 entries). VLAN 100: Total 1 entries). (::, FF1E::101) Host slots (0 in total): 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 IPv6 multicast group FF1E::101.