Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ip default next-hop (source based routing)

Posted on 2014-04-07
6
717 Views
Last Modified: 2014-04-08
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.
0
Comment
Question by:Aaron Street
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:pergr
ID: 39985338
This is what you want to do:
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".
0
 
LVL 16

Author Comment

by:Aaron Street
ID: 39985436
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.
0
 
LVL 17

Expert Comment

by:pergr
ID: 39985558
Do a

route-map alpha permit 5


With rules for routing between A and B, which will kick in before the policy based routing.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 16

Author Comment

by:Aaron Street
ID: 39985578
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.
0
 
LVL 17

Accepted Solution

by:
pergr earned 500 total points
ID: 39985594
You usually do not need to enter each route specifically.

For example, you can have a rule matching destination 10./8 (10.0.0.0 255.0.0.0) as the "permit 5". Most likely two rules (10./8 and 192.168./16) are enough.

Another option, of course, is to do the routing between A and B on some L3 switch inside the router.
0
 
LVL 16

Author Comment

by:Aaron Street
ID: 39985654
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.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question