Cisco IOS Routing Syntax

Discussion in 'Cisco' started by PSX, Apr 6, 2006.

  1. PSX

    PSX Guest

    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, Apr 6, 2006
    #1
    1. Advertising

  2. "PSX" <> skrev i en meddelelse
    news:...
    > 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
    >


    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

    --
    Best regards
    Martin Kiefer
    www.kiefer.dk/m/
    Martin Kiefer, Apr 6, 2006
    #2
    1. Advertising

  3. PSX

    PSX Guest

    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.
    PSX, Apr 6, 2006
    #3
  4. PSX

    Brian V Guest

    "PSX" <> wrote in message
    news:...
    > 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
    Brian V, Apr 6, 2006
    #4
  5. PSX

    PSX Guest

    Thanks for the explination, I understand now. I just thought .next hop
    was some new syntax I had not seen before :)
    PSX, Apr 6, 2006
    #5
  6. "PSX" <> skrev i en meddelelse
    news:...
    > Thanks for the explination, I understand now. I just thought .next hop
    > was some new syntax I had not seen before :)
    >


    Sorry, should have been more clear :)

    --
    Best regards
    Martin Kiefer
    www.kiefer.dk/m/
    Martin Kiefer, Apr 6, 2006
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jason Joines

    interface configuration name syntax

    Jason Joines, Jul 21, 2004, in forum: Cisco
    Replies:
    2
    Views:
    447
    slipstream_242
    Jul 21, 2004
  2. AM
    Replies:
    2
    Views:
    409
    Walter Roberson
    Dec 6, 2004
  3. Mr Corbett
    Replies:
    5
    Views:
    3,141
    Aaron Leonard
    Aug 19, 2005
  4. Mike Rahl
    Replies:
    1
    Views:
    1,197
    Trendkill
    May 30, 2007
  5. Al
    Replies:
    2
    Views:
    1,681
Loading...

Share This Page