ip route doesn't work

yukardoyukardo Member Posts: 7 ■□□□□□□□□□
Hi,

I am using packet tracer and I have a problem.

I have a configuration with three router and I am adding static routes to each router, so the problem is that I add the static route and it does not appear in the routing table.

I appreciate your help.

Thanks for your time.

Comments

  • fluk3dfluk3d Member Posts: 141 ■■■□□□□□□□
    Can you post your config?

    For the IP route to be available in the routing table the next-hop must be available and the outgoing interface must be up/up if the route is configured with the outgoing interface.
    "Imagination is more important than knowledge." - Albert Einstein
  • sizeonsizeon Member Posts: 321
    i am 100% sure you are entering the wrong network. Make sure you are entering the correct network address.
  • angel.oaangel.oa Member Posts: 45 ■■□□□□□□□□
    post your config, but maybe you have a problem with your interfaces (no clock rate provided, wrong encapsulation, etc).
    Currently reading :study:

    Routing TCP/IP, Volume 1 (2nd Edition)
    Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
    JNCIA - Junos Study Guide - Parts 1 & 2
  • thedude666thedude666 Member Posts: 69 ■■□□□□□□□□
    fluk3d wrote: »
    Can you post your config?

    For the IP route to be available in the routing table the next-hop must be available and the outgoing interface must be up/up if the route is configured with the outgoing interface.

    Correct! So try to ping the other router first to make sure you have reply. Do you see green dots in packettracer? Otherwhise your interface is probably disabled.

    And without your config it is difficult to help
  • Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
  • yukardoyukardo Member Posts: 7 ■□□□□□□□□□
    I found the problem.

    I was adding an host's ip address instead of a network address.

    However, I have some confused, because I thought that I can add an host's ip address to a static route, no just a network address.

    If somebody can help me I will appreciate.

    Thanks for your help.
  • MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    On a static route you will put just the network not the actual PC's address. For example:

    Router 1: 10.0.10.1 - router 1 is directly connected to router 2
    Router 2: 10.1.10.1 - router 2 is directly connected to router 3
    Router 3: 10.2.10.1

    Obviously you'll have to create a static route to get a packet to go from Router 1 to router 3, correct? So you'll type in ip route 10.2.10.0 255.255.255.x 10.1.10.1

    ip router 10.2.10.0 (means the network of 10.2.10.0, not the host).
    2017 Certification Goals:
    CCNP R/S
  • yukardoyukardo Member Posts: 7 ■□□□□□□□□□
    Ok. I got it.

    Thanks to everybody for your help.
Sign In or Register to comment.