HP MSR2000 Configuration Manual page 426

Msr series mpls
Hide thumbs Also See for MSR2000:
Table of Contents

Advertisement

[PE1-xcg-vpn1-ldp] quit
[PE1-xcg-vpn1] quit
3.
Configure ASBR 1:
# Configure an LSR ID.
<ASBR1> system-view
[ASBR1] interface loopback 0
[ASBR1-LoopBack0] ip address 192.2.2.2 32
[ASBR1-LoopBack0] quit
[ASBR1] mpls lsr-id 192.2.2.2
# Enable L2VPN.
[ASBR1] l2vpn enable
# Enable global LDP.
[ASBR1] mpls ldp
[ASBR1-ldp] quit
# Configure GigabitEthernet 2/1/2 (the interface connected to PE 1), and enable LDP on the
interface.
[ASBR1] interface gigabitethernet 2/1/2
[ASBR1-GigabitEthernet2/1/2] ip address 23.1.1.2 24
[ASBR1-GigabitEthernet2/1/2] mpls enable
[ASBR1-GigabitEthernet2/1/2] mpls ldp enable
[ASBR1-GigabitEthernet2/1/2] quit
# Configure GigabitEthernet 2/1/1 (the interface connected to ASBR 2), and enable LDP on the
interface.
[ASBR1] interface gigabitethernet 2/1/1
[ASBR1-GigabitEthernet2/1/1] ip address 26.2.2.2 24
[ASBR1-GigabitEthernet2/1/1] mpls enable
[ASBR1-GigabitEthernet2/1/1] quit
# Configure OSPF on ASBR 1 for LDP to create LSPs.
[ASBR1] ospf
[ASBR1-ospf-1] area 0
[ASBR1-ospf-1-area-0.0.0.0] network 23.1.1.2 0.0.0.255
[ASBR1-ospf-1-area-0.0.0.0] network 192.2.2.2 0.0.0.0
[ASBR1-ospf-1-area-0.0.0.0] quit
[ASBR1-ospf-1] quit
# Configure BGP to advertise labeled routes on ASBR 1.
[ASBR1] bgp 100
[ASBR1-bgp] peer 26.2.2.3 as-number 200
[ASBR1-bgp] address-family ipv4 unicast
[ASBR1-bgp-ipv4] import-route direct
[ASBR1-bgp-ipv4] peer 26.2.2.3 enable
[ASBR1-bgp-ipv4] peer 26.2.2.3 route-policy policy1 export
[ASBR1-bgp-ipv4] peer 26.2.2.3 label-route-capability
[ASBR1-bgp-ipv4] quit
[ASBR1-bgp] quit
[ASBR1] route-policy policy1 permit node 1
[ASBR1-route-policy-policy1-1] apply mpls-label
[ASBR1-route-policy-policy1-1] quit
417

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents