![Huawei Quidway NetEngine40E Configuration Manual - Reliability Download Page 584](http://html.mh-extra.com/html/huawei/quidway-netengine40e/quidway-netengine40e_configuration-manual-reliability_169453584.webp)
[PE1-ospf-1-area-0.0.0.0]
network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0]
network 10.1.1.0 0.0.0.3
[PE1-ospf-1-area-0.0.0.0]
network 10.2.1.0 0.0.0.3
[PE1-ospf-1-area-0.0.0.0]
quit
[PE1-ospf-1]
quit
# Configure PE2.
[PE2]
ospf 1
[PE2-ospf-1]
area 0
[PE2-ospf-1-area-0.0.0.0]
network 2.2.2.2 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]
network 10.1.1.0 0.0.0.3
[PE2-ospf-1-area-0.0.0.0]
network 10.3.1.0 0.0.0.3
[PE2-ospf-1-area-0.0.0.0]
quit
[PE2-ospf-1]
quit
# Configure PE3.
[PE3]
ospf 1
[PE3-ospf-1]
area 0
[PE3-ospf-1-area-0.0.0.0]
network 3.3.3.3 0.0.0.0
[PE3-ospf-1-area-0.0.0.0]
network 10.2.1.0 0.0.0.3
[PE3-ospf-1-area-0.0.0.0]
network 10.3.1.0 0.0.0.3
[PE3-ospf-1-area-0.0.0.0]
quit
[PE3-ospf-1]
quit
After the preceding configuration, PE1 and PE2, PE1 and PE3 can learn IP addresses of
loopback1 interfaces from each other through OSPF.
Take the display on PE1 as an example.
[PE1]
display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 13
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
2.2.2.2/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet2/0/0
3.3.3.3/32 OSPF 10 2 D 10.2.1.2 GigabitEthernet3/0/0
10.1.1.0/30 Direct 0 0 D 10.1.1.1 GigabitEthernet2/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 Gigabitethernet2/0/0
10.1.1.2/32 Direct 0 0 D 10.1.1.2 GigabitEthernet2/0/0
10.3.1.0/30 OSPF 10 2 D 10.1.1.2 GigabitEthernet2/0/0
OSPF 10 2 D 10.2.1.2 GigabitEthernet3/0/0
10.2.1.0/30 Direct 0 0 D 10.2.1.1 GigabitEthernet3/0/0
10.2.1.1/32 Direct 0 0 D 127.0.0.1 Gigabitethernet3/0/0
10.2.1.2/32 Direct 0 0 D 10.2.1.2 GigabitEthernet3/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Step 3
Enable basic MPLS functions and LDP on the MPLS backbone network.
# Configure PE1.
[PE1]
mpls lsr-id 1.1.1.1
[PE1]
mpls
[PE1-mpls]
quit
[PE1]
mpls ldp
[PE1-mpls-ldp]
quit
[PE1]
interface gigabitethernet 2/0/0
[PE1-GigabitEthernet2/0/0]
mpls
[PE1-GigabitEthernet2/0/0]
mpls ldp
[PE1-GigabitEthernet2/0/0]
quit
[PE1]
interface gigabitethernet 3/0/0
[PE1-GigabitEthernet3/0/0]
mpls
[PE1-GigabitEthernet3/0/0]
mpls ldp
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
8 Ethernet OAM Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
567