248
# Create VPN instance
b
, configure an RD for it, and create an ingress route and an egress route
for it.
[PE3] ip vpn-instance b
[PE3-vpn-instance-b] route-distinguisher 200:1
[PE3-vpn-instance-b] vpn-target 200:1 export-extcommunity
[PE3-vpn-instance-b] vpn-target 200:1 import-extcommunity
# Enable IP multicast routing in VPN instance
b
, configure a share-group address, associate an
MTI with the VPN instance, and define the switch-group-pool address range.
[PE3-vpn-instance-b] multicast routing-enable
[PE3-vpn-instance-b] multicast-domain share-group 239.2.2.2 binding mtunnel 1
[PE3-vpn-instance-b] multicast-domain switch-group-pool 225.4.4.0 28
[PE3-vpn-instance-b] quit
# Configure an IP address, and enable PIM-SM and LDP capability on the public network interface
Ethernet 1/1.
[PE3] interface ethernet 1/1
[PE3-Ethernet1/1] ip address 192.168.8.1 24
[PE3-Ethernet1/1] pim sm
[PE3-Ethernet1/1] mpls
[PE3-Ethernet1/1] mpls ldp
[PE3-Ethernet1/1] quit
# Bind Ethernet 1/2 with VPN instance
a
, configure an IP address and enable PIM-SM on the
interface.
[PE3] interface ethernet 1/2
[PE3-Ethernet1/2] ip binding vpn-instance a
[PE3-Ethernet1/2] ip address 10.110.5.1 24
[PE3-Ethernet1/2] pim sm
[PE3-Ethernet1/2] quit
# Bind Ethernet 1/3 with VPN instance
b
, configure an IP address and enable PIM-SM on the
interface.
[PE3] interface ethernet 1/3
[PE3-Ethernet1/3] ip binding vpn-instance b
[PE3-Ethernet1/3] ip address 10.110.6.1 24
[PE3-Ethernet1/3] pim sm
[PE3-Ethernet1/3] quit
# Configure an IP address for Loopback 1, and enable PIM-SM.
[PE3] interface loopback 1
[PE3-LoopBack1] ip address 1.1.1.3 32
[PE3-LoopBack1] pim sm
[PE3-LoopBack1] quit
# Bind Loopback 2 with VPN instance
b
, configure an IP address and enable PIM-SM on the
interface.
[PE3] interface loopback 2
[PE3-LoopBack2] ip binding vpn-instance b
[PE3-LoopBack2] ip address 33.33.33.33 32
[PE3-LoopBack2] pim sm
[PE3-LoopBack2] quit
# Configure Loopback 2 as a C-BSR and C-RP for VPN b.