Configuring pe 2 – H3C Technologies H3C Intelligent Management Center User Manual
Page 118

[P-mpls] quit
3.
Enable LDP globally.
[P] mpls ldp
[P-mpls-ldp] quit
4.
Configure VLAN-interface 2 that connects to PE 1, and enable LDP on the interface.
[P] interface vlan-interface 2
[P-Vlan-interface2] ip address 23.1.1.2 24
[P-Vlan-interface2] mpls
[P-Vlan-interface2] mpls ldp
[P-Vlan-interface2] quit
5.
Configure VLAN-interface 3 that connects to PE 2, and enable LDP on the interface.
[P] interface vlan-interface 3
[P-Vlan-interface3] ip address 26.2.2.2 24
[P-Vlan-interface3] mpls
[P-Vlan-interface3] mpls ldp
[P-Vlan-interface3] quit
6.
Configure OSPF for LSP establishment.
[P] ospf
[P-ospf-1] area 0
[P-ospf-1-area-0.0.0.0] network 23.1.1.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 26.2.2.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
Configuring PE 2
1.
Configure a loopback interface and its IP address.
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 3.3.3.9 32
[PE2-LoopBack0] quit
2.
Configure the LSR ID and enable MPLS globally.
[PE2] mpls lsr-id 3.3.3.9
[PE2] mpls
[PE2-mpls] quit
3.
Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
4.
Enable LDP globally.
[PE2] mpls ldp
[PE2-mpls-ldp] quit
5.
Configure VLAN-interface 3 that connects to the P device, and enable LDP on the interface.
[PE2] interface vlan-interface 3
108