HP 12500 Series Configuration Manual page 193

Mpls, routing switch series
Table of Contents

Advertisement

# Configure PE 2 to establish a remote LDP connection with PE 1.
[PE2] mpls ldp remote-peer 2
[PE2-mpls-ldp-remote-2] remote-ip 192.2.2.2
[PE2-mpls-ldp-remote-2] quit
# Configure the interface connected to the P switch 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.
[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
# Create a service instance and then an MPLS L2VPN connection on GigabitEthernet 3/0/1, the
interface connected to CE 2.
[PE2] interface GigabitEthernet 3/0/1
[PE2-GigabitEthernet3/0/1] port access vlan 10
[PE2-GigabitEthernet3/0/1] service-instance 1000
[PE2-GigabitEthernet3/0/1-srv1000] encapsulation s-vid 10
[PE2-GigabitEthernet3/0/1-srv1000] xconnect peer 192.2.2.2 pw-id 1000
[PE2-GigabitEthernet3/0/1-srv1000] quit
[PE2-GigabitEthernet3/0/1] quit
Configure 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 the L2VPN connection information on PE 1 and PE 2. You can see that an L2VC has been
established. CE 1 and CE 2 can ping each other.
# Display the L2VPN connection information on PE 1.
[PE1] display mpls l2vc
Total ldp vc : 1
Transport
Client
VC ID
Intf
1000
Vlan10
# Display the L2VPN connection information on PE 2.
[PE2] display mpls l2vc
Total ldp vc : 1
Transport
Client
VC ID
Intf
1 up
0 down
VC
State
up
1 up
0 down
VC
State
185
Local
Remote
VC Label
VC Label
8193
8192
Local
Remote
VC Label
VC Label

Advertisement

Table of Contents
loading

Table of Contents