beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 228

background image

217

[PE2] interface ethernet1/1

[PE2-Ethernet1/1] port access vlan 10

[PE2-Ethernet1/1] service-instance 1000

[PE2-Ethernet1/1-srv1000] encapsulation s-vid 10

[PE2-Ethernet1/1-srv1000] xconnect peer 192.2.2.2 pw-id 1000

[PE2-Ethernet1/1-srv1000] quit

[PE2-Ethernet1/1] quit

5.

Configure CE 2.

system-view

[Sysname] sysname CE2

[CE2] interface vlan-interface 10

[CE2-Vlan-interface10] ip address 100.1.1.2 24

6.

Verify your configuration.

# Display the L2VPN connection information on PE 1 and PE 2. The output shows that an L2VC has been

established.
Display the L2VPN connection information on PE 1.

[PE1] display mpls l2vc

Total ldp vc : 1 1 up 0 down 0 blocked

Transport Client Service VC Local Remote

VC ID Intf ID State VC Label VC Label

1000 Eth1/1 1000 up 8193 8192

Display the L2VPN connection information on PE 2.

[PE2] display mpls l2vc

Total ldp vc : 1 1 up 0 down 0 blocked

Transport Client Service VC Local Remote

VC ID Intf ID State VC Label VC Label

1000 Eth1/1 1000 up 8192 8193

# Ping CE 2 from CE 1. The output shows that CE 1 and CE 2 can ping each other.

[CE1] ping 100.1.1.2

PING 100.1.1.2: 56 data bytes, press CTRL_C to break

Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms

Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=77 ms

Reply from 100.1.1.2: bytes=56 Sequence=3 ttl=255 time=34 ms

Reply from 100.1.1.2: bytes=56 Sequence=4 ttl=255 time=46 ms

Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=94 ms

--- 100.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