Let's first check BGP status of all routers
R1#sh ip bgp summary
BGP router identifier 14.1.1.1, local AS number 100
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.1.1.2 4 200 7 7 1 0 0 00:04:22 0
13.1.1.3 4 300 5 5 1 0 0 00:01:18 0
14.1.1.4 4 100 4 4 1 0 0 00:00:02 0
R2#sh ip bgp sum
BGP router identifier 23.1.1.2, local AS number 200
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/Pfx
Rcd
12.1.1.1 4 100 9 9 1 0 0 00:06:29 0
23.1.1.3 4 300 7 8 1 0 0 00:04:43 0
R3#sh ip bgp summary
BGP router identifier 23.1.1.3, local AS number 300
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
13.1.1.1 4 100 8 8 1 0 0 00:04:12 0
23.1.1.2 4 200 9 8 1 0 0 00:05:29 0
R4#sh ip bgp summary
BGP router identifier 14.1.1.4, local AS number 100
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
14.1.1.1 4 100 7 7 1 0 0 00:03:48 0
BGP Router ID :-
a.k.a BGP Identifier is the highest loopback IP address configured on the router and in absence of the loopback interface BGP Router ID will be the highest IP address configured to an active physical interface.
Routes are indicated by various symbols -
" > " greater than sign means best route.
" * " valid router
" i " the route learned from same AS i.e. IBGP route.
We can also view multiple BGP attributes in the bgp table .
- Origin Code
- AS PATH
-Next Hop
-Weight
-Local Preference
Origin Code-
i - IGP - it means the network is advertise in BGP using "network" command.
? -Unknow - it means the network is redistributed into BGP from IGP or static.
e- EGP - it means the network is learned via EGP which is a legacy protocol so we never see it in output.
Status Code -
r - RIB failure
Routing Information Base Failure - It occurs when BGP knows about the network but it is not getting installed in its Routing table since there is some other Routing protocol with less AD.
d- Damped
Incase any network is flapping continuously then the status of the route will be damped.
s-Suppressed
BGP knows about the network but that network is part of summarization
S- stale
The route is stale and need to refreshed when bgp peer is re-established . it is used with
nonstop forwarding.
DIAGRAM 1 - BGP TABLE
DIAGRAM 2 - Redistributed Routes in BGP
DIAGRAM 3 - RIB Failure
R1#sh run
Building configuration...
Current configuration : 1342 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0
ip address 14.1.1.1 255.255.255.0
speed auto
!
interface Serial0
ip address 12.1.1.1 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
interface Serial2
ip address 13.1.1.1 255.255.255.0
!
router eigrp 200
network 14.0.0.0
auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
redistribute eigrp 200
neighbor 12.1.1.2 remote-as 200
neighbor 13.1.1.3 remote-as 300
neighbor 14.1.1.4 remote-as 100
no auto-summary
!
ip forward-protocol nd
ip route 100.100.100.0 255.255.255.0 14.1.1.4
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
end
========================================================
R2#sh run
Building configuration...
Current configuration : 1178 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0
no ip address
shutdown
speed auto
!
interface Serial0
ip address 12.1.1.2 255.255.255.0
!
interface Serial1
ip address 23.1.1.2 255.255.255.0
!
interface Serial2
no ip address
shutdown
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
neighbor 12.1.1.1 remote-as 100
neighbor 23.1.1.3 remote-as 300
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
end
=============================================================
R3#sh run
Building configuration...
Current configuration : 972 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
ip cef
!
!
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0
no ip address
shutdown
speed auto
!
interface Serial0
no ip address
shutdown
no fair-queue
!
interface Serial1
ip address 23.1.1.3 255.255.255.0
!
interface Serial2
ip address 13.1.1.3 255.255.255.0
!
router bgp 300
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
neighbor 13.1.1.1 remote-as 100
neighbor 23.1.1.2 remote-as 200
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
=========================================================
R4#sh run
Building configuration...
Current configuration : 1365 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Loopback1
ip address 100.100.100.1 255.255.255.0
!
interface Loopback200
ip address 200.0.0.1 255.0.0.0
!
interface FastEthernet0
ip address 14.1.1.4 255.255.255.0
speed auto
!
interface Serial0
no ip address
shutdown
!
interface Serial1
no ip address
shutdown
!
interface Serial2
no ip address
shutdown
!
router eigrp 200
network 14.0.0.0
network 200.0.0.0
auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
network 100.100.100.0 mask 255.255.255.0
neighbor 14.1.1.1 remote-as 100
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
end
Hope you all like this post !!!!
Thanks for reading!!!
Hope you all like this post !!!!
Thanks for reading!!!