296
•
IPv6 PIM-SM runs in VPN
a
. Loopback 0 on CE a1 acts as a C-BSR and a C-RP for all IPv6
multicast group in VPN a. The share-group address is 239.1.1.1.
Figure 88 Network diagram
Device
Interface
IP address or IPv6
address
Device
Interface
IP address or IPv6
address
Source -
1001::2/64
PE
2
Vlan-int40
192.168.2.2/24
Receiver -
5001::2/64
Vlan-int50
4001::1/64
P Vlan-int30
192.168.1.2/24
Loop1 3.3.3.3/32
Vlan-int40
192.168.2.1/24
CE
a1
Vlan-int10
1001::1/64
Loop1 2.2.2.2/32 Vlan-int20
2001::1/64
PE 1
Vlan-int20
2001::2/64
Loop0
3001::1/128
Vlan-int30
192.168.1.1/24
CE
a2
Vlan-int50
4001::2/64
Loop1 1.1.1.1/32 Vlan-int60
5001::1/64
Configuration procedure
1.
Configure PE 1:
# Configure a Router ID, enable IP multicast routing on the public network, configure an MPLS
LSR ID, and enable the LDP capability.
<PE1> system-view
[PE1] router id 1.1.1.1
[PE1] multicast routing-enable
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls
[PE1-mpls] quit
[PE1] mpls ldp
[PE1-mpls-ldp] quit
# Enable IPv6 forwarding, create VPN instance
a
, configure an RD and route target attributes
for it.
[PE1] ipv6
[PE1] ip vpn-instance a
[PE1-vpn-instance-a] route-distinguisher 100:1
[PE1-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE1-vpn-instance-a] vpn-target 100:1 import-extcommunity
# Enable IP multicast routing and IPv6 multicast routing in VPN instance
a
, configure a
share-group address, and associate an MTI with the VPN instance.
[PE1-vpn-instance-a] multicast routing-enable
[PE1-vpn-instance-a] multicast ipv6 routing-enable
[PE1-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0