Router setup question CCNA

I'm trying to see how ip route works with static route entry. I set up a simple 3 router setup and tried to ping. I can ping next router, but pinging from Router 3 to Router 1 fails. I put the static ip route to 10.1.1.0 network, still fails. what am I doing wrong? I used fastethernet interfaces to connect routers and used crossover cable.

here are the configs of the 3 routers and the layout image is attached.

Router 1
Router#sh run
Building configuration...

Current configuration : 460 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router

!
interface FastEthernet0/0
 ip address 10.1.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
 login
!
!
!
end



===========================
Router 2

Router#sh run
Building configuration...

Current configuration : 470 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
interface FastEthernet0/0
 ip address 10.1.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 10.1.2.1 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
 login
!
!
!
end

======================================
Router3

Router#sh run
Building configuration...

Current configuration : 502 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router

!
interface FastEthernet0/0
 ip address 10.1.2.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 10.1.1.0 255.255.255.0 10.1.2.1
!
!
!
!
!
!
!
line con 0
line vty 0 4
 login
!
!
!
end
r1.jpg
LVL 1
crcsupportAsked:
Who is Participating?
 
smckeown777Connect With a Mentor Commented:
Routers in the real world(i.e. not stub routers) all use dynamic routing protocols...not static like you are using to test...

I.e. they use OSPF/EIGRP/RIP/etc...etc...
They will have routes to routers within their 'network' - no router has routes to every router on the planet...but with dynamic routes they can get to the final destination since the next router in the loop will have slightly different/more routes to other destinations etc...etc...so its all dynamic

For testing with static routing you always need routes on both ends to make it work
0
 
smckeown777Connect With a Mentor Commented:
On Router1 you don't have a route to Router3...


ip route 10.1.2.0 255.255.255.0 10.1.1.2

Add that to Router1 to fix...
0
 
crcsupportAuthor Commented:
I didn't add the route because I was testing to ping from router 3 to router 1.
I added the route, but it doesn't resolve the problem any. I rather think something other than ip routes...
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
crcsupportAuthor Commented:
just to let you know, I'm testing this using Cisco Packet Tracer.
0
 
smckeown777Connect With a Mentor Commented:
Not sure what you mean by 'I didn't add the route because I was testing to ping from router 3 to router 1' - in order for traffic to flow between 1 and 3 you need static routes...regardless of what testing you are doing...

So you've both route commands now on R1 and R3 yes?
What does

sh ip route

command produce when run on R1 and R3?
0
 
crcsupportAuthor Commented:
You're right. I added again now it solves the problem. I don't know why it didn't work before, maybe I added wrong. If I add the wrong static ip route, does router removes the incorrect route automatically because I don't see the route I added to Router 1 anymore after you told me.
0
 
smckeown777Connect With a Mentor Commented:
Not that I know of, you can add multiple routes...only way to remove them is to issue the

no ip route 10.1.1.0 255.255.255.0 10.1.2.1

command - i.e. the no being the key command above
0
 
crcsupportAuthor Commented:
Thanks the problem resolved.
If a router is supposed to have ip route on table  for all remote network, then now I think it seems somewhat weird. For stub router (like gateway from lan to internet) is ok. I can configure default route (ip route 0.0.0.0 0.0.0.0 s0/0/0). But how about the router in tier 1,2,3 routers outside. Do they actually keep all internet network route ??? I'm confused cause' I just saw for both router to communicate, they both need to have routes configured for each other
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.