HP HPE FlexNetwork MSR Router Series Configuration Manual page 460

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HPE FlexNetwork MSR Router Series and is the answer not in the manual?

Questions and answers

Table of Contents