273
[PE2-rip-3] network 10.0.0.0
[PE2-rip-3] import-route bgp
[PE2-rip-3] return
3.
Configure PE 3:
# Configure a Router ID, enable IP multicast routing on the public network, configure an MPLS
LSR ID, and enable the LDP capability.
<PE3> system-view
[PE3] router id 1.1.1.3
[PE3] multicast routing-enable
[PE3] mpls lsr-id 1.1.1.3
[PE3] mpls
[PE3-mpls] quit
[PE3] mpls ldp
[PE3-mpls-ldp] quit
# Create VPN instance a, configure an RD and route target attributes for it.
[PE3] ip vpn-instance a
[PE3-vpn-instance-a] route-distinguisher 100:1
[PE3-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE3-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.
[PE3-vpn-instance-a] multicast routing-enable
[PE3-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0
[PE3-vpn-instance-a] quit
# Create VPN instance b, configure an RD and route target attributes 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, and
associate an MTI with the VPN instance.
[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] quit
# Create service loopback group 1, and specify its service type as
multicast tunnel
.
[PE3] 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.
[PE3] interface gigabitethernet1/0/3
[PE3-GigabitEthernet1/0/3] undo stp enable
[PE3-GigabitEthernet1/0/3] undo ndp enable
[PE3-GigabitEthernet1/0/3] undo lldp enable
[PE3-GigabitEthernet1/0/3] port service-loopback group 1
[PE3-GigabitEthernet1/0/3] quit
# Configure an IP address, and enable PIM-SM and LDP capability on the public network
interface VLAN-interface 19.
[PE3] interface vlan-interface 19
[PE3-Vlan-interface19] ip address 192.168.8.1 24