187
Device Interface IP address
Device
Interface
IP address
P VLAN-interface 19 192.168.8.2/24 CE a2 VLAN-interface 14 10.110.4.2/24
P Loopback 1 2.2.2.2/32 CE a2 VLAN-interface 16 10.110.12.1/24
PE 1 VLAN-interface 12 192.168.6.1/24 CE a2 Loopback 1 22.22.22.22/32
PE 1 VLAN-interface 20 10.110.1.1/24 CE a3 VLAN-interface 50 10.110.10.1/24
PE 1 VLAN-interface 11 10.110.2.1/24 CE a3 VLAN-interface 17 10.110.5.2/24
PE 1 Loopback 1 1.1.1.1/32 CE a3 VLAN-interface 16 10.110.12.2/24
PE 2 VLAN-interface 15 192.168.7.1/24 CE b1 VLAN-interface 30 10.110.8.1/24
PE 2 VLAN-interface 13 10.110.3.1/24 CE b1 VLAN-interface 13 10.110.3.2/24
PE 2 VLAN-interface 14 10.110.4.1/24 CE b2 VLAN-interface 60 10.110.11.1/24
PE 2 Loopback 1 1.1.1.2/32 CE b2 VLAN-interface 18 10.110.6.2/24
Configuration procedure
1. Configure PE 1:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE1> system-view
[PE1] router id 1.1.1.1
[PE1] multicast routing
[PE1-mrib] quit
# Configure an MPLS LSR ID, and enable LDP.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls ldp
[PE1-ldp] quit
# Create VPN instance a and configure an RD and route target attributes for it.
[PE1] ip vpn-instance a
[PE1-vpn-instance-a] route-distinguisher 100:1
[PE1-vpn-instance-a] vpn-target 100:1 export-extcommunity
[PE1-vpn-instance-a] vpn-target 100:1 import-extcommunity
[PE1-vpn-instance-a] quit
# Create service loopback group 1, and specify its type as multicast tunnel.
[PE1] service-loopback group 1 type multicast-tunnel
# Select an unused interface, and assign the interface to service loopback group 1.
[PE1] interface ten-gigabitethernet1/1/7
[PE1-Ten-GigabitEthernet1/1/7] port service-loopback group 1
[PE1-Ten-GigabitEthernet1/1/7] quit
# Enable IP multicast routing in VPN instance a.
[PE1] multicast routing vpn-instance a
[PE1-mrib-a] quit
# Create the MD for VPN instance a, and specify the default-group, MD source interface, and
data-group address range for it.
[PE1] multicast-domain vpn-instance a
[PE1-md-a] default-group 239.1.1.1
[PE1-md-a] source loopback 1