We have a datcentre A and B and each datacentre is connected with a single WAN router. BGP is configured on both WAN router with service provider. OSPF is configured between router and both data centres. We want that traffic originate from datacentre B should through datacentre A WAN. If the WAN fails then it should take data centre B WAN.
On datacentre A Router default route is redistributed into OSPF with metric 1 and on datcentre B router default route is redistributed with metric 5. So the metric is configred for the route?
My question is what does this metric is doing??? metric 1 means more preferred path? will it add cost as well??? does it has to do with E1 or E2?? secondly what if i configure cost on the links
If I configure cost on the links will it do the same thing? secondly i have seen some configuration in which router Ethernet cost is configured as 2 but from switch to same router and interface cost is configured 5 (i always thought it should be same??) why its done like that
Thanks guys