beautypg.com

Example for configuring martini mpls l2vpn, Network requirements – H3C Technologies H3C S7500E Series Switches User Manual

Page 215

background image

5-23

# On the interface connecting CE 2, namely VLAN-interface 10, create an SVC MPLS L2VPN
connection. The interface requires no IP address.

[PE2] interface vlan-interface 10

[PE2-Vlan-interface10] mpls static-l2vc destination 192.2.2.2 transmit-vpn-label 200

receive-vpn-label 100

[PE2-Vlan-interface10] 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

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

# 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

Vlan10 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

Vlan20 up 192.2.2.2 200 100 default

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

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 80/126/150 ms

Example for Configuring Martini MPLS L2VPN

Network requirements

z

CEs are connected to PEs through VLAN interfaces.

z

A Martini MPLS L2VPN is established between CE 1 and CE 2.