271
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Create VPN instance b, configure an RD and route target attributes for it.
[PE2] ip vpn-instance b
[PE2-vpn-instance-b] route-distinguisher 200:1
[PE2-vpn-instance-b] vpn-target 200:1 export-extcommunity
[PE2-vpn-instance-b] vpn-target 200:1 import-extcommunity
# Enable IP multicast routing in VPN instance b, configure a share-group address, and
associate an MTI with the VPN instance.
[PE2-vpn-instance-b] multicast routing-enable
[PE2-vpn-instance-b] multicast-domain share-group 239.2.2.2 binding mtunnel 1
[PE2-vpn-instance-b] quit
# Create VPN instance a, configure an RD and route target attributes for it.
[PE2] ip vpn-instance a
[PE2-vpn-instance-a] route-distinguisher 100:1
[PE2-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE2-vpn-instance-a] vpn-target 100:1 import-extcommunity
# Enable IP multicast routing in VPN instance a, configure a share-group address, and
associate an MTI with the VPN instance.
[PE2-vpn-instance-a] multicast routing-enable
[PE2-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0
[PE2-vpn-instance-a] quit
# Create service loopback group 1, and specify its service type as
multicast tunnel
.
[PE2] service-loopback group 1 type multicast-tunnel
# Select an available port not in use, disable spanning tree protocols, LLDP and NDP on the
port, and add the port to service loopback group 1.
[PE2] interface gigabitethernet1/0/3
[PE2-GigabitEthernet1/0/3] undo stp enable
[PE2-GigabitEthernet1/0/3] undo ndp enable
[PE2-GigabitEthernet1/0/3] undo lldp enable
[PE2-GigabitEthernet1/0/3] port service-loopback group 1
[PE2-GigabitEthernet1/0/3] quit
# Configure an IP address, and enable PIM-SM and LDP capability on the public network
interface VLAN-interface 15.
[PE2] interface vlan-interface 15
[PE2-Vlan-interface15] ip address 192.168.7.1 24
[PE2-Vlan-interface15] pim sm
[PE2-Vlan-interface15] mpls
[PE2-Vlan-interface15] mpls ldp
[PE2-Vlan-interface15] quit
# Bind VLAN-interface 13 with VPN instance
b
, configure an IP address and enable PIM-SM on
the interface.
[PE2] interface vlan-interface 13
[PE2-Vlan-interface13] ip binding vpn-instance b
[PE2-Vlan-interface13] ip address 10.110.3.1 24
[PE2-Vlan-interface13] pim sm
[PE2-Vlan-interface13] quit