NOTE
The PE devices are directly connected In this example, you need to run label advertise command to enables
the egress node to assign labels normally to the penultimate hop.
The configuration procedure is not mentioned.
After the configuration, run the display mpls ldp session command on the PEs, and you can see
that the MPLS LDP session between PEs is in Operational state.
Take the display on PE2 as an example.
<PE2> display mpls ldp session
LDP Session(s) in Public Network
--------------------------------------------------------------------------
Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv
--------------------------------------------------------------------------
1.1.1.9:0 Operational DU Active 000:00:04 17/17
--------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
LAM : Label Advertisement Mode SsnAge Unit : DDD:HH:MM
Step 3 Configure the VPN instance on PEs. Connect CE1 and CE2 to PE1 and connect MCE to PE2.
# Configure PE1.
<PE1> system-view
[PE1] vlan batch 10 20
[PE1] interface gigabitEthernet 1/0/0
[PE1-GigabitEthernet1/0/0] port hybrid pvid vlan 10
[PE1-GigabitEthernet1/0/0] port hybrid untagged vlan 10
[PE1-GigabitEthernet1/0/0] quit
[PE1] interface gigabitEthernet 2/0/0
[PE1-GigabitEthernet2/0/0] port hybrid pvid vlan 20
[PE1-GigabitEthernet2/0/0] port hybrid untagged vlan 20
[PE1-GigabitEthernet2/0/0] quit
[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
# Configure PE2.
<PE2> system-view
[PE2] vlan batch 40 50
[PE2] interface gigabitEthernet 2/0/0
[PE2-GigabitEthernet2/0/0] port hybrid pvid vlan 50
[PE2-GigabitEthernet2/0/0] port hybrid untagged vlan 50
[PE2-GigabitEthernet2/0/0] quit
[PE2] interface gigabitEthernet 3/0/0
[PE2-GigabitEthernet3/0/0] port hybrid pvid vlan 40
[PE2-GigabitEthernet3/0/0] port hybrid untagged vlan 40
[PE2-GigabitEthernet3/0/0] quit
[PE2] ip vpn-instance vpna
[PE2-vpn-instance-vpna] route-distinguisher 200:1
[PE2-vpn-instance-vpna] vpn-target 111:1 both
[PE2-vpn-instance-vpna] quit
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-129