281
Device
Interface
IP address
Device
Interface
IP address
Vlan-int11
10.11.1.1/24 Vlan-int3
192.168.1.2/24
Vlan-int12
10.11.2.1/24 Loop1 1.1.1.3/32
Loop1 1.1.1.1/32 Loop2 22.22.22.22/32
PE 2
Vlan-int2
10.10.1.2/24
PE 4
Vlan-int4
10.10.2.2/24
Vlan-int3
192.168.1.1/24
Vlan-int13
10.11.3.1/24
Loop1 1.1.1.2/32 Vlan-int14 10.11.4.1/32
Loop2 11.11.11.11/32
Loop2 1.1.1.4/32
CE a1
Vlan-int10
10.11.5.1/24
CE b1
Vlan-int20
10.11.6.1/24
Vlan-int11
10.11.1.2/24 Vlan-int12
10.11.2.2/24
Loop0 2.2.2.2/32 CE
b2 Vlan-int40
10.11.8.1/24
CE a2
Vlan-int30
10.11.7.1/24 Vlan-int14
10.11.4.2/24
Vlan-int13
10.11.3.2/24 Loop0 3.3.3.3/32
Configuration procedure
1.
Configure PE 1:
# Configure a Router ID, enable IP multicast routing on the public network, configure an MPLS
LSR ID, and enable the LDP capability.
<PE1> system-view
[PE1] router id 1.1.1.1
[PE1] multicast routing-enable
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls
[PE1-mpls] quit
[PE1] mpls ldp
[PE1-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.
[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] multicast routing-enable
[PE1-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0
[PE1-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.
[PE1] ip vpn-instance b
[PE1-vpn-instance-b] route-distinguisher 200:1
[PE1-vpn-instance-b] vpn-target 200:1 export-extcommunity
[PE1-vpn-instance-b] vpn-target 200:1 import-extcommunity
[PE1-vpn-instance-b] multicast routing-enable
[PE1-vpn-instance-b] multicast-domain share-group 239.4.4.4 binding mtunnel 1
[PE1-vpn-instance-b] quit
# Create service loopback group 1, and specify its service type as
multicast tunnel
.
[PE1] service-loopback group 1 type multicast-tunnel