05-28-2018 06:14 PM - edited 03-08-2019 03:09 PM
I'm trying to connect 3 routers.
R1-------r2-------r3
I want r2 to act as the Internet. What do I have to do for r1 and r3 to be able to ping each other if I have a network of 200.100.50.0 /30 between r1 and r2 and a network of 75.75.75.0 /30 between r2 and r3 with no routing protocol involved. Shouldn't I be able to use static routes on R2 to accomplish this? I tried but it's not working. If someone could give me some advice I would appreciate it.
Solved! Go to Solution.
05-28-2018 06:54 PM - edited 05-28-2018 06:54 PM
Hi
Based on your input, R2 will know both subnets because it'll have an ip on each of them which means no need of static route here. However you'll need to add static route on R3 and R2 as follow:
Let's assume R2 has ip .1 in both subnets.
R3 static route:
Route to 200.100.50.0/30 with R2 ip in subnet 75.75.75.0/30 as next hop
ip route 200.100.50.0 255.255.255.252 75.75.75.1
R1 static route:
Route to 75.75.75.0/30 with R2 ip in subnet 200.100.50.0/30 as next hop
ip route 75.75.75.0 255.255.255.252 200.100.50.1
05-28-2018 06:54 PM - edited 05-28-2018 06:54 PM
Hi
Based on your input, R2 will know both subnets because it'll have an ip on each of them which means no need of static route here. However you'll need to add static route on R3 and R2 as follow:
Let's assume R2 has ip .1 in both subnets.
R3 static route:
Route to 200.100.50.0/30 with R2 ip in subnet 75.75.75.0/30 as next hop
ip route 200.100.50.0 255.255.255.252 75.75.75.1
R1 static route:
Route to 75.75.75.0/30 with R2 ip in subnet 200.100.50.0/30 as next hop
ip route 75.75.75.0 255.255.255.252 200.100.50.1
05-28-2018 07:11 PM
Thanks Francesco Molino !
05-30-2018 08:55 AM
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