293
<PE2> system-view
[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 PE 1, display RP information for VPN instance
a
.
[PE1] 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
Priority: 192
HoldTime: 150
Uptime: 00:43:51
Expires: 00:01:39
# Specify 100.1.1.1 and 1.1.1.1 as the source IP addresses for multicast across VPNs in VPN
instance
b
.
[PE1] ip vpn-instance b
[PE1-vpn-instance-b] multicast extra-vpn a 100.1.1.1 255.255.255.255
[PE1-vpn-instance-b] multicast extra-vpn a 1.1.1.1 255.255.255.255
[PE1-vpn-instance-b] quit
# Configure Loopback 1 on CE a1 as the static RP for VPN instance
b
.
[PE1] pim vpn-instance b
[PE1-pim-b] static-rp 1.1.1.1
# On PE 2, configure Loopback 1 on CE a1 as the static RP for VPN instance
b
.
[PE2] pim vpn-instance b
[PE2-pim-b] static-rp 1.1.1.1
[PE2-pim-b] quit
# Configure 100:1 as the import target attribute for VPN instance
b
.
[PE2] ip vpn-instance b
[PE2-vpn-instance-b] vpn-target 100:1 import
[PE2-vpn-instance-b] quit
# 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