H3C Technologies H3C SR8800 User Manual

Page 216

Advertising
background image

205

[PE] interface loopback 0

[PE-LoopBack0] ip address 172.1.1.1 32

[PE-LoopBack0] quit

[PE] mpls lsr-id 172.1.1.1

[PE] mpls

[PE-mpls] quit

# Enable L2VPN and MPLS L2VPN.

[PE] l2vpn

[PE-l2vpn] mpls l2vpn

[PE-l2vpn] quit

# Configure interface GigabitEthernet 4/1/1.

[PE] interface GigabitEthernet 4/1/1

[PE-GigabitEthernet4/1/1] quit

# Configure interface GigabitEthernet 4/1/2.

[PE] interface GigabitEthernet 4/1/2

[PE-GigabitEthernet 4/1/2] quit

# Create a local connection between CE 1 and CE 2.

[PE] ccc ce1-ce2 interface GigabitEthernet 4/1/1 out-interface GigabitEthernet 4/1/2

3.

Configure CE 2.

<Sysname> system-view

[Sysname] sysname CE2

[CE2] interface GigabitEthernet 4/1/1

[CE2-GigabitEthernet4/1/1] ip address 100.1.1.2 24

4.

Verify your configuration.
# Display CCC connection information on the PE. The output shows that a local CCC connection
has been established.

[PE] display ccc

Total ccc vc : 1

Local ccc vc : 1, 1 up

Remote ccc vc : 0, 0 up

***Name : ce1-ce2

Type : local

State : up

Intf1 : GigabitEthernet4/1/1 (up)

Intf2 : GigabitEthernet4/1/2 (up)

# 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=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 ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

Advertising