beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 211

background image

5-19

[PE2-LoopBack0] quit

[PE2] mpls lsr-id 10.0.0.3

[PE2] mpls

[PE2-mpls] quit

# Enable MPLS L2VPN globally.

[PE2] mpls l2vpn

# Configure interface VLAN-interface 10.

[PE2] interface vlan-interface 10

[PE2-Vlan-interface10] quit

# Configure interface VLAN-interface 20 and enable MPLS.

[PE2] interface vlan-interface 20

[PE2-Vlan-interface20] ip address 10.2.2.1 24

[PE2-Vlan-interface20] mpls

[PE2-Vlan-interface20] quit

# Create a remote connection from CE 2 to CE 1, using the interface connecting CE 2 as the incoming
interface and that connecting the P device as the outgoing interface, setting the incoming label to 201
and the outgoing label to 101.

[PE2] ccc ce2-ce1 interface vlan-interface 10 in-label 201 out-label 101 next-hop 10.2.2.2

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

After completing the above configurations, you can display CCC connection information on PE 1.
There should be one remote CCC connection established. CE 1 and CE 2 should be able to ping each
other.

# Display CCC connection information on PE 1.

[PE1] display ccc

Total ccc vc : 1

Local ccc vc : 0, 0 up

Remote ccc vc : 1, 1 up

***Name : ce1-ce2

Type : remote

State : up

Intf : Vlan-interface10 (up)

In-label : 100

Out-label : 200

Nexthop : 10.1.1.2

# Ping CE 2 from CE 1.

[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=180 ms

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

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

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

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

--- 100.1.1.2 ping statistics ---