Example for Configuring a Static Interface to Implement Layer 2 Multicast
Networking Requirements
In Figure 10-6, RouterA connects to the user network through RouterB on an IPv6 network. The user-side VLANIF interface of RouterA has static groups FF16::1 to FF16::5 configured and does not run MLD. HostA, HostB, HostC, and HostD are the receivers. HostA and HostB require to steadily receive data from FF16::1 to FF16::3 while HostC and HostD want to steadily receive data from FF16::4 to FF16::5.
Configuration Roadmap
To meet the requirement, MLD snooping static router and member ports need to configured on the RouterB.
- Create a VLAN and add interfaces to the VLAN.
- Enable MLD snooping globally and in a VLAN.
- Configure a static router port.
- Configure a static member port.
Procedure
- Create VLAN 10 and add the interface to VLAN 10.
<Huawei> system-view [Huawei] sysname RouterB [RouterB] vlan 10 [RouterB-vlan10] quit [RouterB] interface ethernet 2/0/1 [RouterB-Ethernet2/0/1] port hybrid pvid vlan 10 [RouterB-Ethernet2/0/1] port hybrid untagged vlan 10 [RouterB-Ethernet2/0/1] quit [RouterB] interface ethernet 2/0/2 [RouterB-Ethernet2/0/2] port hybrid pvid vlan 10 [RouterB-Ethernet2/0/2] port hybrid untagged vlan 10 [RouterB-Ethernet2/0/2] quit [RouterB] interface ethernet 2/0/3 [RouterB-Ethernet2/0/3] port hybrid pvid vlan 10 [RouterB-Ethernet2/0/3] port hybrid untagged vlan 10 [RouterB-Ethernet2/0/3] quit
- Enable MLD snooping globally and in VLAN 10.
# Enable MLD snooping globally.
[RouterB] mld-snooping enable
# Enable MLD snooping in VLAN 10.
[RouterB] vlan 10 [RouterB-vlan10] mld-snooping enable [RouterB-vlan10] quit
- Configure a static router port.
[RouterB] interface ethernet 2/0/3 [RouterB-Ethernet2/0/3] mld-snooping static-router-port vlan 10 [RouterB-Ethernet2/0/3] quit
- Configure a static member port.
[RouterB] interface ethernet 2/0/1 [RouterB-Ethernet2/0/1] mld-snooping static-group ff16::1 vlan 10 [RouterB-Ethernet2/0/1] mld-snooping static-group ff16::2 vlan 10 [RouterB-Ethernet2/0/1] mld-snooping static-group ff16::3 vlan 10 [RouterB-Ethernet2/0/1] quit [RouterB] interface ethernet 2/0/2 [RouterB-Ethernet2/0/2] mld-snooping static-group ff16::4 vlan 10 [RouterB-Ethernet2/0/2] mld-snooping static-group ff16::5 vlan 10 [RouterB-Ethernet2/0/2] quit
- Verify the configuration.
# Check the router port on the RouterB.
[RouterB] display mld-snooping router-port vlan 10 Port Name UpTime Expires Flags --------------------------------------------------------------------- VLAN 10, 1 router-port(s) Ethernet2/0/3 00:20:09 -- STATIC
The command output shows that Eth2/0/3 becomes the static router port.
# Check the member port on the RouterB.
[RouterB] display mld-snooping port-info vlan 10 ----------------------------------------------------------------------- (Source, Group) Port Flag Flag: S:Static D:Dynamic M: Ssm-mapping ----------------------------------------------------------------------- VLAN 10, 5 Entry(s) ( *, ff16:0:0:0:0:0:0:1) Ethernet2/0/1 S-- 1 port(s) ( *, ff16:0:0:0:0:0:0:2) Ethernet2/0/1 S-- 1 port(s) ( *, ff16:0:0:0:0:0:0:3) Ethernet2/0/1 S-- 1 port(s) ( *, ff16:0:0:0:0:0:0:4) Ethernet2/0/2 S-- 1 port(s) ( *, ff16:0:0:0:0:0:0:5) Ethernet2/0/2 S-- 1 port(s) -----------------------------------------------------------------------
The command output shows that Eth2/0/1 on the RouterB joins multicast groups FF16::1 to FF16::3 and Eth2/0/2 on the RouterB joins multicast groups FF16::4 to FF16::5.
Configuration Files
RouterB configuration file
# sysname RouterB # vlan batch 10 # mld-snooping enable # vlan 10 mld-snooping enable # interface Ethernet2/0/1 port hybrid pvid vlan 10 port hybrid untagged vlan 10 mld-snooping static-group ff16::1 vlan 10 mld-snooping static-group ff16::2 vlan 10 mld-snooping static-group ff16::3 vlan 10 # interface Ethernet2/0/2 port hybrid pvid vlan 10 port hybrid untagged vlan 10 mld-snooping static-group ff16::4 vlan 10 mld-snooping static-group ff16::5 vlan 10 # interface Ethernet2/0/3 port hybrid pvid vlan 10 port hybrid untagged vlan 10 mld-snooping static-router-port vlan 10 # return