[PE2-Vlanif40] ip address 100.12.1.2 30
[PE2-Vlanif40] quit
[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 100.12.1.0 0.0.0.3
After the configuration, run the display ip routing-table command on the PEs, and you can see
that PE1 and PE2, and PE1 and PE3 have learned the routes on the Loopback1 interface of each
other.
<PE1> display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 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 100.12.1.2 Vlanif40
3.3.3.3/32 OSPF 10 3 D 100.13.1.2 Vlanif20
4.4.4.4/32 OSPF 10 2 D 100.13.1.2 Vlanif20
100.12.1.0/30 Direct 0 0 D 100.12.1.1 Vlanif40
100.12.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
100.12.1.2/32 Direct 0 0 D 100.12.1.2 Vlanif40
100.13.1.0/30 Direct 0 0 D 100.13.1.1 Vlanif20
100.13.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
100.13.1.2/32 Direct 0 0 D 100.13.1.2 Vlanif20
100.34.1.0/30 OSPF 10 2 D 100.13.1.2 Vlanif20
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 4 Configure the basic MPLS capabilities on the MPLS backbone network.
# Enable MPLS, and set LSR-ID as the IP address of the Loopback1 interface. Enable MPLS
on the interfaces of the backbone network.
# Configure PE1.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls
[PE1-mpls] quit
[PE1] interface Vlanif 20
[PE1-Vlanif20] mpls
[PE1-Vlanif20] quit
[PE1] interface vlanif40
[PE1-Vlanif40] mpls
[PE1-Vlanif40] quit
# Configure the P.
[P] mpls lsr-id 4.4.4.4
[P] mpls
[P-mpls] quit
[P] interface Vlanif 20
[P-Vlanif20] mpls
[P-Vlanif20] quit
[P] interface vlanif 30
[P-Vlanif30] mpls
[P-Vlanif30] quit
# Configure PE2.
[PE2] mpls lsr-id 2.2.2.2
[PE2] mpls
[PE2-mpls] quit
[PE2] interface vlanif 40
[PE2-Vlanif40] mpls
[PE2-Vlanif40] quit
4 VLL Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
4-90 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)