I can see what the prepend does and that will affect your inbound traffic as you describe.
Not real sure what setting the nexthop your provider will receive will accomplish. Assuming they know how to get to a.b.c.d they would send your traffic there. Not too sure the ISP will like this or allow it.
If you really intended to set the nexthop inbound I guess the next question is what is a.b.c.d If this was on a route learn from ISP2 but your pointed it to ISP1 nexthop and ISP1 failed this route would stay in the BGP table since isp2 is still up but not be placed in the routing table.
The more normal way to do this is to use weight or local preference on a inbound route-map to select which outbound path to take. If you wish to have more than one active at the same time you can set the BGP max paths to the number of routes you wish to install in the routing table.
The only thing you need to watch for is if one ISP sends you a summary and the other sends the more specific. You may have to do some filtering.
I see, you do not accept the full routing table and therefore must use default route.
So I assume your goal is to manipulate the nexthop of the default routes you learn to point to a different ISP?
The issue you have is that unlike most protocol bgp only sends routes when they change. With the default route this will never change and is only sent when the neighbor first comes up.
So if I have 3 ISP and they all send the route and ip say point them to ISP1 i would end up with
Learned from ISP1 0.0.0.0 > isp1 nexthop
learned from ISP2 0.0.0.0 > isp1 nexthop
learned from isp3 0.0.0.0 > isp1 nexthop
Now ISP1 goes down so his default route is removed from the bgp and routing table. Unfortunately the 2 other routes are still in the bgp table pointing to ISP1. Since the nexthop is invalid they will not get placed in the routing table. You will not receive new default routes from ISP2 or ISP3 until they go down so you will not be able to change the bgp entry.
Maybe I am still misunderstanding what you are attempting.
Another option is to use the static route but use the track option on it. You could cause the route to only be inserted when the ISP that did not give you a default is reachable.
We are receiving full routes from Providers 1 and 2. Provider 2 does not send us default routes, where Provider 1 does.
Since we want to spread outbound traffic across Provider 1 and 2, we need a default route to them. I am trying to find the safest way to insert the gateway/default route to Provider 2 when BGP is up with them.
This is in a hosting environment, so most traffic will be outbound.
Hi everyone, I would like to thank you in advance for any help you can provide a newcomer like myself!
Im studying the 100-105 book by Odom and am currently on the topic of Port security. I purchased a used 2960 and I'm trying to follow a...
While deploying a number of 18xx/2802/3802 model access points (APs), which run AP-COS as their operating platform. It can be observed on some occasions that while many of their access points were able to join the fabric WLC withou...
I am going to design and build an LAN network under a tunnel underground with long distance between the switches.
I will have 2 Catalyst switches and 8 Industrial IE3000, and they will be connected with fiber.
For now I am planning on use Layer-2 s...