[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ping broken



hi,

have a problem that just does not make sense..

i have 2 machines both running debian GNU/Linux potato using the 192.168.0.* IP addresses accessing the internet via a mac running a macos ip masq utility (not the ideal setup but I do not want to buy another modem right now) this usually works just fine and i have never had problems with anything standard.

but just lately (not sure exactly when it started) ping no longer works, for example i can connect to ftp.debian.org and I can do a traceroute that gets all the way to ftp.debian.org but if i try to ping ftp.debian.org or any other host for that matter outside my private network i get 100% packet loss.

I have not changed anything on the gateway software and ping did used to work, could it still be broken? or is there something else i should check?

[eb@plato eb]$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:DA:1F:23:4A
          inet addr:192.168.0.4  Bcast:192.168.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:741854 errors:0 dropped:0 overruns:9 frame:0
          TX packets:807288 errors:0 dropped:0 overruns:0 carrier:0
          collisions:69476

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:24864 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24864 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0

[eb@plato eb]$ /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    1      0        0 eth0

[eb@plato eb]$ cat /etc/init.d/network
#! /bin/sh

/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

IPADDR=192.168.0.4
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.0
GATEWAY=192.168.0.1

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
[ "${GATEWAY}" ] && /sbin/route add default gw ${GATEWAY} metric 1

[eb@plato eb]$ ping -c 2 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=1.2 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.3 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.2/1.2/1.3 ms

[eb@plato eb]$ ping -c 2 ftp.debian.org
PING ftp.debian.org (207.69.194.216): 56 data bytes

--- ftp.debian.org ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss

[eb@plato eb]$ /usr/sbin/traceroute ftp.debian.org
traceroute to ftp.debian.org (207.69.194.216), 30 hops max, 38 byte packets
 1  socrates.localdomain.local (192.168.0.1)  0.488 ms  0.422 ms  0.356 ms
 2  pm23.nwc.alaska.net (209.112.154.34)  104.313 ms  97.303 ms  96.363 ms
 3  209.112.154.62 (209.112.154.62)  97.409 ms  94.298 ms  93.438 ms
4 5-s2-cr1.mea.alaska.net (209.112.129.201) 134.583 ms 155.095 ms 141.452 ms 5 agis-alaska2.waseacr01.agis.net (206.185.244.49) 144.594 ms 139.364 ms 145.711 ms
 6  206.84.239.89 (206.84.239.89)  156.996 ms  159.941 ms  156.930 ms
7 ga0110.sanjose2.agis.net (206.84.239.86) 174.356 ms 159.659 ms 156.779 ms
 8  mae-west.hlc.net (198.32.136.30)  209.756 ms  190.658 ms  183.809 ms
9 H3-1-0.irv-core.gw.eni.net (155.229.120.30) 214.431 ms 190.817 ms 193.897 ms 10 fe0-1-0.irv101.gw.eni.net (155.229.120.114) 172.324 ms 169.164 ms 182.391 ms 11 ATM10-0-2.atl-core.gw.eni.net (155.229.120.25) 263.613 ms 264.304 ms 298.041 ms
12  155.229.44.66 (155.229.44.66)  357.639 ms  235.323 ms  263.055 ms
13 cisco-2-f9-1.atl2.mindspring.net (207.69.223.130) 244.061 ms 233.891 ms 243.040 ms
14  saens.debian.org (207.69.194.216)  263.644 ms  253.141 ms  333.025 ms

any ideas?

and yes:
[eb@plato eb]$ ls -l `which ping`
-rwsr-xr-x    1 root     root        15280 Dec 15 16:47 /bin/ping
Ethan


Reply to: