HP 12500 Series Configuration Manual page 195

Mpls, routing switch series
Table of Contents

Advertisement

[CE1-GigabitEthernet5/0/1] port link-mode route
[CE1-GigabitEthernet5/0/1] ip address 100.1.1.1 24
Configure PE 1.
2.
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE1
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 192.2.2.2 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 192.2.2.2
[PE1] mpls
# Enable L2VPN and MPLS L2VPN.
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
# Enable LDP globally.
[PE1] mpls ldp
[PE1-mpls-ldp] quit
# Configure the peer relationship with PE 2 so that the LDP remote session can be established
between them.
[PE1] mpls ldp remote-peer 1
[PE1-mpls-ldp-remote-1] remote-ip 192.3.3.3
[PE1-mpls-ldp-remote-1] quit
# Configure the interface connected with the P device, namely GigabitEthernet 5/0/2, and
enable LDP on the interface.
[PE1] interface GigabitEthernet 5/0/2
[PE1-GigabitEthernet5/0/2] port link-mode route
[PE1-GigabitEthernet5/0/2] ip address 10.1.1.1 24
[PE1-GigabitEthernet5/0/2] mpls
[PE1-GigabitEthernet5/0/2] mpls ldp
[PE1-GigabitEthernet5/0/2] quit
# Configure OSPF on PE 1 for establishing LSPs.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 192.2.2.2 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# On the interface connected to CE 1, namely GigabitEthernet 5/0/1, create a Martini MPLS
L2VPN connection. The interface requires no IP address.
[PE1] interface GigabitEthernet 5/0/1
[PE1-GigabitEthernet5/0/1] port link-mode route
[PE1-GigabitEthernet5/0/1] mpls l2vc 192.3.3.3 101
[PE1-GigabitEthernet5/0/1] quit
Configure the P device.
3.
# Configure the LSR ID and enable MPLS globally.
187

Advertisement

Table of Contents
loading

Table of Contents