Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco IP Route statement

Status
Not open for further replies.

FunTechie

IS-IT--Management
Aug 11, 2003
12
US
Hi all.
I am preparing for the CCNA exam but am struggling with the IP ROUTE statement. I understand the concept of what it's doing but do not fully understand exactly what it's saying. I do have the benefit of working with a couple of 2600's but again the IP Route statement is a stumbling block for me. Would anybody please take the time to respond offering a simple explanantion of this command ?? Further, I have managed to setup these 2 2600's simulating a Frame-Relay connection between the 2 using 192.168 addressing AND want to attach them to my 172.16.net for Internet connectivity. With more understanding (perhaps a clearer explanation) of the IP ROUTE statement, I think I can make this happen and better prepare myself for the test. Thanks in advance.

Ed
 
ip route <dest network> <subnet mask> <default gateway> <adm dist --- optional> ....taken as 1 by default if not specified

dest network --- where u want to go <the subet/network>
mask - defines the particular subnet location where u want to go.
default gateway -- the door u take to get there (next hop)
adminstrative distance -- the reliablity of the link

0 - most realiability for directly connected networks
1 - static routes
100,110,120 etc for diff routing protocols
255 - you never gonna get there

BY the way I have a doubt, what happens If I put a static route with the same adm dist as say rip..120. Will this be allowed and wat will happen in this case.


Vikram
SAP BASIS R3\IBM AIX\Tivoli Administrator, CCNA
 
Hi Vikram.
Thanks for your response. It does help. I think, in answer to your question, RIP is a dynamic routing protocol and the statically assigned IP address is prefered by the router. Also, I think both can exist with the same administrative distance but the router will choose the static address first unless the destination is unreachable. Is this correct ???

 
Hey there, Vikram,

Answer to your question.

You configure static route with admin distance 120. Now admin distance of the route is 120 for both static and RIP protocol. Now when admin distance is same, router is gonna check the metric. Now static routes always have a metric value of 0, while RIP routes (if directly connected to neighbor) then metric would be 1 ( or it could be any where between 1 and 15, depending on how many hops it is).

So what is gonna happen is, the router will select the static route, due to its lower metric.

Hope that answers your question.

CE
 
Given: ip route <dest network> <subnet mask> <default gateway> I tried this:

# Add a static route from the LAN to the wireless LAN (10.1.1.0/24)
# Linksys wireless access point WAN IP = 174.18.5.50
ip route 10.1.1.0 255.255.255.0 174.18.5.50

What I'm trying to do is route from my LAN (174.18.5.0/24) to my Linksys wireless router (&quot;WAN&quot; IP is 174.18.5.50, wireless LAN IP is 10.1.1.1) so I can access it's admin page from a browser on the 174.18.5.0 LAN without having to either connect to it directly or having to plug in a wireless NIC.

The above statement seems like it would do it but fails; pinging 10.1.1.1 times out. I'm wondering if A) the syntax is wrong, B) you can't route to a non-routable subnet, or C) something else.

Thanks!

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top