H3C Technologies H3C SR8800 User Manual

Page 227

Advertising
background image

216

[PE2-GigabitEthernet4/1/2] mpls ldp

[PE2-GigabitEthernet4/1/2] quit

# Configure OSPF on PE 2 for establishing LSPs.

[PE2] ospf

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] network 10.2.2.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

# On the interface connecting CE 2, namely GigabitEthernet 4/1/1, create a Martini MPLS

L2VPN connection. The interface requires no IP address.

[PE2] interface GigabitEthernet4/1/1

[PE2-GigabitEthernet4/1/1] mpls l2vc 192.2.2.2 101

[PE2-GigabitEthernet4/1/1] quit

5.

Configure CE 2.

<Sysname> system-view

[Sysname] sysname CE2

[CE2] interface GigabitEthernet4/1/1

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

6.

Verify your configuration.
# Display L2VPN connection information on PE 1. The output shows that an L2VPN connection is
established.

[PE1] display mpls l2vc

Total ldp vc : 1 1 up 0 down 0 blocked

Transport Client VC Local Remote

VC ID Intf State VC Label VC Label

101 GE4/1/1 up 1024 1025

# Display the L2VPN connection information on PE 2. The output shows that an L2VPN connection
is established on PE 2.

[PE2] display mpls l2vc

Total ldp vc : 1 1 up 0 down 0 blocked

Transport Client VC Local Remote

VC ID Intf State VC Label VC Label

101 GE4/1/1 up 1025 1024

# Ping CE 2 from CE 1. The operation succeeds.

[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=30 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=50 ms

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

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

--- 100.1.1.2 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

Advertising