
Step 4
Establish a tunnel between PE1 and PE2.
The MPLS LDP LSP is used in this example.
# Enable MPLS and MPLS LDP on PE1.
[PE1]
mpls lsr-id 1.1.1.9
[PE1]
mpls
[PE1-mpls]
quit
[PE1]
mpls ldp
[PE1-mpls-ldp]
quit
[PE1]
interface vlanif 10
[PE1-Vlanif10]
mpls
[PE1-Vlanif10]
mpls ldp
[PE1-Vlanif10]
quit
# Enable MPLS and MPLS LDP on P.
[P]
mpls lsr-id 2.2.2.9
[P]
mpls
[P-mpls]
quit
[P]
mpls ldp
[P-mpls-ldp]
quit
[P]
interface vlanif 10
[P-Vlanif10]
mpls
[P-Vlanif10]
mpls ldp
[P-Vlanif10]
quit
[P]
interface vlanif 20
[P-Vlanif20]
mpls
[P-Vlanif20]
mpls ldp
[P-Vlanif20]
quit
# Enable MPLS and MPLS LDP on PE2.
[PE2]
mpls lsr-id 3.3.3.9
[PE2]
mpls
[PE2-mpls]
quit
[PE2]
mpls ldp
[PE2-mpls-ldp]
quit
[PE2]
interface vlanif 20
[PE2-Vlanif20]
mpls
[PE2-Vlanif20]
mpls ldp
[PE2-Vlanif20]
quit
After the preceding configurations are complete, an LDP LSP can be established between PE1
and PE2. Run the
display mpls ldp lsp
command, and you can see the establishment status of
the LDP LSP. Take the display on PE1 as an example.
[PE1]
display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.9/32 3/NULL 2.2.2.9 127.0.0.1 InLoop0
*1.1.1.9/32 Liberal
2.2.2.9/32 NULL/3 - 192.168.1.2 Vlanif10
2.2.2.9/32 1024/3 2.2.2.9 192.168.1.2 Vlanif10
3.3.3.9/32 NULL/1025 - 192.168.1.2 Vlanif10
3.3.3.9/32 1025/1025 2.2.2.9 192.168.1.2 Vlanif10
-------------------------------------------------------------------------------
TOTAL: 5 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
A '*' before a UpstreamPeer means the session is in GR state
A '*' before a NextHop means the LSP is FRR LSP
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
4 BGP MPLS IPv6 VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
373