12-16-2015 11:28 PM - edited 03-08-2019 03:08 AM
I attached a snip shot of my topology. I am trying to understand static routes but having some problems. kindly guide me.
Topology
I have three routers in my topology and I want to access a loopback interface which is located at router C from router A.
kindly check the snip shop attached with.
Solved! Go to Solution.
12-17-2015 01:13 AM
Sulaiman, There are lot of ways to achieve this. Please find my answeR:-
Actions:
======
R1---1.1.1.1/24----R2----2.2.2.2---R3---Lo-4.4.4.4
What I have done is i have good connectvity directly between the routes and my devices are reachable.
1- Now your question is to reach 4.4.4.4 from R1 through R2 is :-
a- Have static route from R1 to R2 ( I did : ip route 4.4.4.4 255.255.255.255 1.1.1.2) --1.1.1.2 is R2 connecting link.
b- Have a static route from R2 to R3.( ip route 4.4.4.4 255.255.255.255 2.2.2.2)--2.2.2.2 is the R3 interface ip address which is connected to R2.
(Till here you will have reachable to 4.4.4.4 from R2 but not from R1 bcz you doesnt have return route.)
c- Configure the return route on R3. ( ip route 1.1.1.1 255.255.255.255 2.2.2.1)--2.2.2.1 is the R2 interface ip address connected with R3.
result:
R1#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms
R1#
R1#trace 4.4.4.4
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 1.1.1.2 0 msec 0 msec 0 msec
2 2.2.2.2 1 msec 0 msec 0 msec
HTH
Regards
Inayath
**Please do not forget to rate the post if helpfull*********
12-17-2015 01:13 AM
Sulaiman, There are lot of ways to achieve this. Please find my answeR:-
Actions:
======
R1---1.1.1.1/24----R2----2.2.2.2---R3---Lo-4.4.4.4
What I have done is i have good connectvity directly between the routes and my devices are reachable.
1- Now your question is to reach 4.4.4.4 from R1 through R2 is :-
a- Have static route from R1 to R2 ( I did : ip route 4.4.4.4 255.255.255.255 1.1.1.2) --1.1.1.2 is R2 connecting link.
b- Have a static route from R2 to R3.( ip route 4.4.4.4 255.255.255.255 2.2.2.2)--2.2.2.2 is the R3 interface ip address which is connected to R2.
(Till here you will have reachable to 4.4.4.4 from R2 but not from R1 bcz you doesnt have return route.)
c- Configure the return route on R3. ( ip route 1.1.1.1 255.255.255.255 2.2.2.1)--2.2.2.1 is the R2 interface ip address connected with R3.
result:
R1#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms
R1#
R1#trace 4.4.4.4
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 1.1.1.2 0 msec 0 msec 0 msec
2 2.2.2.2 1 msec 0 msec 0 msec
HTH
Regards
Inayath
**Please do not forget to rate the post if helpfull*********
12-17-2015 01:31 AM
Thank you so much dear. I was missing something which I got after reading your very clear and helpful response.
one more thing I need to know. Routing is about forwarding the packets? I mean as you said packets would receive on router R3 but I can't back to R1. Is there any way see this? I mean I want to just see that packets are being received on R3 but not forwarded back to R1.
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