[RouterB] display bgp routing-table ipv4
Total number of routes: 1
BGP local router ID is 2.2.2.2
Status codes: * - valid, > - best, d - damped, h - history,
Network
* >e 8.1.1.0/24
# Display the BGP routing table on Router C.
[RouterC] display bgp routing-table ipv4
Total number of routes: 1
BGP local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped, h - history,
Network
i 8.1.1.0/24
The outputs show that Router A has no route to AS 65009, and Router C has learned network
8.1.1.0, but the next hop 3.1.1.2 is unreachable. As a result, the route is invalid.
4.
Redistribute direct routes:
Configure BGP to redistribute direct routes on Router B, so Router A can obtain the route to
9.1.1.0/24, and Router C can obtain the route to 3.1.1.0/24.
# Configure Router B.
[RouterB] bgp 65009
[RouterB-bgp] address-family ipv4 unicast
[RouterB-bgp-ipv4] import-route direct
[RouterB-bgp-ipv4] quit
[RouterB-bgp] quit
# Display the BGP routing table on Router A.
[RouterA] display bgp routing-table ipv4
Total number of routes: 4
BGP local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped, h - history,
Network
s - suppressed, S - Stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
NextHop
3.1.1.2
s - suppressed, S - Stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
NextHop
3.1.1.2
s - suppressed, S - Stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
NextHop
251
MED
LocPrf
0
MED
LocPrf
0
100
MED
LocPrf
PrefVal Path/Ogn
0
65008i
PrefVal Path/Ogn
0
65008i
PrefVal Path/Ogn