07-31-2012
09:06 PM
- last edited on
02-06-2023
11:16 PM
by
Translator
Hi,
While going to a config i came across the following line of configs and i know there will/may be a reason for using 128.0.0.0 in their static routes pointing to the default gateway/firewall. I am pretty keen to know in what situation this kind of routes will be added on to the router.
ip route 0.0.0.0 0.0.0.0 vlan 10 192.168.10.254
ip route 0.0.0.0 128.0.0.0 vlan 10 192.168.10.254
ip route 128.0.0.0 128.0.0.0 vlan 10 192.168.10.254
If some one can explain me, that will be grate.
Thanks
Rajesh
Solved! Go to Solution.
08-01-2012
12:34 AM
- last edited on
02-06-2023
11:21 PM
by
Translator
Hi,
I cannot see the 0.0.0.0 0.0.0.0 route ever being used as all routes will fall into one of the more significant routes below
ip route 0.0.0.0 128.0.0.0 vlan 10 192.168.10.254
ip route 128.0.0.0 128.0.0.0 vlan 10 192.168.10.254
So you could have either
ip route 0.0.0.0 0.0.0.0 vlan 10 192.168.10.254
or
ip route 0.0.0.0 128.0.0.0 vlan 10 192.168.10.254
ip route 128.0.0.0 128.0.0.0 vlan 10 192.168.10.254
Both will exclusively do the same job on that router.
08-01-2012 02:29 PM
Hello Rajesh,
I do not personally see any logic behind these routes. As Lee has correctly pointed out, because of longest-prefix matching, the /1 routes will be always used and the 0.0.0.0/0 route will thus remain unused. Contrary to what Alessio suggests, I do not believe this has anything to do with load balancing or load splitting - because the next hop IP address is identical in all three routes, so there are no more next hops to load balance among.
However, I remember reading about a bug on Catalyst 2960 switches immediately after introducing their limited static routing functionality. This bug caused the 2960 to ignore the 0.0.0.0/0 default route in its routing table, preventing the switch from routing packets towards the default gateway. All other routing entries were used correctly. This lead to an immediate workaround of specifying the default route as a pair of routes 0.0.0.0/1 and 128.0.0.0/1 towards the same next hop.
Is perhaps your device here a Cat 2960?
Best regards,
Peter
07-31-2012 09:19 PM
Hi Rajesh ,
As per mu understanding these are split static routes which were used in the case of equal load balancing and unequal load balancing are required.
Regards.
A.
07-31-2012
09:30 PM
- last edited on
02-06-2023
11:18 PM
by
Translator
Thanks for the reply.
These static routes have been applied towards the interface facing the firewalls. I will be more convinced if they have used split static routes in a server environment.
But still, i dont know how this will perform load balancing since both the follwoing lines are found at the same router.
ip route 0.0.0.0 128.0.0.0 vlan 10 192.168.10.254
ip route 128.0.0.0 128.0.0.0 vlan 10 192.168.10.254
Thanks
Rajesh
01-20-2015 04:23 PM
I found a good use case. Let's say that you have a default originated into OSPF and some remote device has a static default pointing to a backup next hop not running OSPF. The remote device will never use the OSPF originated default it received because of the AD. Maybe the remote device needs a gateway of last resort on it's primary link or a supernet to prevent assymetric routing or black holes over the backup link.
Using 0.0.0.0/1 & 128.0.0.0/1 solves this!
03-26-2015 09:21 AM
We are looking at this exact thing right now.
0.0.0.0/1 route over eigrp to the data center.
0.0.0.0/1 route over ospf (AD 180) for alternate path to the same data center. Lower speed, over subscribed.
0.0.0.0/0 summarized route over eigrp (AD 170) over a backup satellite link to the data center.
Satellite will never get used unless the other 2 "more specific" routes are not available.
-Mark
03-26-2015 01:07 PM
Exactly Mark, it is useful after all!
Jeremy
08-01-2012
12:34 AM
- last edited on
02-06-2023
11:21 PM
by
Translator
Hi,
I cannot see the 0.0.0.0 0.0.0.0 route ever being used as all routes will fall into one of the more significant routes below
ip route 0.0.0.0 128.0.0.0 vlan 10 192.168.10.254
ip route 128.0.0.0 128.0.0.0 vlan 10 192.168.10.254
So you could have either
ip route 0.0.0.0 0.0.0.0 vlan 10 192.168.10.254
or
ip route 0.0.0.0 128.0.0.0 vlan 10 192.168.10.254
ip route 128.0.0.0 128.0.0.0 vlan 10 192.168.10.254
Both will exclusively do the same job on that router.
08-01-2012 02:29 PM
Hello Rajesh,
I do not personally see any logic behind these routes. As Lee has correctly pointed out, because of longest-prefix matching, the /1 routes will be always used and the 0.0.0.0/0 route will thus remain unused. Contrary to what Alessio suggests, I do not believe this has anything to do with load balancing or load splitting - because the next hop IP address is identical in all three routes, so there are no more next hops to load balance among.
However, I remember reading about a bug on Catalyst 2960 switches immediately after introducing their limited static routing functionality. This bug caused the 2960 to ignore the 0.0.0.0/0 default route in its routing table, preventing the switch from routing packets towards the default gateway. All other routing entries were used correctly. This lead to an immediate workaround of specifying the default route as a pair of routes 0.0.0.0/1 and 128.0.0.0/1 towards the same next hop.
Is perhaps your device here a Cat 2960?
Best regards,
Peter
08-01-2012 05:46 PM
Peter & Lee,
You are right, I don’t see a point in using /1 routes along with 0.0.0.0/0 route. But when I saw those routes, I was interested to know the reason why it was applied and in which situation can be used and I did my own research. I was not convinced with my finding since all the 3 routes are pointing to the same gateway IP which cannot do load balancing. From this discussion, I am kind of convinced and know this is not used for any load balancing scenarios.
Peter, the device is Cisco 6513 and this is not from Cat 2960
Thanks for the input guys and If I find any thing interesting I will update you guys.
Rajesh
08-02-2012 03:35 PM
Hello Rajesh,
Thank you for your generous ratings! Sure, if you learn about anything new please let us know.
Best regards,
Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide