258
Device
Interface
IP address
Device
Interface
IP address
Vlan-int12
172.2.1.3/24
Vlan-int14
10.3.1.1/24
Vlan-int14
10.3.1.2/24
Configuration procedure
1.
Configure IP addresses and masks for interfaces as shown in
, and configure BGP and
MPLS L3VPN. (Details not shown.)
For more information about configuring basic MPLS L3VPN, see "
."
2.
Configure MPLS L3VPN FRR on PE 1:
# Configure BFD to test the connectivity of the LSP to 2.2.2.2/32.
<PE1> system-view
[PE1] mpls bfd enable
[PE1] mpls bfd 2.2.2.2 32
# Create routing policy
frr
, and specify the backup next hop as 3.3.3.3 for the route to
4.4.4.4/32.
[PE1] ip prefix-list abc index 10 permit 4.4.4.4 32
[PE1] route-policy frr permit node 10
[PE1-route-policy] if-match ip address prefix-list abc
[PE1-route-policy] apply fast-reroute backup-nexthop 3.3.3.3
[PE1-route-policy] quit
# Configure FRR for VPN instance
vpn1
to reference routing policy
frr
.
[PE1] bgp 100
[PE1-bgp] ip vpn-instance vpn1
[PE1-bgp-vpn1] address-family ipv4 unicast
[PE1-bgp-ipv4-vpn1] fast-reroute route-policy frr
[PE1-bgp-ipv4-vpn1] quit
[PE1-bgp-vpn1] quit
# Specify the preferred value as 100 for BGP VPNv4 routes received from PE 2. This value is
greater than the preferred value (0) for routes from PE 3, so PE 1 prefers the routes from PE 2.
[PE1-bgp] address-family vpnv4
[PE1-bgp-vpnv4] peer 2.2.2.2 preferred-value 100
[PE1-bgp-vpnv4] quit
[PE1-bgp] quit
3.
Enable MPLS BFD on PE 2.
<PE2> system-view
[PE2] mpls bfd enable
Verifying the configuration
# Display detailed information about the route to 4.4.4.4/32 on PE 1. The output shows the backup
next hop for the route.
[PE1] display ip routing-table vpn-instance vpn1 4.4.4.4 32 verbose
Summary Count : 1
Destination: 4.4.4.4/32
Protocol: BGP Process ID: 0
SubProtID: 0x1 Age: 00h00m03s