Cisco IOS Routing Syntax

Apr 06, 2006 5 Replies

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?



"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

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.

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

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

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

Sorry, should have been more clear :-)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required