Configure IPv6 L2 Static Multicast
Network Requirements
- Device1 configures IPv6 multicast routing protocol; Device2 configures IPv6 L2 static multicast in VLAN2; PC1 is the receiver of multicast service; PC2 and PC3 are the receiver of non-multicast service.
- Multicast Server sends IPv6 multicast service packets; PC1 can receive multicast service packets correctly; PC2 and PC3 cannot receive multicast service packets.
Network Topology
Figure 1-2 Network topology of configuring IPv6 L2 static multicast
Configuration Steps
Step 1: Device1 configures interface IP address and enables multicast routing protocol. (omitted)
Step 2: Configure Device2.
#On Device2, create VLAN2.
Device2#configure terminal
Device2(config)#vlan 2
Device2(config-vlan2)#exit
|
#On Device2, configure the link type of ports gigabitethernet0/2~gigabitethernet0/4 as Access, permitting the services of VLAN2 to pass.
Device2(config)#interface gigabitethernet 0/2-0/4
Device2(config-if-range)#switchport access vlan 2
Device2(config-if-range)#exit
|
#On Device2, configure the link type of port gigabitethernet0/1 as Trunk, permit the services of VLAN2 to pass, and configure PVID as 1.
Device2(config)#interface gigabitethernet 0/1
Device2(config-if-gigabitethernet0/1)#switchport mode trunk
Device2(config-if-gigabitethernet0/1)#switchport trunk allowed vlan add 2
Device2(config-if-gigabitethernet0/1)#switchport trunk pvid vlan 1
Device2(config-if-gigabitethernet0/1)#exit
|
#In VLAN2, enable the unknown multicast dropping.
Device2(config)#vlan 2
Device2(config-vlan2)#l2-multicast drop-unknown
Device2(config-vlan2)#exit
|
#Configure the members of the L2 static multicast group.
Device2(config)# l2-multicast mac-entry static 3333.0000.0001 vlan 2
Device2(config-mcast)#interface gigabitethernet 0/2 member
Device2(config-mcast)#interface gigabitethernet 0/3 forbidden
Device2(config-mcast)#exit
|
Step 3: Check the result
#Query the IPv6 L2 static multicast entries of Device2.
Device2# show l2-multicast mac-entry static
Current L2 Static Multicast 1 entries
--- --- ----------------- ---------------
NO. VID Group MAC address Interface Name
--- --- ----------------- ---------------
1 2 3333.0000.0001 [M] gi0/2
[F] gi0/3
#Multicast Server sends the multicast packet with the destination address ff10::1. PC1 can correctly receive the multicast packet, but PC2 and PC3 cannot receive the multicast packets.
-
In IPv6 L2 static multucast, the multicast packets can only be forwarded to the port whose role is member.
- For the forbidden port, even being added to the multicast group of the static multicast group by the mld snooping mode, the multicast packets whose destination address is the static multicast group will not be forwarded to the forbidden port.
- The non-member and non-forbidden ports can be added to the multicast group of the static multicast group by the mld snooping mode, and the multicasy packet whose destination address is the static multicast group will be forwarded to the port.