R21xx-HP FlexFabric 11900 MPLS Configuration Guide
241
Figure 67 Network diagram
Device Interface IP address Device Interface IP address
CE 1 Vlan-int10 100.1.1.1/24
P
Loop0
192.4.4.4/32
PE 1 Loop0 192.2.2.2/32
Vlan-int23 23.1.1.2/24
Vlan-int23 23.1.1.1/24 Vlan-int26 26.2.2.2/24
CE 2 Vlan-int10 100.1.1.2/24
PE 2
Loop0
192.3.3.3/32
Vlan-int26 26.2.2.1/24
Configuration procedure
Before you perform the following configurations, configure VLANs and add ports to VLANs on CEs.
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 192.2.2.2 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 192.2.2.2
# Enable L2VPN.
[PE1] l2vpn enable
# Enable global LDP.
[PE1] mpls ldp
[PE1-ldp] quit
# Configure VLAN-interface 23 connected to the P device and enable LDP on the interface.
[PE1] interface vlan-interface 23
[PE1-Vlan-interface23] ip address 23.1.1.1 24
[PE1-Vlan-interface23] mpls enable
[PE1-Vlan-interface23] mpls ldp enable
[PE1-Vlan-interface23] quit
# Configure OSPF on PE 1 for LDP to create LSPs.
[PE1] ospf










