HP HSR6800 Configuration Manual page 191

Hide thumbs Also See for HSR6800:
Table of Contents

Advertisement

<Sysname> system-view
[Sysname] sysname PE1
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.1 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls
[PE1-mpls] quit
# Enable MPLS LDP globally.
[PE1] mpls ldp
[PE1-mpls-ldp] quit
# Configure interface Serial 2/1/1 and Serial 2/1/2, so that PE 1 can establish an LDP session
with PE 2 and PE 3, respectively.
[PE1] interface serial 2/1/1
[PE1-Serial2/1/1] link-protocol ppp
[PE1-Serial2/1/1] ip address 12.1.1.1 24
[PE1-Serial2/1/1] mpls
[PE1-Serial2/1/1] mpls ldp
[PE1-Serial2/1/1] quit
[PE1] interface serial 2/1/2
[PE1-Serial2/1/2] link-protocol ppp
[PE1-Serial2/1/2] ip address 13.1.1.1 24
[PE1-Serial2/1/2] mpls
[PE1-Serial2/1/2] mpls ldp
[PE1-Serial2/1/2] quit
# Configure OSPF on PE 1.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 13.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Enable L2VPN and MPLS L2VPN.
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
# Create a primary VC and a backup VC on the interface connected to CE 1. The interface
requires no IP address.
[PE1] interface serial 2/1/0
[PE1-Serial2/1/0] link-protocol ppp
[PE1-Serial2/1/0] mpls l2vc 2.2.2.2 20 backup-peer 3.3.3.3 30
[PE1-Serial2/1/0] quit
3.
Configure PE 2:
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
183

Advertisement

Table of Contents
loading

Table of Contents