[P1-mpls-ldp]
quit
[P1]
interface vlanif 20
[P1-Vlanif20]
mpls
[P1-Vlanif20]
mpls ldp
[P1-Vlanif20]
quit
[P1]
interface vlanif 30
[P1-Vlanif30]
mpls
[P1-Vlanif30]
mpls ldp
[P1-Vlanif30]
quit
# Configure S-PE.
[S-PE]
mpls lsr-id 3.3.3.9
[S-PE]
mpls
[S-PE-mpls]
quit
[S-PE]
mpls ldp
[S-PE-mpls-ldp]
quit
[S-PE]
interface vlanif 30
[S-PE-Vlanif30]
mpls
[S-PE-Vlanif30]
mpls ldp
[S-PE-Vlanif30]
quit
[S-PE]
interface vlanif 30
[S-PE-Vlanif40]
mpls
[S-PE-Vlanif40]
mpls ldp
[S-PE-Vlanif40]
quit
[S-PE]
mpls ldp remote-peer 1.1.1.9
[S-PE-mpls-ldp-remote-1.1.1.9]
remote-ip 1.1.1.9
[S-PE-mpls-ldp-remote-1.1.1.9]
quit
[S-PE]
mpls ldp remote-peer 5.5.5.9
[S-PE-mpls-ldp-remote-5.5.5.9]
remote-ip 5.5.5.9
[S-PE-mpls-ldp-remote-5.5.5.9]
quit
# Configure P2.
[P2]
mpls lsr-id 4.4.4.9
[P2]
mpls
[P2-mpls]
quit
[P2]
mpls ldp
[P2-mpls-ldp]
quit
[P2]
interface vlanif 40
[P2-Vlanif40]
mpls
[P2-Vlanif40]
mpls ldp
[P2-Vlanif40]
quit
[P2]
interface vlanif 50
[P2-Vlanif50]
mpls
[P2-Vlanif50]
mpls ldp
[P2-Vlanif50]
quit
# Configure U-PE2.
[U-PE2]
mpls lsr-id 5.5.5.9
[U-PE2]
mpls
[U-PE2-mpls]
quit
[U-PE2]
mpls ldp
[U-PE2-mpls-ldp]
quit
[U-PE2]
interface vlanif 50
[U-PE2-Vlanif50]
mpls
[U-PE2-Vlanif50]
mpls ldp
[U-PE2-Vlanif50]
quit
[U-PE2]
mpls ldp remote-peer 3.3.3.9
[U-PE2-mpls-ldp-remote-3.3.3.9]
remote-ip 3.3.3.9
[U-PE2-mpls-ldp-remote-3.3.3.9]
quit
After the configuration, run the
display mpls ldp session
command on U-PE, P, or S-PE, and
you can see that the session status is Operational. Run the
display mpls ldp peer
command, and
you can see the status of the LDP sessions and adjacencies. Run the
display mpls lsp
command,
and you can see the status of the LSP. Take the display on S-PE for example.
<S-PE>
display mpls ldp session
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
6 PWE3 Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
605