
Routers unable to ping each other
Hi, this may sound like a silly question..
I connected 2 routers via serial.
R1# int s0/0
Ip address 1.1.1.1/30
No shut
R2# int s0/0
Ip address 1.1.1.3/24
No shut
In this scenario according to me R1 should be able to ping R2 as 1.1.1.3 is broadcast Ip for R1.
But it's not pinging.. can anyone elaborate on this.
Regards,
Sharat
Comments
Hi Sharat,
You are sending the ip directed broadcast in 1.1.1.0/30 network. So, only the valid hosts that belong to the particular network respond for the same. A broadcast address can never be the source of a packet. Therefore, your ping won't work in this case.
If you configured 1.1.1.2/24 instead of .3 and send the ping from R1, it would get the response as shown below:
R1#ping 1.1.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.3, timeout is 2 seconds:
Reply to request 0 from 1.1.1.2, 1 ms
Reply to request 1 from 1.1.1.2, 1 ms
Reply to request 2 from 1.1.1.2, 1 ms
Sending 5, 100-byte ICMP Echos to 1.1.1.3, timeout is 2 seconds:
*Mar 1 00:15:54.795: ICMP: echo reply sent, src 1.1.1.3, dst 1.1.1.1
*Mar 1 00:15:54.799: IP: tableid=0, s=1.1.1.3 (local), d=1.1.1.1 (FastEthernet0/0), routed via FIB
Yes, 1.1.1.3/24 is not a broadcast address for R2 but its a broadcast for R1. So, it could be the reason of ping failure.
Good luck