ping localhost -> OK, ping myhost -> dies

ping localhost -> OK, ping myhost -> dies

Post by Ed Geig » Sat, 01 Mar 1997 04:00:00



My problem is with kernel 2.1.26, NetKit.09, net-tools-1.32-alpha

I am using a NE-2000 clone card

I can ping localhost (127.0.0.1) but cannot ping myhost (253.253.154.32)

The file rc.inet1 is originally from Slakware with slight modifications

#!/bin/sh
#
# rc.inet1      This shell script boots up the base INET system.
#
# Version:      @(#)/etc/rc.d/rc.inet1  1.01    05/27/93
#

HOSTNAME=`hostname`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
# /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the
# eth0 interface. If you're only using loopback or SLIP, don't include the
# rest of the lines in this file.

# Edit for your setup.
IPADDR="253.253.154.32"  # REPLACE with YOUR IP address!
NETMASK="255.255.255.0"  # REPLACE with YOUR netmask!
NETWORK="253.253.154.0"  # REPLACE with YOUR network address!
BROADCAST="253.253.154.255"  # REPLACE with YOUR broadcast address, if you
                              # have one. If not, leave blank and edit below.
GATEWAY="253.253.154.1"  # REPLACE with YOUR gateway address!

# Uncomment the line below to initialize the ethernet device.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

# Uncomment these to set up your IP routing table.
#/sbin/route add -net ${NETWORK} netmask ${NETMASK} dev eth0
/sbin/route add default gw ${GATEWAY} metric 1

# End of rc.inet1

The route add for the network that is direct for the interface is
removed because it appears that ifconfig automatically sets up a
route to the default network for that interface.

cat /proc/net/route

Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask
MTU     Window  IRTT    TOS     Class

eth0    009AFDFD        00000000        40010001        0       0       32767
00FFFFFF        1500    0       300     00      fe

eth0    00000000        019AFDFD        0003    0       0       1       00000000
1500    0       300     00      fe

cat /proc/net/rt_local

Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask
MTU     Window  IRTT    TOS     Class

lo      FFFFFF7F        00000000        90010001        0       0       32767
FFFFFFFF        3584    0       300     00      ff

eth0    FF9AFDFD        00000000        90010001        0       0       32767
FFFFFFFF        1500    0       300     00      ff

lo      0000007F        00000000        90010001        0       0       32767
FFFFFFFF        3584    0       300     00      ff

eth0    209AFDFD        00000000        C0010001        0       0       32767
FFFFFFFF        1500    0       300     00      ff

eth0    209AFDFD        00000000        90010001        0       0       32767
FFFFFFFF        1500    0       300     00      ff

lo      0100007F        00000000        C0010001        0       0       32767
FFFFFFFF        3584    0       300     00      ff

eth0    009AFDFD        00000000        90010001        0       0       32767
FFFFFFFF        1500    0       300     00      ff

lo      0000007F        00000000        C0010001        0       0       32767
000000FF        3584    0       300     00      ff

ifconfig

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:0 errors:3158 dropped:0 overruns:0
          TX packets:0 errors:0 dropped:3158 overruns:0

eth0      Link encap:10Mbps Ethernet  HWaddr 00:C0:D1:57:29:84
          inet addr:253.253.154.32  Bcast:253.253.154.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:0 errors:1260 dropped:21 overruns:0
          Interrupt:10 Base address:0x300

route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
mynet           *               255.255.255.0   U     32767  0        0 eth0
default         253.253.154.1   0.0.0.0         UG    1      0        0 eth0

route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
253.253.154.0   0.0.0.0         255.255.255.0   U     32767  0        0 eth0
0.0.0.0         253.253.154.1   0.0.0.0         UG    1      0        0 eth0

ping localhost

PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.2 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.3 ms

--- localhost ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.2/0.3 ms

ping myhost

PING myhost (253.253.154.32): 56 data bytes
ping: sendto: Invalid argument
ping: wrote myhost 64 chars, ret=-1
ping: sendto: Invalid argument
ping: wrote myhost 64 chars, ret=-1
ping: sendto: Invalid argument
ping: wrote myhost 64 chars, ret=-1

--- myhost ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

Kernel .config file follows for 2.1.26

#
# Automatically generated make config: don't edit
#

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
# CONFIG_KERNELD is not set

#
# General setup
#
# CONFIG_MATH_EMULATION is not set
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_MCA is not set
CONFIG_SYSVIPC=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
# CONFIG_M386 is not set
# CONFIG_M486 is not set
CONFIG_M586=y
# CONFIG_M686 is not set
# CONFIG_VIDEO_SELECT is not set

#
# Floppy, IDE, and other block devices
#
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_TRITON=y
# CONFIG_IDE_CHIPSETS is not set

#
# Additional Block Devices
#
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_MD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_XD is not set
# CONFIG_BLK_DEV_EZ is not set
# CONFIG_BLK_DEV_HD is not set

#
# Networking options
#
# CONFIG_NETLINK is not set
# CONFIG_FIREWALL is not set
# CONFIG_NET_ALIAS is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ACCT is not set
# CONFIG_IP_ROUTER is not set
# CONFIG_NET_IPIP is not set

#
# (it is safe to leave these untouched)
#
# CONFIG_INET_PCTCP is not set
# CONFIG_INET_RARP is not set
CONFIG_PATH_MTU_DISCOVERY=y
CONFIG_IP_NOSR=y
# CONFIG_SKB_LARGE is not set

#
#  
#
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_AX25 is not set

#
# SCSI support
#
# CONFIG_SCSI is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
# CONFIG_ARCNET is not set
CONFIG_DUMMY=y
# CONFIG_EQUALIZER is not set
CONFIG_NET_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
CONFIG_NET_ISA=y
# CONFIG_E2100 is not set
# CONFIG_DEPCA is not set
# CONFIG_EWRK3 is not set
# CONFIG_EEXPRESS is not set
# CONFIG_HPLAN_PLUS is not set
# CONFIG_HPLAN is not set
# CONFIG_HP100 is not set
CONFIG_NE2000=y
# CONFIG_NI52 is not set
# CONFIG_NI65 is not set
# CONFIG_SK_G16 is not set
# CONFIG_NET_EISA is not set
# CONFIG_NET_POCKET is not set
# CONFIG_FDDI is not set
# CONFIG_DLCI is not set
# CONFIG_PLIP is not set
CONFIG_PPP=y

#
# CCP compressors for PPP are only built as modules.
#
# CONFIG_NET_RADIO is not set
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y
# CONFIG_TR is not set
# CONFIG_LAPBETHER is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# CD-ROM drivers (not for SCSI or IDE/ATAPI drives)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Filesystems
#
# CONFIG_QUOTA is not set
CONFIG_MINIX_FS=y
CONFIG_EXT2_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
# CONFIG_UMSDOS_FS is not set
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
# CONFIG_ROOT_NFS is not set
# CONFIG_SMB_FS is not set
CONFIG_ISO9660_FS=y
# CONFIG_HPFS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_UFS_FS is not set

#
# Character devices
#
CONFIG_SERIAL=y
# CONFIG_DIGI is not set
# CONFIG_CYCLADES is not set
# CONFIG_STALDRV is not set
# CONFIG_RISCOM8 is not set
# CONFIG_ESPSERIAL is not set
CONFIG_PRINTER=y
CONFIG_MOUSE=y
# CONFIG_ATIXL_BUSMOUSE is not set
# CONFIG_BUSMOUSE is not set
# CONFIG_MS_BUSMOUSE is not set
# CONFIG_PSMOUSE is not set
# CONFIG_UMISC is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_FTAPE is not set
# CONFIG_APM is not set
# CONFIG_WATCHDOG is not set
# CONFIG_RTC is not set

#
# Sound
#
# CONFIG_SOUND is not set

#
# Kernel hacking
#
# CONFIG_PROFILE is not set

Thanks in advance.

Ed Geiger, gei...@usit.net
Ed Geiger - KD4AB - Dayton, TN - gei...@usit.net

 
 
 

ping localhost -> OK, ping myhost -> dies

Post by Ed Geig » Sat, 01 Mar 1997 04:00:00



>My problem is with kernel 2.1.26, NetKit.09, net-tools-1.32-alpha

It appears that all is well when I use kernel 2.0.29.  Did TCP/IP break
somewhere in the 2.1.x development effort?



 
 
 

ping localhost -> OK, ping myhost -> dies

Post by Systems Engine » Sat, 08 Mar 1997 04:00:00




> >My problem is with kernel 2.1.26, NetKit.09, net-tools-1.32-alpha

> It appears that all is well when I use kernel 2.0.29.  Did TCP/IP break
> somewhere in the 2.1.x development effort?



It works fine on my 2.0.29 kernel....

--
Derek Kwan
Systems Engineer
S://Scape Communication Inc.
141 Adelaide Street West, Suite 400
Toronto, Ontario, Canada M5H 3L5
Tel: (416) 369-9966 ext.228
Fax: (416) 369-9901

 
 
 

1. A <= ping => B => OK A <= TCP => B => FAILS

Hi ng,

i've two linux systems (A and B).
I can successfully ping  A from B and vice versa.

A simple TCP-Connection from A to B is failing.
I'm using the following TCP SimpleServer and SimpleClient Examples:
http://homepage.uibk.ac.at/~c703350/csockets/simpleclient.c
http://homepage.uibk.ac.at/~c703350/csockets/simpleserver.c

The TCP/IP stack should be ok, since a TCP connection with this program
is working from A<=>A and B<=>B and from A<=>C

Does anyone has a hint what could be the problem?

regards,
Stefan

2. Xfree86 3.3.6 and ATI All in Wonder 128 Problems

3. ping <ipv6-host> does not work, ping <ipv6-ip> does

4. SIOCADDRT: Invalid Argument ?

5. no ping: Linux <-> SCO, ping W95 <-> SCO @$#%@#!!

6. StarOffice 5.1 Install Problems

7. fixing localhost -> DNS Server -> NAMED -> NDC -> NOTFOUND

8. Sockets, port and loop-back ?

9. Win2000 <--> RH 6.0. PING/No PING

10. ping localhost fails; ping 127.0.0.1 works

11. Can ping "localhost" but can't ping my own IP...why?

12. pinging localhost (was: ping problems)

13. <><><> MOUNTING EXTENDED PARTITION <><><>