beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 179

background image

4-19

[PE2-bgp] peer 1.1.1.9 connect-interface loopback 0

[PE2-bgp] vpls-family

[PE2-bgp-af-vpls] peer 1.1.1.9 enable

[PE2-bgp-af-vpls] quit

[PE2-bgp] quit

# Configure the basic attributes of VPLS instance aaa, which uses LDP.

[PE2] vsi aaa static

[PE2-vsi-aaa] pwsignal ldp

[PE2-vsi-aaa-ldp] vsi-id 500

[PE2-vsi-aaa-ldp] peer 1.1.1.9

[PE2-vsi-aaa-ldp] quit

[PE2-vsi-aaa] quit

# Configure the basic attributes of VPLS instance bbb, which uses BGP.

[PE2] vsi bbb auto

[PE2-vsi-bbb] pwsignal bgp

[PE2-vsi-bbb-bgp] route-distinguisher 100:1

[PE2-vsi-bbb-bgp] vpn-target 111:1

[PE2-vsi-bbb-bgp] site 11 range 12

[PE2-vsi-bbb-bgp] quit

[PE2-vsi-bbb] quit

# On the interface connecting CE 2, create service instance 1000 to bind the interface and VLAN 100
with VPLS instance aaa, and create service instance 2000 to bind the interface and VLAN 200 with
VPLS instance bbb.

[PE2] interface gigabitethernet 2/0/1

[PE2-GigabitEthernet2/0/1] service-instance 1000

[PE2-GigabitEthernet2/0/1-srv1000] encapsulation s-vid 100

[PE2-GigabitEthernet2/0/1-srv1000] xconnect vsi aaa

[PE2-GigabitEthernet2/0/1-srv1000] quit

[PE2-GigabitEthernet2/0/1] service-instance 2000

[PE2-GigabitEthernet2/0/1-srv2000] encapsulation s-vid 200

[PE2-GigabitEthernet2/0/1-srv2000] xconnect vsi bbb

[PE2-GigabitEthernet2/0/1-srv2000] quit

[PE2-GigabitEthernet2/0/1] quit

After completing the above configurations, you can issue the display vpls connection command on
the PEs. There should be PW connections established and in the state of up. Take PE 2 as an
example, the output information is as follows:

[PE2] display vpls connection vsi aaa verbose

VSI Name: aaa Signaling: ldp

**Remote Vsi ID : 500

VC State : up

Encapsulation : vlan

Group ID : 0

MTU : 1500

Peer Ip Address : 1.1.1.9

PW Type : label

Local VC Label : 89766

Remote VC Label : 81922

Link ID : 1

Tunnel Policy : --