Re: problem pinging my own IP address
On Mon, 28 Nov 2005 13:27:38 -0500
Shawn Lamson <madzimambo@optonline.net> wrote:
> Hello All,
>
> I am having a problem pinging my own IP address. I am on a cable modem (DHCP).
>
> Kernel 2.6.8-2-386
>
>
> below is netstat, a ping of 2 addresses in my range, followed by a ping of my address, followed by an strace of pinging my address
>
>
> root@mishmar:~# netstat -nr
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 67.85.176.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
> 0.0.0.0 67.85.176.1 0.0.0.0 UG 0 0 0 eth0
>
>
> root@mishmar:~# ping -c 1 67.85.190.178
> PING 67.85.190.178 (67.85.190.178) 56(84) bytes of data.
> 64 bytes from 67.85.190.178: icmp_seq=1 ttl=63 time=4248 ms
>
> --- 67.85.190.178 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 4248.235/4248.235/4248.235/0.000 ms
>
> root@mishmar:~# ping -c 1 67.85.190.182
> PING 67.85.190.182 (67.85.190.182) 56(84) bytes of data.
> 64 bytes from 67.85.190.182: icmp_seq=1 ttl=126 time=4308 ms
>
> --- 67.85.190.182 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 4308.924/4308.924/4308.924/0.000 ms
>
> root@mishmar:~# ping -c 1 67.85.190.181
> connect: Invalid argument
>
>
> root@mishmar:~# strace ping 67.85.190.181
> execve("/bin/ping", ["ping", "67.85.190.181"], [/* 13 vars */]) = 0
> uname({sys="Linux", node="mishmar.hopto.org", ...}) = 0
> brk(0) = 0x8063000
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
> open("/etc/ld.so.cache", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=71980, ...}) = 0
> old_mmap(NULL, 71980, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
> close(3) = 0
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
> open("/lib/tls/libresolv.so.2", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200$\0"..., 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=67364, ...}) = 0
> old_mmap(NULL, 75880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4002a000
> old_mmap(0x40039000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x40039000
> old_mmap(0x4003b000, 6248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003b000
> close(3) = 0
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
> open("/lib/tls/libc.so.6", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320O\1"..., 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1266800, ...}) = 0
> old_mmap(NULL, 1272764, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4003d000
> old_mmap(0x4016a000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12d000) = 0x4016a000
> old_mmap(0x40172000, 7100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40172000
> close(3) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40174000
> mprotect(0x4016a000, 20480, PROT_READ) = 0
> set_thread_area({entry_number:-1 -> 6, base_addr:0x401746c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
> munmap(0x40018000, 71980) = 0
> socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
> getuid32() = 0
> setuid32(0) = 0
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
> connect(4, {sa_family=AF_INET, sin_port=htons(1025), sin_addr=inet_addr("67.85.190.181")}, 16) = -1 EINVAL (Invalid argument)
> dup(2) = 5
> fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
> brk(0) = 0x8063000
> brk(0x8084000) = 0x8084000
> fstat64(5, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
> _llseek(5, 0, 0xbffff6f8, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> write(5, "connect: Invalid argument\n", 26connect: Invalid argument
> ) = 26
> close(5) = 0
> munmap(0x40018000, 4096) = 0
> exit_group(2) = ?
>
>
> Please let me know if more info is needed.
>
> My box is pingable from other (remote) systems fine, also is pingable on the local network. I can ping it and ssh into it, etc. but not from itself.
>
> I did try searching google and the debian-list-archives but didn't see much on this.
> I did find that the errors to ld.so.nohwcap and ld.so.preload are meaningless.
>
> Any help appreciated! Thanks.
>
> ----------
> Shawn Lamson
> madzimambo@optonline.net
>
>
I did find out what was causing my problem... no loopback device was setup...
of course after doing #ifconfig lo 127.0.01 up
i was fine... also added lines to /etc/network/interfaces
auto lo
iface lo inet loopback
i am re-posting this in case someone searches for similar errors... maybe save them some time...
i'll also file a bug (against what i am not sure) to see if "connect: invalid argument" is a proper error response from ping.
happy *nixing
----------
Shawn Lamson
madzimambo@optonline.net
Reply to: