287
[PE3-route-policy] if-match mpls-label
[PE3-route-policy] apply mpls-label
[PE3-route-policy] quit
4.
Configure PE 4:
# Configure a Router ID, enable IP multicast routing on the public network, configure an MPLS
LSR ID, and enable the LDP capability.
<PE4> system-view
[PE4] router id 1.1.1.4
[PE4] multicast routing-enable
[PE4] mpls lsr-id 1.1.1.4
[PE4] mpls
[PE4-mpls] quit
[PE4] mpls ldp
[PE4-mpls-ldp] quit
# Create VPN instance a, configure an RD and route target attributes for it. Enable IP multicast
routing in VPN instance a, configure a share-group address, and associate an MTI with the
VPN instance.
[PE4] ip vpn-instance a
[PE4-vpn-instance-a] route-distinguisher 100:1
[PE4-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE4-vpn-instance-a] vpn-target 100:1 import-extcommunity
[PE4-vpn-instance-a] multicast routing-enable
[PE4-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0
[PE4-vpn-instance-a] quit
# Create VPN instance b, configure an RD and route target attributes for it. Enable IP multicast
routing in VPN instance b, configure a share-group address, and associate an MTI with the
VPN instance.
[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] multicast routing-enable
[PE4-vpn-instance-b] multicast-domain share-group 239.4.4.4 binding mtunnel 1
[PE4-vpn-instance-b] quit
# Create service loopback group 1, and specify its service type as
multicast tunnel
.
[PE4] 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.
[PE4] interface gigabitethernet1/0/3
[PE4-GigabitEthernet1/0/3] undo stp enable
[PE4-GigabitEthernet1/0/3] undo ndp enable
[PE4-GigabitEthernet1/0/3] undo lldp enable
[PE4-GigabitEthernet1/0/3] port service-loopback group 1
[PE4-GigabitEthernet1/0/3] quit
# Configure an IP address, and enable PIM-SM and LDP capability on the public network
interface VLAN-interface 4.
[PE4] interface vlan-interface 4
[PE4-Vlan-interface4] ip address 10.10.2.2 24
[PE4-Vlan-interface4] pim sm