04-23-2020 07:32 AM
Hi All,
Need your advise on a BGP query.
In many of my company's routers we have a BGP peer example peer ip: x.x.x.x however i am not able to find this subnet on any of the interface or loopback.
Can anyone pls advise what kind of peer is that.
04-23-2020 08:07 AM
Hello @gauravpundir231 ,
you can use show ip bgp summary to see the BGP neighbors of your local routers.
BGP peer = BGP neighbor so you cannot find a BGP peer address in one loopback of your device it is in another router, in the case of iBGP the BGP peer is typically the loopback of another device in the case of eBGP the BGP peer is usually the IP address of the neighbor on the border link.
You can use
show ip bgp summary
and then
show ip route x.x.x.x
for each BGP peer/neighbor listed in the output of first show command
Hope to help
Giuseppe
04-23-2020 08:25 AM
04-23-2020 08:34 AM
Hello @gauravpundir231 ,
>> Is it possible to have iBGP peers but not in common subnet ?
Yes indeed the BGP TTL for iBGP messages is 255 and it is only 1 for eBGP messages
iBGP is configured between loopbacks that are logical interfaces always on and reachable if the router has at least one alive interface.
Of course the loopback addresses need to be advertised in the iGP routing protocol in use either OSPF, EiGRP or IS-IS.
This is why you don't need to share a common IP subnet with an iBGP peer
Hope to help
Giuseppe
04-23-2020 08:41 AM
04-23-2020 10:05 AM - edited 04-23-2020 10:06 AM
Hello
Depending of what software is your running on your rtrs there is a hidden command for bgp peering that shows you if your bgp neighbors shares a directly connected common subnet, if it show a connected interface then you know the peering is local if it returns none then you know it isn't
show ip cef <neighbor> samecable
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