Figure 94 Network diagram
Site 1
CE 1
Table 35 Interface and IP address assignment
Device
CE 1
PE 1
CE 2
Configuration procedure
Before configuration, perform the following tasks on the switches:
•
Configure VLANs and add ports to VLANs.
•
Disable the spanning tree feature globally or map each VLAN to an MSTI. For more information,
see Layer 2—LAN Switching Configuration Guide.
1.
Configure CE 1.
<CE1> system-view
[CE1] interface vlan-interface 10
[CE1-Vlan-interface10] ip address 100.1.1.1 24
[CE1-Vlan-interface10] quit
2.
Configure PE 1:
# Configure an LSR ID.
<PE1> system-view
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.1 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 1.1.1.1
# Enable global MPLS LDP.
[PE1] mpls ldp
[PE1-ldp] quit
Loop0
Vlan-int10
Vlan-int12
GE1/0/1
PE 1
MPLS or IP
backbone
Interface
IP address
Vlan-int10
100.1.1.1/24
Loop0
1.1.1.1/32
Vlan-int12
12.1.1.1/24
Vlan-int13
13.1.1.1/24
Vlan-int10
100.1.1.2/24
Loop0
Vlan-int12
Vlan-int13
PE 2
Loop0
Vlan-int13
PE 3
Device
PE 2
PE 3
356
GE1/0/1
Vlan-int10
CE 2
GE1/0/1
Interface
IP address
Loop0
2.2.2.2/32
Vlan-int12
12.1.1.2/24
Loop0
3.3.3.3/32
Vlan-int13
13.1.1.3/24
Site 2