Carl,
In BGP, there's a conditional advertisement statement that uses 2 route-maps. One of the route-maps looks for a condition like if the route is there or not, and the other route map is for what you advertise. For example, if you have an ibgp connection with your primary and you have the route 192.168.1.0/24 in your bgp table, then you could have a route-map stating that if that route goes away, then you need to stop advertising the 192.168.2.0/24 subnet to the provider because you know that your router is the only entry point to the 192.168.2.0/24 subnet. (Assuming the other router doesn't advertise for or pass it. It looks something like this:
ip prefix-list Only2 permit 192.168.2.0/24
ip prefix-list If192 permit 192.168.1.0/24
route-map Advertise permit 10
match ip address prefix Only2
route-map Exist permit 10
match ip address prefix If192
router bgp 10
neighbor advertise-map Advertise exist-map Exist
So, if 192.168.1.0 is in my BGP table then I will advertise 192.168.2.0. If the 192.168.1.0 goes away, then I'll not advertise the 192.168.2.0 to ISP2.
HTH,
John
Please rate useful posts...
HTH,
John
*** Please rate all useful posts ***