[PE2] vsi v1 auto
[PE2-vsi-v1] pwsignal bgp
[PE2-vsi-v1-bgp] route-distinguisher 200:2
[PE2-vsi-v1-bgp] vpn-target 1:1 import-extcommunity
[PE2-vsi-v1-bgp] vpn-target 1:1 export-extcommunity
[PE2-vsi-v1-bgp] site 2 range 5 default-offset 0
[PE2-vsi-v1-bgp] quit
[PE2-vsi-v1] quit
[PE2] interface vlanif 50
[PE2-Vlanif50] l2 binding vsi v1
[PE2-Vlanif50] quit
Step 7 Configure CEs.
# Configure CE1.
[CE1] interface vlanif 10
[CE1-Vlanif10] ip address 10.1.1.1 24
[CE1-Vlanif10] quit
# Configure CE2.
[CE2] interface vlanif 50
[CE2-Vlanif50] ip address 10.1.1.2 24
[CE2-Vlanif50] quit
Step 8 Verify the configuration.
Run the display vpls connection bgp command on a PE, and you can view that the status of the
VSI is Up.
Take the display on PE1 as an example.
<PE1> display vpls connection bgp verbose
VSI Name: v1 Signaling: bgp
**Remote Site ID : 2
VC State : up
RD : 100:2
Encapsulation : vlan
MTU : 1500
Peer Ip Address : 2.2.2.2
PW Type : label
Local VC Label : 25602
Remote VC Label : 25601
Tunnel Policy : --
Tunnel ID : 0x20001,
Remote Label Block : 25600/5/0
Export vpn target : 1:1,
CE1 and CE2 can ping through each other.
<CE1> ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=77 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=34 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=46 ms
Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=94 ms
--- 10.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 34/68/94 ms
Run the display bgp vpls all command on a PE or an ASBR-PE, and you can view information
about the VPLS label block of BGP.
Take ASBR-PE1 as an example.
6 VPLS Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
6-80 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)