---------------------------------------------------------
*>i 8.1.1.0/24 0 0 65008i
NOTE:
From the above outputs, you see that Switch A has not learned a route to AS 65009, and Switch
C has learned network 8.1.1.0 but the next hop 3.1.1.2 is unreachable, so the route is invalid.
14.
Redistribute connected routes.
15.
Configure BGP to redistribute direct routes on Switch B, so that Switch A can obtain the route to 9.1.1.0/24
and Switch C can obtain the route to 3.1.1.0/24.
16.
# Configure Switch B.
switch(config)# router bgp 65009
switch(bgp)# redistribute connected
17.
# Display the BGP routing table on Switch A.
switch# show ip bgp
Local AS : 65009
Local Router-id : 1.1.1.1
BGP Table Version : 0
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Metric LocalPref Weight AsPath
---------------------------------------------------------
*>e 2.2.2.2/32 3.1.1.1 0 0 65009?
*>e 3.1.1.0/24 3.1.1.1 0 0 65009?
*>e 8.1.1.0/24 0 0 65008i
*>e 8.1.1.0/24 0 0 65008i
18.
Two routes 2.2.2.2/32 and 9.1.1.0/24 have been added in Switch A’s routing table.
19.
# Display the BGP routing table on Switch C.
switch(config)# show ip bgp
Local AS : 65009
Local Router-id : 3.3.3.3
BGP Table Version : 1
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Metric LocalPref Weight AsPath
-------------------------------------------------------
*>e 2.2.2.2/32 9.1.1.1 0 100 I
*>e 3.1.1.0/24 9.1.1.1 0 100 I
*>e 8.1.1.0/24 0 0 65008i
*e 9.1.1.0/24 0 0 65008i
*>e 9.1.1.0/24 0 0 65008i
Chapter 17 Border Gateway Protocol (BGP)
391