
[PE2]
mpls ldp
[PE2-mpls-ldp]
quit
[PE2]
interface vlanif 60
[PE2-Vlanif60]
mpls
[PE2-Vlanif60]
mpls ldp
[PE2-Vlanif60]
quit
After the configuration, LDP sessions are established between PE1 and P, and between P and
PE2. By running the
display mpls ldp session
command, you can see that the status of the LSP
sessions is Operational. By running the
display mpls ldp lsp
command, you can see the
establishment status of the LDP LSP.
Take PE1 for example.
[PE1]
display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
A '*' before a session means the session is being deleted.
------------------------------------------------------------------------------
Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv
------------------------------------------------------------------------------
2.2.2.9:0
Operational
DU Active 0000:00:01 6/6
------------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
[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 - 172.1.1.2 Vlanfi30
2.2.2.9/32 1024/3 2.2.2.9 172.1.1.2 Vlanfi30
3.3.3.9/32 NULL/1025 - 172.1.1.2 Vlanfi30
3.3.3.9/32 1025/1025 2.2.2.9 172.1.1.2 Vlanfi30
-------------------------------------------------------------------------------
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
Step 3
Configure VPN instances on each PE and connect the CEs to the PEs.
# Configure PE1.
[PE1]
ip vpn-instance vpna
[PE1-vpn-instance-vpna]
route-distinguisher 100:1
[PE1-vpn-instance-vpna]
vpn-target 111:1 both
[PE1-vpn-instance-vpna]
quit
[PE1]
ip vpn-instance vpnb
[PE1-vpn-instance-vpnb]
route-distinguisher 100:2
[PE1-vpn-instance-vpnb]
vpn-target 222:2 both
[PE1-vpn-instance-vpnb]
quit
[PE1]
interface vlanif 10
[PE1-Vlanif10]
ip binding vpn-instance vpna
[PE1-Vlanif10]
ip address 10.1.1.2 24
[PE1-Vlanif10]
quit
[PE1]
interface vlanif 20
[PE1-Vlanif20]
ip binding vpn-instance vpnb
[PE1-Vlanif20]
ip address 10.2.1.2 24
[PE1-Vlanif20]
quit
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
178