295
[PE2] ip vpn-instance b
# Configure the RD and route target attributes for VPN instance
b
.
[PE2-vpn-instance-b] route-distinguisher 200:1
[PE2-vpn-instance-b] vpn-target 200:1 both
# Enable IP multicast routing in VPN instance
b
.
[PE2-vpn-instance-b] multicast routing-enable
# Specify 239.2.2.2 as the share-group address for VPN instance
b
and associate an MTI with
the VPN instance.
[PE2-vpn-instance-b] multicast-domain share-group 239.2.2.2 binding mtunnel 1
# Associate VLAN-interface 15 with VPN instance
b
.
[PE2] interface Vlan-interface 15
[PE2-Vlan-interface15] ip binding vpn-instacne b
[PE2-Vlan-interface15] quit
2.
Configure multicast across VPNs:
# On CE a1, display RP information for VPN instance
a
.
<CE_a1> display pim vpn-instance a rp-info
VPN-Instance: a
PIM-SM BSR RP information:
Group/MaskLen: 224.0.0.0/4
RP: 1.1.1.1 (local)
Priority: 0
HoldTime: 150
Uptime: 02:20:50
Expires: 00:01:51
# On PE 3, specify 1.1.1.1 and 100.1.1.1 as the source IP addresses for multicast across VPNs
in VPN instance
b
.
[PE3] ip vpn-instance b
[PE3-vpn-instance-b] multicast extra-vpn a 1.1.1.1 255.255.255.255
[PE3-vpn-instance-b] multicast extra-vpn a 100.1.1.1 255.255.255.255
[PE3-vpn-instance-b] quit
# Configure Loopback 1 on CE a1 as the static RP for VPN instance
b
.
[PE3] pim vpn-instance b
[PE3-pim-b] static-rp 1.1.1.1
# On CE b1, configure Loopback 1 on CE a1 as the static RP for VPN instance
b
.
<CE_b1> system-view
[CE_b1] pim
[CE_b1-pim] static-rp 1.1.1.1
[CE_b1-pim] quit
# Configure static routes to reach the static RP and the multicast source.
[CE_b1] ip route-static 1.1.1.1 255.255.255.255 200.1.1.1
[CE_b1] ip route-static 100.1.1.1 255.255.255.255 200.1.1.1
M6VPE configuration example
Network requirements
•
PIM-SM runs on the public network. Loopback 1 on the P device acts as a C-BSR and a C-RP
for all multicast groups on the public network.