R3303-HP HSR6800 Routers MPLS Configuration Guide

203
[P-Ten-GigabitEthernet1/0/2] ip address 23.1.1.2 24
[P-Ten-GigabitEthernet1/0/2] mpls
[P-Ten-GigabitEthernet1/0/2] mpls ldp
[P-Ten-GigabitEthernet1/0/2] quit
# Configure the interface connected with PE 2 and enable LDP on the interface.
[P] interface ten-GigabitEthernet1/0/3
[P-Ten-GigabitEthernet1/0/3] ip address 26.2.2.2 24
[P-Ten-GigabitEthernet1/0/3] mpls
[P-Ten-GigabitEthernet1/0/3] mpls ldp
[P-Ten-GigabitEthernet1/0/3] quit
# Configure OSPF.
[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 192.4.4.4 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
4. Configure PE 2:
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
# Configure the MPLS LSR ID and enable MPLS globally.
[PE2] mpls lsr-id 192.3.3.3
[PE2] mpls
[PE2-mpls] quit
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
# Enable LDP globally.
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure PE 2 to establish a remote LDP connection with PE 1.
[PE2] mpls ldp remote-peer 2
[PE2-mpls-ldp-remote-2] remote-ip 192.2.2.2
[PE2-mpls-ldp-remote-2] quit
# Configure the interface connected with the P device and enable LDP on the interface.
[PE2] interface ten-GigabitEthernet 1/0/3
[PE2-Ten-GigabitEthernet1/0/3] ip address 26.2.2.1 24
[PE2-Ten-GigabitEthernet1/0/3] mpls
[PE2-Ten-GigabitEthernet1/0/3] mpls ldp
[PE2-Ten-GigabitEthernet1/0/3] quit
# Configure OSPF.