04-16-2019 01:59 PM - edited 04-16-2019 02:03 PM
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!
Solved! Go to Solution.
04-16-2019
02:07 PM
- last edited on
01-12-2024
02:35 AM
by
Translator
@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.
04-16-2019
02:07 PM
- last edited on
01-12-2024
02:35 AM
by
Translator
@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.
04-16-2019 02:23 PM
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
04-16-2019
02:23 PM
- last edited on
01-12-2024
02:37 AM
by
Translator
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
04-16-2019 03:44 PM - edited 04-16-2019 03:49 PM
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/
04-16-2019
05:26 PM
- last edited on
01-12-2024
02:38 AM
by
Translator
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide