331
Xconnect-group Name: vpna
Peer PW ID In/Out Label Proto Flag Link ID State
192.3.3.3 3 65679/65679 LDP M 1 Up
# Display L2VPN PW information on PE 2. The output shows that an LDP PW has been established.
[PE2] display l2vpn pw
Flags: M - main, B - backup, H - hub link, S - spoke link, N - no split horizon
Total number of PWs: 1, 1 up, 0 blocked, 0 down, 0 defect
Xconnect-group Name: vpna
Peer PW ID In/Out Label Proto Flag Link ID State
192.2.2.2 3 65679/65679 LDP M 1 Up
# Verify that CE 1 and CE 2 can ping each other. (Details not shown.)
Configuring a BGP PW
Network requirements
Create a BGP PW between PE 1 and PE 2 so VLAN 10 on CE 1 can communicate with VLAN 10 on
CE 2.
Figure 89 Network diagram
Table 31 Interface and IP address assignment
PE 1 Loop0 192.2.2.2/32 P Loop0 192.4.4.4/32
Vlan-int20 10.1.1.1/24 Vlan-int20 10.1.1.2/24
PE 2 Loop0 192.3.3.3/32 Vlan-int30 10.2.2.2/24
Vlan-int30 10.2.2.1/24
Configuration procedure
Before you perform the following configurations, configure VLANs and add ports to VLANs.
1. Configure CE 1.
<CE1> system-view
[CE1] interface gigabitethernet 1/0/1
[CE1-GigabitEthernet1/0/1] port link-type trunk
MPLS or IP backbone
CE 1 CE 2
PE 1 PE 2P
Vlan-int20
Vlan-int20
Vlan-int30
Vlan-int30
GE1/0/1 GE1/0/1
GE1/0/1
GE1/0/1
Loop0 Loop0 Loop0
Site 1 Site 2