Ping loopback

sankar.84 asked 2 years ago

Let me explain the topology first.
I have 2 routers directly connected named R1 and R2.
Please see below for the config of the same. I have not configured ip address on f0/0. I made it as no shut and also configured the default route with exit interface f0/0. I'm not able to ping from R1 to 2.2.2.2. I understood that i need ip address for f0/0 on both the routers. Where this address come into picture while pinging from R1 to 2.2.2.2?

R1
===
conf t
int f0/0
no shut
exit
int l0
ip add 1.1.1.1 255.255.255.255
exit
ip route 0.0.0.0 0.0.0.0 f0/0

R2
====
conf t
int f0/0
no shut
exit
int l0
ip add 2.2.2.2 255.255.255.255
exit
ip route 0.0.0.0 0.0.0.0 f0/0

Please help me in addressing this issue.

1 Answers
wimiadmin Staff answered 2 years ago

You assigned each router its own IP block. 1.1.1.1 and 2.2.2.2 each with a subnet of 255.255.255.255. You won't be able to ping back and forth.

If R1 were 1.1.1.1/255.0.0.0 and R2 were 1.2.2.2/255.0.0.0 then you would be able to ping back and forth. Each router would be separate from each other but with the subnet being 255.0.0.0, it means they'll be part of the same network.

Not sure if this really answers your question.

What are you trying to accomplish?

Perhaps telling us what you're trying to do might enable us to give you better assistance.

Know the answer? Login or sign up for an account to answer this question.
Sign Up