273
Figure 69
Network diagram
Device Interface IP
address
Device
Interface IP
address
CE 1
Vlan-int1
10.1.1.1/24
CE 2
Vlan-int1
10.2.1.1/24
PE 1
Loop0
1.1.1.9/32
PE 2
Loop0
4.4.4.9/32
Vlan-int1
10.1.1.2/24
Vlan-int1 10.2.1.2/24
Vlan-int2
172.1.1.2/24
Vlan-int2
162.1.1.2/24
ASBR-PE 1
Loop0
2.2.2.9/32
ASBR-PE 2
Loop0
3.3.3.9/32
Vlan-int1
172.1.1.1/24
Vlan-int1 162.1.1.1/24
Vlan-int2
192.1.1.1/24
Vlan-int2
192.1.1.2/24
Configuration procedure
1.
Configure an IGP on the MPLS backbone to ensure IP connectivity in the backbone.
This example uses OSPF. (Details not shown)
NOTE:
The 32-bit loopback interface address used as the LSR ID needs to be advertised by OSPF.
After you complete the previous configurations, each ASBR PE and the PE in the same AS are able
to establish OSPF adjacencies. Issuing the
display ospf peer
command, you can see that the
adjacencies reach the state of Full, and that PEs can learn the loopback addresses of each other.
Each ASBR PE and the PE in the same AS should be able to ping each other.
2.
Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs.
# Configure basic MPLS on PE 1 and enable MPLS LDP on the interface connected to ASBR PE 1.
<PE1> system-view
[PE1] mpls lsr-id 1.1.1.9
[PE1] mpls
[PE1-mpls] quit
[PE1] mpls ldp
[PE1-mpls-ldp] quit
[PE1] interface vlan-interface 1