456
VPLS configuration examples
Static PW configuration example
Network requirements
CEs are connected to the PEs through Layer 3 Ethernet interfaces (GigabitEthernet 1/1/1).
Configure a VSI on each PE, and establish static PWs between the PEs to interconnect the CEs.
Figure 123 Network diagram
Configuration procedure
This task includes the following configurations:
•
Configure basic MPLS on each PE: configure LSR ID, enable LDP, run IGP (OSPF in this
example) to establish LSPs.
•
Establish static PWs: enable L2VPN, create static PWs, and specify labels.
1.
Configure PE 1:
# Configure an LSR ID.
<PE1> system-view
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.9 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 1.1.1.9
# Enable L2VPN.
[PE1] l2vpn enable
# Enable global LDP.
[PE1] mpls ldp
[PE1-ldp] quit
# Configure GigabitEthernet 1/1/2 (the interface connected to PE 2), and enable LDP on the
interface.
[PE1] interface gigabitethernet 1/1/2
[PE1-GigabitEthernet1/1/2] ip address 20.1.1.1 24
[PE1-GigabitEthernet1/1/2] mpls enable
[PE1-GigabitEthernet1/1/2] mpls ldp enable