207
[PE4] ip vpn-instance b
[PE4-vpn-instance-b] route-distinguisher 200:1
[PE4-vpn-instance-b] vpn-target 200:1 export-extcommunity
[PE4-vpn-instance-b] vpn-target 200:1 import-extcommunity
[PE4-vpn-instance-b] quit
# Enable IP multicast routing in VPN instance b.
[PE4] multicast routing vpn-instance b
[PE4-mrib-b] quit
# Create the MD for VPN instance b, and specify the default-group, MD source interface, and
data-group address range for it.
[PE4] multicast-domain vpn-instance b
[PE4-md-b] default-group 239.4.4.4
[PE4-md-b] source loopback 1
[PE4-md-b] data-group 225.4.4.0 28
[PE4-md-b] quit
# Assign an IP address to the public network interface VLAN-interface 4, and enable PIM-SM,
MPLS, and LDP on it.
[PE4] interface vlan-interface 4
[PE4-Vlan-interface4] ip address 10.10.2.2 24
[PE4-Vlan-interface4] pim sm
[PE4-Vlan-interface4] mpls enable
[PE4-Vlan-interface4] mpls ldp enable
[PE4-Vlan-interface4] quit
# Bind VLAN-interface 13 with VPN instance a, assign an IP address to VLAN-interface 13, and
enable PIM-SM on the interface.
[PE4] interface vlan-interface 13
[PE4-Vlan-interface13] ip binding vpn-instance a
[PE4-Vlan-interface13] ip address 10.11.3.1 24
[PE4-Vlan-interface13] pim sm
[PE4-Vlan-interface13] quit
# Bind VLAN-interface 14 with VPN instance b, assign an IP address to VLAN-interface 14, and
enable PIM-SM on the interface.
[PE4] interface vlan-interface 14
[PE4-Vlan-interface14] ip binding vpn-instance b
[PE4-Vlan-interface14] ip address 10.11.4.1 24
[PE4-Vlan-interface14] pim sm
[PE4-Vlan-interface14] quit
# Assign an IP address to Loopback 1, and enable PIM-SM.
[PE4] interface loopback 1
[PE4-LoopBack1] ip address 1.1.1.4 32
[PE4-LoopBack1] pim sm
[PE4-LoopBack1] quit
# Configure BGP.
[PE4] bgp 200
[PE4-bgp] group pe4-pe3 internal
[PE4-bgp] peer pe4-pe3 connect-interface loopback 1
[PE4-bgp] peer 1.1.1.3 group pe4-pe3