333
Protocol: BGP Process ID: 0
SubProtID: 0x1 Age: 00h03m08s
Cost: 100 Preference: 255
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x1 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x15000000 LastAs: 0
AttrID: 0x0 Neighbor: 2.0.1.1
Flags: 0x10060 OrigNextHop: 2.0.1.1
Label: NULL RealNextHop: 2.0.2.1
BkLabel: NULL BkNextHop: N/A
Tunnel ID: Invalid Interface: Vlan-interface201
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A
The output shows that Switch C communicates with network 1.1.1.0/24 through the path Switch
C<—>Switch D<—>Switch A.
BGP FRR configuration example
Network requirements
As shown in Figure 76, configure BGP FRR so that when Link B fails, BGP uses Link A to forward
traffic.
Figure 76 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPF in AS 200 to ensure connectivity among Switch B, Switch C, and Switch D.
(Details not shown.)
3. Configure BGP connections:
# Configure Switch A to establish EBGP sessions to Switch B and Switch C, and advertise
network 1.1.1.1/32.
Switch B
Switch C
Switch D
AS 200
AS 100
Switch A
Loop0
1.1.1.1/32
Loop0
4.4.4.4/32
Vlan-int 200
30.1.1.1/24
Vlan-int 100
10.1.1.1/24
Vlan-int 100
10.1.1.2/24
Vlan-int 101
20.1.1.2/24
Vlan-int 201
40.1.1.4/24
Vlan-int 101
20.1.1.4/24
Vlan-int 200
30.1.1.3/24
Vlan-int 201
40.1.1.3/24
Link A
Link B
Loop0
2.2.2.2/32
Loop0
3.3.3.3/32