Aaron Street
asked on
ip default next-hop (source based routing)
So on a cisco router i can configure
set ip next-hop verify-availability 10.1.1.1 1 track 10
but I cant configure
ip default next-hop, with a tracking object attached.
Any ideas how I can get the same effect.
I want to say
if source is subnet A then use default route of X
if source is subnet B then use default route of Y
now that can fail over find if the router x or Y goes down, but not if the route upstream of these has issues.
set ip next-hop verify-availability 10.1.1.1 1 track 10
but I cant configure
ip default next-hop, with a tracking object attached.
Any ideas how I can get the same effect.
I want to say
if source is subnet A then use default route of X
if source is subnet B then use default route of Y
now that can fail over find if the router x or Y goes down, but not if the route upstream of these has issues.
ASKER
Trouble is this will over ride the routing table.
So say Router X has 4 connections,
one from Subnet A
one from subnet B
One to subnet X (default route)
One to subnet Y (default route)
If a packet comes in from subnet A destined for subnet B then I want it to go out the interface to B
but setting a next hop in a policy map would over ride this as with 4 connections it would have to be applied to the incoming interface of A.
This is why I wanted to use "default next-hop", in the route map as it apply only if there is no more specific route in the routing table.
So say Router X has 4 connections,
one from Subnet A
one from subnet B
One to subnet X (default route)
One to subnet Y (default route)
If a packet comes in from subnet A destined for subnet B then I want it to go out the interface to B
but setting a next hop in a policy map would over ride this as with 4 connections it would have to be applied to the incoming interface of A.
This is why I wanted to use "default next-hop", in the route map as it apply only if there is no more specific route in the routing table.
Do a
route-map alpha permit 5
With rules for routing between A and B, which will kick in before the policy based routing.
route-map alpha permit 5
With rules for routing between A and B, which will kick in before the policy based routing.
ASKER
yes but this means a route map to deal with tons of internal routes that would need to be applied to each internal interface to deal with all the internal routes.
At the moment OSPF deals with all the dynamic routing, I don't want to have to manually set this all up as route maps.
At the moment OSPF deals with all the dynamic routing, I don't want to have to manually set this all up as route maps.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
you are right, but when the primary router I am talking about is the core switch and a few hundred routes and vlans terminating on it.....
Oh actually of course,
Just 3 rules that says
Rule 1 For any internal destination then rule 1 simple permit.
Rule 2 For any source A use next hop X
Rule 3 For any source B use next hop Y
And then apply it to the incoming interfaces.
Oh actually of course,
Just 3 rules that says
Rule 1 For any internal destination then rule 1 simple permit.
Rule 2 For any source A use next hop X
Rule 3 For any source B use next hop Y
And then apply it to the incoming interfaces.
http://www.cisco.com/c/en/us/support/docs/ip/ip-routed-protocols/48003-pbrtracking.html
Now, your questions are mixing "source based routing", and "default route". Note that "default route" is always for the "destination ip address", and not the "source ip address".