H3C Technologies H3C SR8800 User Manual

Page 223

Advertising
background image

212

# Configure the interface connected with the P router, namely GigabitEthernet4/1/1, and enable

LDP on the interface.

[PE2] interface GigabitEthernet 4/1/1

[PE2-GigabitEthernet4/1/1] ip address 10.2.2.1 24

[PE2-GigabitEthernet4/1/1] mpls

[PE2-GigabitEthernet4/1/1] mpls ldp

[PE2-GigabitEthernet4/1/1] 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 10.2.2.1 0.0.0.255

[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] quit

[PE2-ospf-1] quit

# On the interface connecting CE 2, namely GigabitEthernet 4/1/2, create an SVC MPLS L2VPN

connection. The interface requires no IP address.

[PE2] interface GigabitEthernet 4/1/2

[PE2-GigabitEthernet4/1/2] mpls static-l2vc destination 192.2.2.2

transmit-vpn-label 200 receive-vpn-label 100

[PE2-GigabitEthernet4/1/2] quit

5.

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

6.

Verify your configuration.
# Display SVC L2VPN connection information on PE 1 or PE 2. The output shows that an L2VPN

connection has been established.
Display SVC L2VPN connection information on PE 1:

[PE1] display mpls static-l2vc

Total connections: 1, 1 up, 0 down

ce-intf state destination tr-label rcv-label tnl-policy

GigabitEthernet4/1/1 up 192.3.3.3 100 200 default

Display SVC L2VPN connection information on PE 2:

[PE2] display mpls static-l2vc

Total connections: 1, 1 up, 0 down

ce-intf state destination tr-label rcv-label tnl-policy

GigabitEthernet4/1/2 up 192.2.2.2 200 100 default

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

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

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

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

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

--- 100.1.1.2 ping statistics ---

Advertising