HP 12500 Series Configuration Manual page 196

Mpls, routing switch series
Table of Contents

Advertisement

<Sysname> system-view
[Sysname] sysname P
[P] interface loopback 0
[P-LoopBack0] ip address 192.4.4.4 32
[P-LoopBack0] quit
[P] mpls lsr-id 192.4.4.4
[P] mpls
# Enable LDP globally.
[P] mpls ldp
[P-mpls-ldp] quit
# Configure the interface connected with PE 1, namely GigabitEthernet 5/0/1, and enable LDP
on the interface.
[P] interface GigabitEthernet 5/0/1
[P-GigabitEthernet5/0/1] port link-mode route
[P-GigabitEthernet5/0/1] ip address 10.1.1.2 24
[P-GigabitEthernet5/0/1] mpls
[P-GigabitEthernet5/0/1] mpls ldp
[P-GigabitEthernet5/0/1] quit
# Configure the interface connected with PE 2, namely GigabitEthernet 5/0/2, and enable LDP
on the interface.
[P] interface GigabitEthernet 5/0/2
[P-GigabitEthernet5/0/2] port link-mode route
[P-GigabitEthernet5/0/2] ip address 10.2.2.2 24
[P-GigabitEthernet5/0/2] mpls
[P-GigabitEthernet5/0/2] mpls ldp
[P-GigabitEthernet5/0/2] quit
# Configure OSPF on the P device for establishing LSPs.
[P] ospf
[P-ospf-1] area 0
[P-ospf-1-area-0.0.0.0] network 10.1.1.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 10.2.2.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
Configure PE 2.
4.
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 192.3.3.3
[PE2] mpls
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
188

Advertisement

Table of Contents
loading

Table of Contents