R3303-HP 6600/HSR6600 Routers MPLS Configuration Guide

392
G
E
2
/
1
/
2
10.3.1.2/24 GE2/1/2 10.3.1.1/24
Configuration procedure
1. Configure IP addresses for interfaces, and configure BGP and MPLS L3VPN:
For information about how to configure MPLS L3VPN, see "Configuring MPLS L3VPNs using EBGP
between a PE and a
CE."
2. Configure MPLS L3VPN FRR:
# On PE 1, create a routing policy named vpnfrr to specify the backup nexthop as 3.3.3.3.
<PE1> system-view
[PE1] route-policy vpnfrr permit node 10
[PE1-route-policy] apply fast-reroute backup-nexthop 3.3.3.3
[PE1-route-policy] quit
# On PE 1, configure a routing policy named backup to set the route cost to 10.
[PE1] route-policy backup permit node 10
[PE1-route-policy] apply cost 10
[PE1-route-policy] quit
# On PE 1, enable FRR in VPN 1 and reference the routing policy vpnfrr.
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] fast-reroute route-policy vpnfrr
[PE1-vpn-instance-vpn1] quit
# Apply routing policy backup to BGP routes learned from PE 3 to specify the BGP routes' cost as
10, so PE 1 will prefer the BGP routes learned from PE 2.
[PE1] bgp 100
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-vpn4] peer 3.3.3.3 route-policy backup import
[PE1-bgp-vpn4] quit
[PE1-bgp] quit
3. Verify the configuration:
Display routes destined for 4.4.4.4/32 on PE 1. You can see that the active route has a backup
next hop.
[PE1] display ip routing-table vpn-instance vpn1 4.4.4.4 verbose
Routing Table : vpn1
Summary Count : 2
Destination: 4.4.4.4/32
Protocol: BGP Process ID: 0
Preference: 255 Cost: 0
IpPrecedence: QosLcId:
NextHop: 2.2.2.2 Interface: NULL0
BkNextHop: 3.3.3.3 BkInterface: NULL0
RelyNextHop: 0.0.0.0 Neighbor : 2.2.2.2