250
Figure 66
Network diagram
Device Interface IP
address
Device
Interface
IP address
CE 1
Vlan-int1
10.1.1.1/24
P
Loop0
2.2.2.9/32
PE 1
Loop0
1.1.1.9/32
Vlan-int1
172.2.1.1/24
Vlan-int1
10.1.1.2/24
Vlan-int3
172.1.1.2/24
Vlan-int3
172.1.1.1/24
PE
2
Loop0
3.3.3.9/32
Vlan-int2
10.2.1.2/24
Vlan-int1
172.2.1.2/24
CE 2
Vlan-int2
10.2.1.1/24
Vlan-int2
10.3.1.2/24
CE 3
Vlan-int2
10.3.1.1/24
Vlan-int3
10.4.1.2/24
CE 4
Vlan-int3
10.4.1.1/24
Configuration procedure
1.
Configure an IGP on the MPLS backbone to ensure IP connectivity within the backbone.
# Configure PE 1.
<PE1> system-view
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.9 32
[PE1-LoopBack0] quit
[PE1] interface vlan-interface 3
[PE1-Vlan-interface3] ip address 172.1.1.1 24
[PE1- Vlan-interface3] quit
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Configure the P switch.
<P> system-view
[P] interface loopback 0
CE 1
Loop0
Loop0
Loop0
PE 1
PE 2
Vlan-int1
Vlan-int1
Vlan-int2
Vlan-int2
Vlan-int1
Vlan-int3
Vlan-int3
Vlan-int2
Vlan-int2
CE 3
CE 2
CE 4
Vlan-int3
Vlan-int1
Vlan-int3
VPN 1
VPN 1
VPN 2
VPN 2
MPLS backbone
AS 65410
AS 65430
AS 65420
AS 65440
P