Cisco IOS Routing Syntax

Currently, I have a route set up like this on my 2600 running IOS 12.1:

ip route 69.242.89.0 255.255.255.0 69.242.89.254

However, I no longer want the entire Class C going to .254, just a part of it. How can I do that so a range of IPs can be routed? I tried something like this:

ip route 69.242.89.98-69.242.89.110 255.255.255.240 69.242.89.254

But ofcourse the syntax isn't correct. Is there a way to accomplish this?

Reply to
PSX
Loading thread data ...

"PSX" skrev i en meddelelse news: snipped-for-privacy@t31g2000cwb.googlegroups.com...

The syntax should be 69.242.89.96 255.255.255.240 69.242.89.next hop

The .96/28 will include ip-addresses ranging from .96 to .111

Reply to
Martin Kiefer

Thanks for the info, but I'm afraid that didn't work for me:

2620(config)#ip route 69.242.89.96 255.255.255.240 69.242.89.next hop

^ % Invalid input detected at '^' marker.

This post doesn't accurately show this, but the ^ is pointing to the "n" of next. Maybe it's because I'm running 12.1 and not a later IOS? Without more memory, 12.1 is the latest I can run.

Reply to
PSX

No, it's because you put the word "next hop" in there. You need to replace that with the IP of the device you want to point it to, ie .254

Reply to
Brian V

Thanks for the explination, I understand now. I just thought .next hop was some new syntax I had not seen before :)

Reply to
PSX

"PSX" skrev i en meddelelse news: snipped-for-privacy@g10g2000cwb.googlegroups.com...

Sorry, should have been more clear :-)

Reply to
Martin Kiefer

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.