HP HSR6800 Configuration Manual page 184

Hide thumbs Also See for HSR6800:
Table of Contents

Advertisement

[P-POS5/1/0] ip address 10.2.2.2 24
[P-POS5/1/0] mpls
[P-POS5/1/0] mpls ldp
[P-POS5/1/0] quit
# Configure OSPF on the P router 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
4.
Configure PE 2:
# 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
[PE2-mpls] quit
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
# Enable LDP globally.
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure the interface connected with the P router, and enable LDP on the interface.
[PE2] interface pos 5/1/0
[PE2-POS5/1/0] link-protocol ppp
[PE2-POS5/1/0] ip address 10.2.2.1 24
[PE2-POS5/1/0] mpls
[PE2-POS5/1/0] mpls ldp
[PE2-POS5/1/0] 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 pos 5/1/1
[PE2-POS5/1/1] link-protocol ppp
[PE2-POS5/1/1] mpls static-l2vc destination 192.2.2.2 transmit-vpn-label 200
receive-vpn-label 100
176

Advertisement

Table of Contents
loading

Table of Contents