Dear all,
I have a BGP concept type of question. We have two BGP sessions to one of our ISP's through "Interface-X" and we establish these to "BGP-Peer-A" and "BGP-Peer-B". In order to route to these peers before the BGP sessions come up, we have fixed routes in place to specifically route traffic to the IP addresses of these two BGP peer IP addresses through "Interface-X". The BGP peers will not change without our ISP pre-advising us so this is not a problem having a specific route to them.
What then happens is that both these peers provide us with a default BGP route where the next hop is to another router IP. This next hop for the default route is provided to us in the BGP message and BGP adds this default route to the routing table so comes in something like IP=0.0.0.0/0 > gateway=111.111.111.111. However, unless we also add the 1111.111.111.111 as a static route up "Interface-X", the default route will not work as it cannot find the next hop 111.111.111.111.
Is there some way to automatically add the BGP next hop received in the BGP default route message into the routing table as if the ISP ever changes the next hop from 111.111.111.111 to 222.222.222.222, which they are entitled to do, then my default routes will immediately fail as I won't have a static route in for 222.222.222.222.
Thanks in advance.