ping is being stupid ?

Herbert Rosmanith (herp@wildsau.idv.uni-linz.ac.at)
Thu, 5 Sep 1996 09:30:44 +0200 (MET DST)


root@ferkel # ifconfig eth0 192.168.1.1 netmask 255.255.0.0
root@ferkel # route add -net 192.168.0.0 netmask 255.255.0.0
root@ferkel # !ping
ping 192.186.1.2
PING 192.186.1.2 (192.186.1.2): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.186.1.2 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 192.186.1.2 64 chars, ret=-1

--- 192.186.1.2 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
root@ferkel # route -n
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
192.168.0.0 * 255.255.0.0 U 1500 0 3 eth0
127.0.0.0 * 255.0.0.0 U 3584 0 4 lo
root@ferkel #

... BUT !

root@ferkel # !tel
telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.

Linux 2.0.0 (mcp.bsz-traun.ac.at) (ttyp0)

login:

now,*is* the network unreachable or not ? who is right, ping or telnet ?

I am running a 2.0.17 kernel

/erp