I have 2 ISPs BSNL & AIRTEL connected to Gateway Router 1 and Gateway Router 2 respectively. I also have 2 Core routers. I am running OSPF in Gateway Router 1, Gateway Router 2, Core Router-1 and Core Router-2.
I configured default-information originate command in both the Gateway Router-1 and Gateway Router-2. It perfectly advertising default routers in Core-1 and Core-2 Routers.
But i want this to work in different way as i will explain now.
1. When Gateway Router 1 advertise default route to Core-1, it should adverise with metric 10 and whereas when it advertise to Core-2 it should advertise with metric 100.
2. When Gateway Router 2 advertise default route to Core-2, it should adverise with metric 10 and whereas when it advertise to Core-1 it should advertise with metric 100.
Thus Core-1 will have default route pointing to Gateway-1 and Core-2 will have default route pointing to Gateway-2
Basically, you want C1 to default out to GW1 and use GW2 as a failover.
You want the reverse for C2.
Why are you running OSPF on your GW routers anyway? Is it simply so that you can redistribute the default you're learning from the ISPs back to your core?
How are you peering with the ISP? I assume its BGP.
Are these Internet connections or MP-BGP implementations for MPLS VPN, in which you want to extend your OSPF domain across the providers' clouds?
The problem is that you are sharing a common interface with GW1 and GW2 in a multiaccess network, so you dont have the option of manipulating the OSPF cost on a particular interface to make routes learned through one interface more/less desirable than routes learned on other interfaces.
Can I suggest that you not advertise a default route through OSPF and just use 2 statics? It seems like the easiest way to get this accomplished. Is there a reason why this wouldnt work in your network?
As Giueseppe has stated, you cannot advertise different metrics for the same destination network to different OSPF neighbors.
The route map you created does half the job: it lets C1 see GW1 as the preferred default, with GW2 as the backup. The problem is those metrics will also be advertised to C2 and he, too, will see GW1 as the preferred and GW2 as the secondary.
This is not BGP , where you can influence how different neighbors view the desirability of the routes you advertise.
Lastly, you will want a mechanism to track GW1's connectivity to the ISP. SO, you should use some tracking. You can get creative with this, too.
We have 3 identical switches configured by someone else and would like to claim some of the Gigabit ports(G1/G2/G3/G4) for use on servers. When we try to change the wiring and configuration, we run in to connectivity issues. Attached is a des...
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...