SweetRevelation
Technical User
Hello all,
I have an OSPF issue with a certain route being selected over another despite them being the same type (external type 1) and the route being selected having a HIGHER cost.
Our network has a main office which is on area 0 and a colocation facility running area 1 let's say. There are two connections between the main office and the Colocation facility. One is a DS3 and the other is a VPN tunnel. The VPN tunnel is for use when the DS3 goes down, and both links are running on area 1.
So at our main office there are two area border routers each with area 0 and area 1, the area 1 interface being the VPN and the DS3, these are different devices too by the way.
OSPF network commands have been set up very specifically to only run ospf on links between routers so ospf is only running on our /30 subnets and then we are redistributing connected subnets into ospf as external type 1 so that it will pay attention to cost unlike type 2...
The cost of the interfaces for the VPN has been set to 100.
When the VPN is down ospf converges and when I am connected to a router at the colo in area 1 and I look at the routing table trying to get to a network living on the VPN router at the main office and I see the route in the table with a metric of say 50. This looks good.
I then bring up the VPN between the office and the colo facility and ospf reconverges and I check the routing table for the same route and now I have a route, pointing through the VPN, with a metric of 110. So, the connected routes are redistributed into OSPF, then the cost of the VPN is added bringing it to 130, way above the 50 that this route has replaced.
Both routes appear in the routing table as external type 1, but the one with the higher cost (physically closer but higher cost) is chosen and put in the routing table instead of the one with the lower cost.
I have re-created this issue in GNS3 using cisco 2691s, it behaves exactly the same way. Here is a debug of WHEN the router decides to do this, the question is WHY?
*Mar 1 00:59:17.075: OSPF: Start processing Type 5 External LSA 172.20.210.0, mask 255.255.255.0, adv 172.20.200.73, age 1034, seq 0x80000001, metric 20, metric-type 1
*Mar 1 00:59:17.075: Add better path to LSA ID 172.20.210.0, gateway 172.25.200.1, dist 130
*Mar 1 00:59:17.075: Add path: next-hop 172.25.200.1, interface FastEthernet0/1
*Mar 1 00:59:17.079: network update dest_addr 172.20.210.0 mask 255.255.255.0 gateway 172.25.200.1
*Mar 1 00:59:17.079: Add External Route to 172.20.210.0. Metric: 130, Next Hop: 172.25.200.1
*Mar 1 00:59:17.079: OSPF: Path left undeleted to 172.20.210.0
Here is the routing table with the VPN up:
R5#sho ip route 172.20.210.0
Routing entry for 172.20.210.0/24
Known via "ospf 1", distance 110, metric 130, type extern 1
Last update from 172.25.200.1 on FastEthernet0/1, 00:36:38 ago
Routing Descriptor Blocks:
* 172.25.200.1, from 172.20.200.73, 00:36:38 ago, via FastEthernet0/1
Route metric is 130, traffic share count is 1
Here is the routing table with the VPN down:
R5#sho ip route 172.20.210.0
Routing entry for 172.20.210.0/24
Known via "ospf 1", distance 110, metric 50, type extern 1
Last update from 172.18.0.1 on FastEthernet0/0, 00:00:19 ago
Routing Descriptor Blocks:
* 172.18.0.1, from 172.20.200.73, 00:00:19 ago, via FastEthernet0/0
Route metric is 50, traffic share count is 1
Any OSPF gurus out here who can help me out? What's going on with this route selection?
I appreciate any help anyone can provide.
I have an OSPF issue with a certain route being selected over another despite them being the same type (external type 1) and the route being selected having a HIGHER cost.
Our network has a main office which is on area 0 and a colocation facility running area 1 let's say. There are two connections between the main office and the Colocation facility. One is a DS3 and the other is a VPN tunnel. The VPN tunnel is for use when the DS3 goes down, and both links are running on area 1.
So at our main office there are two area border routers each with area 0 and area 1, the area 1 interface being the VPN and the DS3, these are different devices too by the way.
OSPF network commands have been set up very specifically to only run ospf on links between routers so ospf is only running on our /30 subnets and then we are redistributing connected subnets into ospf as external type 1 so that it will pay attention to cost unlike type 2...
The cost of the interfaces for the VPN has been set to 100.
When the VPN is down ospf converges and when I am connected to a router at the colo in area 1 and I look at the routing table trying to get to a network living on the VPN router at the main office and I see the route in the table with a metric of say 50. This looks good.
I then bring up the VPN between the office and the colo facility and ospf reconverges and I check the routing table for the same route and now I have a route, pointing through the VPN, with a metric of 110. So, the connected routes are redistributed into OSPF, then the cost of the VPN is added bringing it to 130, way above the 50 that this route has replaced.
Both routes appear in the routing table as external type 1, but the one with the higher cost (physically closer but higher cost) is chosen and put in the routing table instead of the one with the lower cost.
I have re-created this issue in GNS3 using cisco 2691s, it behaves exactly the same way. Here is a debug of WHEN the router decides to do this, the question is WHY?
*Mar 1 00:59:17.075: OSPF: Start processing Type 5 External LSA 172.20.210.0, mask 255.255.255.0, adv 172.20.200.73, age 1034, seq 0x80000001, metric 20, metric-type 1
*Mar 1 00:59:17.075: Add better path to LSA ID 172.20.210.0, gateway 172.25.200.1, dist 130
*Mar 1 00:59:17.075: Add path: next-hop 172.25.200.1, interface FastEthernet0/1
*Mar 1 00:59:17.079: network update dest_addr 172.20.210.0 mask 255.255.255.0 gateway 172.25.200.1
*Mar 1 00:59:17.079: Add External Route to 172.20.210.0. Metric: 130, Next Hop: 172.25.200.1
*Mar 1 00:59:17.079: OSPF: Path left undeleted to 172.20.210.0
Here is the routing table with the VPN up:
R5#sho ip route 172.20.210.0
Routing entry for 172.20.210.0/24
Known via "ospf 1", distance 110, metric 130, type extern 1
Last update from 172.25.200.1 on FastEthernet0/1, 00:36:38 ago
Routing Descriptor Blocks:
* 172.25.200.1, from 172.20.200.73, 00:36:38 ago, via FastEthernet0/1
Route metric is 130, traffic share count is 1
Here is the routing table with the VPN down:
R5#sho ip route 172.20.210.0
Routing entry for 172.20.210.0/24
Known via "ospf 1", distance 110, metric 50, type extern 1
Last update from 172.18.0.1 on FastEthernet0/0, 00:00:19 ago
Routing Descriptor Blocks:
* 172.18.0.1, from 172.20.200.73, 00:00:19 ago, via FastEthernet0/0
Route metric is 50, traffic share count is 1
Any OSPF gurus out here who can help me out? What's going on with this route selection?
I appreciate any help anyone can provide.