HP 10500 SERIES Configuration Manual page 223

Hide thumbs Also See for 10500 SERIES:
Table of Contents

Advertisement

# Enable LDP globally.
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure the interface connected with the P device, and enable LDP on the interface.
[PE2] interface vlan-interface 30
[PE2-Vlan-interface30] ip address 10.2.2.1 24
[PE2-Vlan-interface30] mpls
[PE2-Vlan-interface30] mpls ldp
[PE2-Vlan-interface30] 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
# Create a static VC on the interface connected to CE 2. 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
Configure an IP address for VLAN-interface 10 on CE 2.
5.
<Sysname> system-view
[Sysname] sysname CE2
[CE2] interface vlan-interface 10
[CE2-Vlan-interface10] ip address 100.1.1.2 24
Verify your configuration:
6.
# Display static VC information on PE 1.
[PE1] display mpls static-l2vc
Total connections:
ce-intf
Vlan10
The output shows that a VC has been established.
# Display static VC information on PE 2.
[PE2] display mpls static-l2vc
Total connections:
ce-intf
Vlan20
The output shows that a VC has been established.
# Ping CE 2 from CE 1.
[CE1] ping 100.1.1.2
PING 100.1.1.2: 56
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
1,
1 up,
0 down
state destination
up
192.3.3.3
1,
1 up,
0 down
state destination
up
192.2.2.2
data bytes, press CTRL_C to break
215
tr-label
rcv-label tnl-policy
100
200
tr-label
rcv-label tnl-policy
200
100
-
-

Advertisement

Table of Contents
loading

Table of Contents