Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP Route for single IP Addresses

Status
Not open for further replies.

KatzEye1

IS-IT--Management
Mar 18, 2004
108
GB
hi guys i've got a dual dsl setup on IOS 12.4, i have a single ip route line for each ISP and that works fine.

i now want to tell the router to route any traffic meant for 1 specific external IP address through a specific ISP, if that makes sense. it so happens the ISP is NOT the default of the 2 routes, its the second one.

reading up on the "ip route" command, it only show syntax for routing based on subnets (ie 68.75.10.0 255.255.255.0 instead of for example 68.75.10.12)

any ideas?
many thx!
 

68.75.10.12 255.255.255.255

Chris.


**********************
Chris A.C, CCNA, CCSA
**********************
 
thats what i thought but it doesnt work...

here are my normal ip routes:

ip route 0.0.0.0 0.0.0.0 vlan2 track 1
ip route 0.0.0.0 0.0.0.0 vlan3 10

when i add
ip route 68.75.10.12 255.255.255.255 vlan3

then tracert, it still goes through the default static, ie vlan2
 
no i do want the vlan2 to stay as the default route
 
Where are you trying to trace to? 68.75.10.12?

Chris.


**********************
Chris A.C, CCNA, CCSA
**********************
 
yep, basically i want the default route to stay as vlan2 for all routes except those to 68.75.10.12. vlan3 is the backup.
for 68.75.10.12 i want it to be routed through vlan3 and vlan3 only!
 
ip route 68.75.10.12 255.255.255.255 vlan3

If that destination is still using vlan 2, just put a metric of 5 after the
ip route 0.0.0.0 0.0.0.0 vlan2 5

Burt
 
Hello
You can try policy routing.Create and access-list and route-map and make the gateway you want as a next hop.If you want I can post you and example.
Regards
 
yes please minue!

burt: tried that too at the beginning, it didnt work :(
 
aha, think i fixed it, seems to be an ios bug in my particular config. upgraded to lates ios and it all works!

Minue: still would love to see how your solution would be with access-list/route-map :)
 
Ah, you fixed it already. I was going to suggest using ip packet debugging to analyze the router's routing decisions. You could also have done "show ip route 68.75.10.12" to see if the router was really accepting your static route statement.

On a related note, it would not have been necessary to alter the administrative distance of these routes. The host route was more specific than the default route. A router will always choose a more-specific route. The AD values are only compared for static routes that are equally specific.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top