01-06-2004 07:17 PM - edited 03-02-2019 12:42 PM
Please help.
I need to program the router to direct all requests for onen ip address to a different router.
ie. all to the 837 router (10.10.10.1) for internet, accept 172.16.1.1 which needs to be directed through another router(10.10.10.100)
Thanks for any advise
01-07-2004 12:25 AM
To forward packets with *destination* 172.16.1.1 to router 10.10.10.100, use the following command in configuration mode (use "conf term" to go to this mode):
ip route 172.16.1.1 255.255.255.255 10.10.10.100
Otoh, if you mean that packets coming *from* 172.16.1.1 should be treated differently, that's a whole other story; then you'ld need to implement policy based routing (pbr). Let me know if you need this.
hth
Herbert
01-07-2004 04:42 AM
That is exactly what I tried, but when I enter that I get the message:
%Inconsistent address and mask
And that's it...
any ideas?
thanks
Scott.
01-08-2004 12:52 AM
Are you sure it is *exactly* what you tried?
Maybe you made a typo, or used 255.255.255.0 (or other mask) instead of 255.255.255.255 ?
These are really the most probable causes I can think of...
01-08-2004 05:15 AM
I got the router to work... however... as soon as it reboots the settings are lost. Is there another command I require to save the setting or is there some enabled to stop changes being made?
thanks
sc.
01-08-2004 05:56 AM
Hi,
Change the configuration and save the conf with "wr" command at privileged mode and then reboot.
Ashok.
01-08-2004 05:56 AM
I'm not sure if this is what you need but try this:
At CLI type : copy running-config startup-config
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