Configure MLD snooping
Network Requirements
- Device1 configures the IPv6 multicast route protocol; Device2 enables MLD snooping; PC1 and PC2 are the receivers of the multicast service; PC3 is the receiver of the non-multicast service.
- Multicast Server sends the multicast service packets; PC1 and PC2 can receive the multicast service packets; PC3 cannot receive the multicast service packet.
Network Topology
Figure 10-2 Networking of configuring MLD snooping
Configuration Steps
Step 1: Device1 configure the interface IPv6 address and enables the IPv6 multicast route protocol. (omitted)
Step 2: Configure Device2.
#Create VLAN2 on Device2.
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, and permit 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, and permit the services of VLAN2 to pass. 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 unknown multicast dropping.
Device2(config)#vlan 2
Device2(config-vlan2)#l2-multicast drop-unknown
Device2(config-vlan2)#l3-multicast ipv6 drop-unknown
Device2(config-vlan2)#exit
|
#Enable MLD snooping, and enable the routing port dynamic learning function of VLAN2.
Device2(config)#ipv6 mld snooping
Device2(config)#ipv6 mld snooping vlan 2
Device2(config)#ipv6 mld snooping vlan 2 mrouter-learning
|
Step 3: Check the result.
#PC1 and PC2 send MLDv1 member report packet to add IPv6 multicast group FF10::1.
#Query the multicast member table of Device2.
Device2#show ipv6 mld snooping groups
MLD Snooping Group Membership
Total 2 groups
VLAN ID Port Name Group Address Expires Last Reporter V1 Expires Uptime
2 gi0/2 ff10::1 00:03:59 fe80::b stopped 00:00:16
2 gi0/3 ff10::1 00:03:59 fe80::c stopped 00:00:16
#Multicast Server sends the IPv6 multicast packet whose destination address is FF10::1, PC2 and PC2 can receive the multicast service packet, and PC3 cannot receive the multicast service packet.