cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5287
Views
2
Helpful
5
Replies

Static routing with 5 routers

patmull
Level 1
Level 1

Hello everyone. I need to help with static routing on this type of network with 5 routers. I need to ping from one to pc to another. (PC0 -> PC1 and PC1 -> PC0). I understand how to do static routing when I have simple network with two routers but this more complex example is beyond my mind :-(

I've would be really grateful if you can help me.
Thank you so much!

ping.png

1 Accepted Solution

Accepted Solutions

Jaderson Pessoa
VIP Alumni
VIP Alumni

@patmull Hello,

 

 

ON R4:

ip route 0.0.0.0 0.0.0.0 10.0.0.1

 

ON R0:

ip route 172.16.0.0 255.255.255.0 10.0.0.2

ip route 0.0.0.0 0.0.0.0 192.168.0.254

 

ON R1:

ip route 172.16.0.0 255.255.255.0 192.168.0.253

ip route 0.0.0.0 0.0.0.0 192.168.0.250

 

ON R2:

ip route 172.16.0.0 255.255.255.0 192.168.0.249

ip route 0.0.0.0 0.0.0.0 192.168.0.246

 

ON R3

ip route 172.16.0.0 255.255.255.0 192.168.0.245

 

It will work. 

Jaderson Pessoa
*** Rate All Helpful Responses ***

View solution in original post

5 Replies 5

Jaderson Pessoa
VIP Alumni
VIP Alumni

@patmull Hello,

 

 

ON R4:

ip route 0.0.0.0 0.0.0.0 10.0.0.1

 

ON R0:

ip route 172.16.0.0 255.255.255.0 10.0.0.2

ip route 0.0.0.0 0.0.0.0 192.168.0.254

 

ON R1:

ip route 172.16.0.0 255.255.255.0 192.168.0.253

ip route 0.0.0.0 0.0.0.0 192.168.0.250

 

ON R2:

ip route 172.16.0.0 255.255.255.0 192.168.0.249

ip route 0.0.0.0 0.0.0.0 192.168.0.246

 

ON R3

ip route 172.16.0.0 255.255.255.0 192.168.0.245

 

It will work. 

Jaderson Pessoa
*** Rate All Helpful Responses ***

Richard Burts
Hall of Fame
Hall of Fame

If you do the configurations carefully and correctly this is not a difficult thing to do. And it uses the same principles that you would use to implement it on 2 routers. You would need to configure static routes about how to reach 172.16.0.0/24 on router0, router1, router2, and router3. In these static routes the next hop that you would specify would be the address of the router interface of the neighbor on the way to router4 (router0 would use the interface of router4, and router1 would use the interface of router0, etc). You would need to configure static routes about how to reach 20.0.0.0/8 on router2, router1, router0, and router4. In these static routes the next hop that you would specify would be the address of the router interface of the neighbor on the way to router3 (router2 would use the interface of router3, and router1 would use the interface of router2, etc).

 

I would suggest that after you complete the configurations and before you begin testing that you do show ip route on each router and make sure that each router has entries in its routing table for networks 20.0.0.0/8 and 172.16.0.0/24. If those entries exist on each router then your testing should be successful.

 

HTH

 

Rick

 

HTH

Rick

luis_cordova
VIP Alumni
VIP Alumni

Hi @patmull ,

 

Both with static routes and with routing protocols, you must ensure that the routers have a route for the networks you want to know.
You can review these routes with the

show ip route

command.
In your case, as a variant to what is mentioned by @Jaderson Pessoa , you can do it like this:

 

Router 4

ip route 20.0.0.0 255.0.0.0 f0/1

The network 172.16.0.0 is already known by this router because it is directly connected

 

Router 0

ip route 20.0.0.0 255.0.0.0 s0/1/0

ip route 172.16.0.0 255.255.255.0 f0/0


Router 1

ip route 20.0.0.0 255.0.0.0 s0/0/0

ip route 172.16.0.0 255.255.255.0 s0/1/0


Router 2

ip route 20.0.0.0 255.0.0.0 f0/0

ip route 172.16.0.0 255.255.255.0 s0/1/0


Router 3

ip route 172.16.0.0 255.255.255.0 f0/1

The network 20.0.0.0 is already known by this router because it is directly connected

 

Regards

joseph.h.nguyen
Level 1
Level 1

I don't know what you don't know.  Instead of giving you an answer to your question, you should understand the basic.  In addition what Richard had said, you should know that router does not know what it does not know.  Each router learns the route either statically or dynamically.  Basic routing does not care about end-to-end path, but we do.  You have to understand the end-to-end path which can be easy like your lab environment or it can be complex if you have multiple routers and paths.  To learn the end-to-end path, for example you can do a traceroute from PC0 to PC1 or you can ping each node along the path from PC1 following your network diagram or you can log each node and perform a "show ip route 172.16.0.2 and show ip route 20.0.0.2", assuming you have applied the configuration shared by previous posts.

Quick reference on traceroute, https://www.siteground.com/kb/how_to_perform_traceroute_checks_in_windows_linux_and_macos/

Hello
Without using any default routes working from left to right - try the following - It should be okay however my dyslexia  doesn't help when trying to do anything like this as  i need to triple check most times, so apologies in advanced if there is any typos but from the below you should see how i have complied the statics and work from it?

R4
ip route 20.0.0.0 255.0.0.0 10.0.0.1
ip route 192.168.0.244 255.255.255.252 10.0.0.1
ip route 192.168.0.248 255.255.255.252 10.0.0.1
ip route 192.168.0.252 255.255.255.252 10.0.0.1

R0
ip route 20.0.0.0 255.0.0.0 192.168.0.254
ip route 192.168.0.244 255.255.255.252 192.168.0.254
ip route 192.168.0.248 255.255.255.252 192.168.0.254
ip route 172.16.0.0 255.255.255.0 10.0.0.2

R1
ip route 20.0.0.0 255.0.0.0 192.168.0.250
ip route 192.168.0.244 255.255.255.252 192.168.0.250
ip route 10.0.0.0 255.0.0.0 192.168.0.253
ip route 172.16.0.0 255.255.255.0 192.168.0.253

R2
ip route 20.0.0.0 255.0.0.0 192.168.0.246
ip route 192.168.0.252 255.255.255.252 192.168.0.249
ip route 10.0.0.0 255.0.0.0 192.168.0.249
ip route 172.16.0.0 255.255.255.0 192.168.0.249

R3
ip route 192.168.0.248 255.255.255.252 192.168.0.245
ip route 192.168.0.252 255.255.255.252 192.168.0.245
ip route 10.0.0.0 255.0.0.0 192.168.0.245
ip route 172.16.0.0 255.255.255.0 192.168.0.245

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul