08-21-2015 06:10 AM - edited 03-01-2019 02:55 PM
I have a problem in BGP after configuring BGP i am not getting any routes in bgp routing table what is the issue can anyone help me regarding this isssue it is urgent.Here is the configuration.
R1#sh run | s r b
router bgp 500
synchronization
bgp log-neighbor-changes
network 1.1.1.0
network 4.4.4.0
network 10.1.1.0
neighbor 1.1.1.2 remote-as 500
neighbor 4.4.4.1 remote-as 500
R1#sh ip bgp summary
BGP router identifier 4.4.4.2, local AS number 500
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.2 4 500 220 220 1 0 0 03:17:38 0
4.4.4.1 4 500 214 214 1 0 0 03:12:49 0
R2#sh run | s r b
router bgp 500
synchronization
bgp log-neighbor-changes
network 1.1.1.0
network 2.2.2.0
network 20.1.1.0
neighbor 1.1.1.1 remote-as 500
neighbor 2.2.2.2 remote-as 500
R2#sh ip bgp su
R2#sh ip bgp summary
BGP router identifier 2.2.2.1, local AS number 500
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 500 160 160 1 0 0 02:23:37 0
2.2.2.2 4 500 157 156 1 0 0 02:20:05 0
R3#sh run | s r b
router bgp 500
synchronization
bgp log-neighbor-changes
network 2.2.2.0
network 3.3.3.0
network 30.1.1.0
neighbor 2.2.2.1 remote-as 500
neighbor 3.3.3.2 remote-as 500
R3#sh ip bg summary
BGP router identifier 3.3.3.1, local AS number 500
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.1 4 500 218 220 1 0 0 03:16:43 0
3.3.3.2 4 500 218 217 1 0 0 03:15:25 0
R4#sh run | s r b
router bgp 500
synchronization
bgp log-neighbor-changes
network 3.3.3.0
network 4.4.4.0
network 40.1.1.0
neighbor 3.3.3.1 remote-as 500
neighbor 4.4.4.2 remote-as 500
R4#sh ip bgp summary
BGP router identifier 4.4.4.1, local AS number 500
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
3.3.3.1 4 500 219 220 1 0 0 03:17:05 0
4.4.4.2 4 500 219 218 1 0 0 03:17:07 0
08-27-2015 04:13 PM
Hi Prashant,
Networks are not entered in the BGP table because the exact networks specified in the network statement under BGP are not present in the routing table. This statement without the "mask" option assumes the classfull boundary which in your case is /8.
In order to solve the issue in your topology add "mask 255.255.255.0" after each network statement under BGP. For example:
network 40.1.1.0 mask 255.255.255.0
Let me know how it goes,
Jacobo
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide