297
Table 26 Interface and IP address assignment
Device
Interface
IP address
Device
Interface
IP address
CE 1
Loop0
5.5.5.5/32
PE 2
Loop0
2.2.2.2/32
Vlan-int10 10.2.1.1/24
Vlan-int11 172.1.1.2/24
PE 1
Loop0
1.1.1.1/32
Vlan-int13 10.1.1.2/24
Vlan-int10 10.2.1.2/24
Vlan-int15 172.3.1.2/24
Vlan-int11 172.1.1.1/24
PE 3
Loop0
3.3.3.3/32
Vlan-int12 172.2.1.1/24
Vlan-int12 172.2.1.3/24
CE 2
Loop0
4.4.4.4/32 Vlan-int14
10.3.1.2/24
Vlan-int13 10.1.1.1/24
Vlan-int15 172.3.1.3/24
Vlan-int14 10.3.1.1/24
517B
Configuration procedure
1.
Configure IP addresses and masks for interfaces as shown in
823H
Table 24
, and configure BGP and
MPLS L3VPN. (Details not shown.)
For more information about configuring basic MPLS L3VPN, see "
824H
Configuring basic MPLS
L3VPN
."
2.
Configure MPLS L3VPN FRR on PE 2:
# Configure BFD to test the connectivity of the LSP to 3.3.3.3/32.
<PE2> system-view
[PE2] mpls bfd enable
[PE2] mpls bfd 3.3.3.3 32
# Create routing policy
frr
, and specify the backup next hop as 10.1.1.1 for the route to
4.4.4.4/32.
[PE2] ip prefix-list abc index 10 permit 4.4.4.4 32
[PE2] route-policy frr permit node 10
[PE2-route-policy] if-match ip address prefix-list abc
[PE2-route-policy] apply fast-reroute backup-nexthop 10.1.1.1
[PE2-route-policy] quit
# Configure FRR for VPN instance
vpn1
to use routing policy
frr
.
[PE2] bgp 100
[PE2-bgp-default] ip vpn-instance vpn1
[PE2-bgp-default-vpn1] address-family ipv4 unicast
[PE2-bgp-default-ipv4-vpn1] fast-reroute route-policy frr
[PE2-bgp-default-ipv4-vpn1] quit
[PE2-bgp-default-vpn1] quit
# Specify the preferred value as 200 for BGP VPNv4 routes received from PE 3. This value is
greater than the preferred value (0) for IPv4 unicast routes from CE 2, so PE 2 prefers the
routes from PE 3.
[PE2-bgp-default] address-family vpnv4
[PE2-bgp-default-vpnv4] peer 3.3.3.3 preferred-value 200
[PE2-bgp-default-vpnv4] quit
[PE2-bgp-default] quit
3.
Enable MPLS BFD on PE 3.
<PE3> system-view