Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure MLD Multicast Group Filter

Network Requirements

  • The whole network runs the IPv6 PIM-SM protocol.
  • Receiver is one receiver of the Device stub network.
  • Run MLDv2 between Device and the stub network.
  • Device interface gigabitethernet0/0/1 filters the multicast group; the range of the multicast groups Receiver is permitted to add is ff10::/16.

Network Topology

Networking of configuring IGMP multicast group filter

Figure 9-4 Networking of configuring IGMP multicast group filter

Configuration Steps

Step 1: Configure VLAN, and add the port to the corresponding VLAN (omitted).

Step 2: Configure the IPv6 address of the interface (omitted).

Step 3: Globally enable the IPv6 multicast forwarding and enable the multicast protocol IPv6 PIM-SM on the interface.

#Configure Device.

Globally enable the IPv6 multicast forwarding, enable the multicast protocol IPv6 PIM-SM on the related interfaces, and enable MLD on the interface of connecting Receiver.

Device#configure terminal
Device(config)#ipv6 multicast-routing
Device(config)#interface vlan2
Device(config-if-vlan2)#ipv6 pim sparse-mode
Device(config-if-vlan2)#exit
Device(config)#interface vlan3
Device(config-if-vlan3)#ipv6 pim sparse-mode
Device(config-if-vlan3)#ipv6 mld enable
Device(config-if-vlan3)#exit

#View the MLD information of Device interface vlan3.

Device#show ipv6 mld interface vlan3
Interface vlan3 (Index 23) 
 MLD Enabled, Active 
 Querier: fe80::201:2ff:fe03:406 (Self) 
 Default version: 2 
 Querier parameter:  
   Query interval is 125 seconds 
   Querier timeout is 255 seconds 
   Query response time is 10 seconds 
   Last member query response interval is 1 seconds 
   Last member query count is 2  
   Group Membership interval is 260 seconds 
   Robustness variable is 2 

Step 4: Configure the multicast group filter on Device interface vlan3.

#Configure Device.

Configure the multicast group filter on Device interface vlan3; the range of the multicast groups Receiver is permitted to add is ff10::/16.

Device(config)#ipv6 access-list extended 7001
Device(config-std-nacl)#permit ipv6 any ff10::/16
Device(config-std-nacl)#commit
Device(config-std-nacl)#exit
Device(config)#interface vlan3
Device(config-if-vlan3)#ipv6 mld access-group 7001
Device(config-if-vlan3)#exit

Step 5: Check the result.

#Receiver sends the IGMPv2 member report packet to add to multicast group FF10::1 and FF11::1.

#Source sends the multicast packets with multicast group FF10::1 and FF11::1. #View the multicast member table of Device.

Device#show ipv6 mld groups  
MLD Connected Group Membership
Total 1 Connected Groups 
Group     Interface    Uptime   Expires  V1-Expires Last Reporter
ff10::1   vlan3        01:06:32 00:04:15 00:04:15   fe80::b

#View the multicast route table of Device.

Device#show ipv6 pim mroute
IP Multicast Routing Table: 
PIM6 VRF Name: Default
Total 0 (*,*,RP) entry
Total 1 (*,G) entry
Total 2 (S,G) entries
Total 2 (S,G,rpt) entries
Total 0 FCR entry 
Up timer/Expiry timer 

(*, ff10::1) 
Up time: 00:01:00
RP: :: 
RPF nbr: ::
RPF idx: None
Flags: 
Upstream State: NOT JOINED 
  Local interface list: 
    vlan3 
  Joined interface list: 
  Asserted interface list: 


(1000::a, ff10::1) 
Up time: 00:00:06
KAT time: 00:03:24
RPF nbr: :: 
RPF idx: None
SPT bit: TRUE
Flags: 
  JOIN DESIRED 
  COULD REGISTER 
Upstream State: JOINED 
  Local interface list: 
    vlan3 
  Joined interface list: 
    register_vif0 
  Asserted interface list: 
  Outgoing interface list: register_vif0 
vlan3 
  Packet count 1 

(1000::a, ff10::1, rpt)
Up time: 00:00:06 
RP: :: 
Flags: 
  RPT JOIN DESIRED 
  RPF SGRPT XG EQUAL 
Upstream State: NOT PRUNED 
  Local interface list: 
  Pruned interface list: 
  Outgoing interface list: 


(1000::a, ff11::1) 
Up time: 00:00:06
KAT time: 00:03:24
RPF nbr: :: 
RPF idx: None
SPT bit: TRUE
Flags: 
  JOIN DESIRED 
  COULD REGISTER 
Upstream State: JOINED 
  Local interface list: 
  Joined interface list: 
    register_vif0 
  Asserted interface list: 
  Outgoing interface list: 
    register_vif0 
  Packet count 1 

(1000::a, ff11::1, rpt)
Up time: 00:00:06 
RP:   ::
Flags: 
  RPF SGRPT XG EQUAL 
Upstream State: RPT NOT JOINED 
  Local interface list: 
  Pruned interface list: 
  Outgoing interface list:

#Receiver can only receive the multicast service packets with multicast group FF10::1 sent by Source.

note


  • To filter based on multicast source group, use the command ipv6 mld access-group to realize, and configure the corresponding source address in the associated ACL. For example, permit ipv6 1000::/16 ff10::/16 indicates permitting the source group in the group range FF10::/16 and the specified source range 1000::/16 to add. When using the function, it is required that the interface runs MLDv2.