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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Noob - Static route out same interface on 1721 router

Status
Not open for further replies.

peterc2203

IS-IT--Management
Aug 18, 2008
2
US
Background:
We have a cisco 1721 router. It has a digital T1 module and the fa0 ethernet port.

digital T1 - external IP
fa0 - internal 192.168.0.4

We also have a completely separate DSL line that has an internal port of 192.168.0.6. This is essentially a backup line.

The default gateway for all internal computers is 192.168.0.4 - which leads out the T1.

####################
Problem:

I would like to setup a static route so that requests going to the IP address 65.106.17.8 are routed to 192.168.0.6

####################
Senario:

A terminal at 192.168.0.135 with gateway 192.168.0.4 requests 65.106.17.8. Request goes to 192.168.0.4 (cisco router) which sends the request to 192.168.0.6 (DSL router)

####################
Attempts:

I have tried the following, but requests seem to always go out 192.168.0.4 and not 192.168.0.6

ip route 65.106.17.0 255.255.255.240 192.168.0.4
ip route 65.106.17.0 255.255.255.240 192.168.0.6
ip route 65.106.17.0 455.255.255.240 fa0

Any help would be greatly appreciated.
 
Peter the next hop will always be 192.168.0.4, because that's the hosts gateway.

The ip route 65.106.17.0 255.255.255.240 <IP_OF_DSL_ROUTER> should do the trick.
 
I have tried that, unless I need to do the external side of the DSL router.

ip route 65.106.17.0 255.255.255.240 192.168.0.6
 
Hello
Try the below conf:

route-map TEST permit 10
match ip address 101
set ip default next-hop 192.168.0.6

access-list 101 permit ip any 65.106.17.0 0.0.0.255

Then apply the map on the digital T1 - external IP
Router(config-if)#

ip policy route-map TEST

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top