[PE2] mpls ldp
[PE2-mpls-ldp] quit
[PE2] interface vlanif 22
[PE2-Vlanif22] mpls
[PE2-Vlanif22] mpls ldp
[PE2-Vlanif22] quit
After the configuration, the LDP peer relation can be set up between the PE and ASBR in the
same AS. Run the display mpls ldp session command on each S9300, and you can see that the
session status is Operational.
Take the display on PE1 as an example:
[PE1] display mpls ldp session
LDP Session(s) in Public Network
--------------------------------------------------------------------------
Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv
--------------------------------------------------------------------------
2.2.2.9:0 Operational DU Passive 000:00:02 9/9
--------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
LAM : Label Advertisement Mode SsnAge Unit : DDD:HH:MM
Step 4 Configure the basic BGP/MPLS IP VPNs in AS 100 and AS 200.
NOTE
The VPN targets of the VPN instances of the ASBR-PE and PE in an AS should match each other. In
different ASs, the VPN targets of the VPN instances in different ASs do not need to match each other.
# Configure CE1.
<CE1> system-view
[CE1] interface vlanif 10
[CE1-Vlanif10] ip address 10.1.1.1 24
[CE1-Vlanif10] quit
[CE1] bgp 65001
[CE1-bgp] peer 10.1.1.2 as-number 100
[CE1-bgp] import-route direct
[CE1-bgp] quit
# On PE1, set up an EBGP peer relation between PE1 and CE1.
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 100:1
[PE1-vpn-instance-vpn1] vpn-target 1:1 both
[PE1-vpn-instance-vpn1] quit
[PE1] interface vlanif 10
[PE1-Vlanif10] ip binding vpn-instance vpn1
[PE1-Vlanif10] ip address 10.1.1.2 24
[PE1-Vlanif10] quit
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1] peer 10.1.1.1 as-number 65001
[PE1-bgp-vpn1] import-route direct
[PE1-bgp-vpn1] quit
[PE1-bgp] quit
# On PE1, set up an MP-IBGP peer relation between ASBR-PE1 and MP-IBGP.
[PE1] bgp 100
[PE1-bgp] peer 2.2.2.9 as-number 100
[PE1-bgp] peer 2.2.2.9 connect-interface loopback 1
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-af-vpnv4] peer 2.2.2.9 enable
[PE1-bgp-af-vpnv4] quit
# On ASBR-PE1, set up an MP-IBGP peer relation between ASBR-PE1 and PE1.
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 3 BGP/MPLS IP VPN Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-99