[ Next-in-Thread ]  [ Next Message ] 

Question: No success with either 10/100 Etherjet nor 3Com cards on Thinkpad 

Forum: PCMCIA Network Adapter Issues
Date: 2000, Mar 01
From: lyle borg-graham lyle

I have gotten the same "SIOCADDRT: Network is unreachable" message with both the IBM 10/100 EtherJet card and the 3Com 10/100 3CXFE575CT card. The machine is a Thinkpad 600E, running Red Hat 6.1, kernel 2.2.14, and using the pcmcia-cs-3.1.11 distribution. Apparently all the network configuration files are ok. I note some bizzare things, such as the ability to ping locally even when the card is not installed.

As perhaps a side note, at some point in this process the cardmgr started sending messages directly to the screen (i.e. "Network unreachable") during bootup, and *not* to /var/log/messages as it did before.

Thanks very much for any ideas!

Lyle

Included below are some (hopefully) useful tidbits (with the 3Com card installed):

   [root@cognilap ~]# uname -rv
   2.2.14 #8 Tue Feb 29 17:13:24 CET 2000

   [root@cognilap ~]# cardctl -V
   cardctl version 3.1.11

   [root@cognilap ~]# sh -x /etc/pcmcia/network start eth0
   + [ -r ./shared ]
   + . /etc/pcmcia/shared
   ++ [ 2 -lt 2 ]
   ++ ACTION=start
   ++ DEVICE=eth0
   + get_info eth0
   + [ -d /var/state/pcmcia ]
   ++ cat /var/state/pcmcia/scheme
   + SCHEME=
   + STAB=/var/state/pcmcia/stab
   + [ ! ]
   + SCHEME=default
   + grep_stab eth0
   + local CLASS DEV
   + read SOCKET CLASS DRIVER INSTANCE DEV MAJOR MINOR
   + [ eth0 = ]
   + read SOCKET CLASS DRIVER INSTANCE DEV MAJOR MINOR
   + [ eth0 = Fast ]
   + read SOCKET CLASS DRIVER INSTANCE DEV MAJOR MINOR
   + [ eth0 = eth0 ]
   + return 0
   ++ /sbin/ifconfig eth0
   ++ sed -n -e s/.*addr \([^ ]*\) */\1/p
   + HWADDR=00:00:86:51:E6:E4
   + ADDRESS=default,1,0,00:00:86:51:E6:E4
   + . /etc/pcmcia/network.opts
   ++ [ -f /etc/sysconfig/network-scripts/ifcfg-eth0 ]
   ++ BOOTP=n
   ++ IPADDR=128.122.146.142
   ++ NETWORK=128.122.146.0
   ++ NETMASK=255.255.255.0
   ++ BROADCAST=128.122.255.255
   ++ GATEWAY=128.122.146.1
   ++ DOMAIN=cns.nyu.edu
   + RESOLV=/etc/resolv.conf
   + test
   + is_true
   + [ = y -o = Y -o = yes -o = YES ]
   + is_true n
   + [ n = y -o n = Y -o n = yes -o n = YES ]
   + is_true
   + [ = y -o = Y -o = yes -o = YES ]
   + [ 128.122.146.142 ]
   + BC=broadcast 128.122.255.255
   + /sbin/ifconfig eth0 up 128.122.146.142 netmask 255.255.255.0 broadcast 128.122.255.255
   + [ 128.122.146.0 ]
   + /sbin/ifuser eth0 128.122.146.0
   + /sbin/route add -net 128.122.146.0 netmask 255.255.255.0 dev eth0
   + test 128.122.146.1
   + /sbin/route add default gw 128.122.146.1 metric 1
   SIOCADDRT: File exists
   + [ cns.nyu.edu ]
   + echo # eth0 begin
   + test cns.nyu.edu
   + echo domain cns.nyu.edu
   + test
   + echo # eth0 end
   + sed -e /# eth0 begin/,/# eth0 end/d /etc/resolv.conf
   + mv /etc/resolv.conf.N /etc/resolv.conf
   + [ ]
   + [ ]
   + start_fn eth0
   + /sbin/ifup eth0
   SIOCADDRT: Network is unreachable
   + exit 0


Now, with the cable *unplugged* (128.122.154.50 is another machine):

   [root@cognilap ~]# ping 128.122.154.50
   PING 128.122.154.50 (128.122.154.50) from 128.122.154.50 : 56(84) bytes of data.
   64 bytes from 128.122.154.50: icmp_seq=0 ttl=255 time=0.1 ms
   64 bytes from 128.122.154.50: icmp_seq=1 ttl=255 time=0.1 ms
   64 bytes from 128.122.154.50: icmp_seq=2 ttl=255 time=0.1 ms
   64 bytes from 128.122.154.50: icmp_seq=3 ttl=255 time=0.0 ms

   --- 128.122.154.50 ping statistics ---
   4 packets transmitted, 4 packets received, 0% packet loss
   round-trip min/avg/max = 0.0/0.0/0.1 ms



In the file /etc/pcmcia/network.opts:

       if [ -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] ; then
           start_fn () {
               /sbin/ifup $1
           }
           stop_fn () {
               /sbin/ifdown $1
           }
       fi



       case "$ADDRESS" in
       *,*,*,*)

           BOOTP="n"
           IPADDR="128.122.146.142"
           NETWORK="128.122.146.0"
           NETMASK="255.255.255.0"
   BROADCAST="128.122.255.255"
           GATEWAY="128.122.146.1"
           DOMAIN="cns.nyu.edu"

           ;;
       esac


In the file /etc/pcmcia/config.opts:

#
# Local PCMCIA Configuration File
#
# System resources available for PCMCIA devices
#
include port 0x100-0x4ff, port 0x1000-0x17ff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
#
# Extra port range for IBM Token Ring
#
include port 0xa00-0xaff
#
# Resources we should not use, even if they appear to be available
#
# First built-in serial port
exclude irq 4
# Second built-in serial port
#exclude irq 3
# First built-in parallel port
exclude irq 7
#
# Additional stuff from the PCMCIA-HOWTO
exclude port 0x230-0x233
exclude irq 5
exclude port 0x2f8-0x2ff

# Modifications from A. Krumeich
include port 0x600-0x6ff
include irq 11

# Examples of options for loadable modules
#
# To fix sluggish network with IBM ethernet adapter...
#module "pcnet_cs" opts "mem_speed=600"
#
# Options for Xircom Netwave driver...
#module "netwave_cs" opts "domain=0x100 scramble_key=0x0"
#
# Options for IBM Token Ring adapters
#module "ibmtr_cs" opts "mmiobase=0xd0000 srambase=0xd4000"

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ 1 ] 

More: Addendum

Re: Question: No success with either 10/100 Etherjet nor 3Com cards on Thinkpad (lyle borg-graham)
Date: 2000, Mar 01
From: lyle borg-graham lyle

I should add that I get the "good" two high beeps when the 3Com card is inserted. Also, it works under Windows.

Lyle

This is a configuration error

Re: Question: No success with either 10/100 Etherjet nor 3Com cards on Thinkpad (lyle borg-graham)
Date: 2000, Mar 01
From: David Hinds <dhinds@pcmcia.sourceforge.org>

"Network is unreachable" indicates a network configuration error.

>    ++ IPADDR=128.122.146.142
>    ++ NETWORK=128.122.146.0
>    ++ NETMASK=255.255.255.0
>    ++ BROADCAST=128.122.255.255
>    ++ GATEWAY=128.122.146.1

These settings are inconsistent.  Assuming your NETWORK and NETMASK
are correct, you should have BROADCAST=128.122.146.255.

>    + start_fn eth0
>    + /sbin/ifup eth0
>    SIOCADDRT: Network is unreachable

Your network.opts file is odd.  You should either specify all your
network settings in network.opts (as above), or replace the entire
file with just the code from the PCMCIA-HOWTO to use ifup/ifdown to
configure the network.  You should not do both: what happens is the
PCMCIA script configures eth0, then does the "ifup eth0", which
re-configures the interface using the Red Hat netconf data.

> Now, with the cable *unplugged* (128.122.154.50 is another machine):
> 
>    [ root@cognilap ~]# ping 128.122.154.50
>    PING 128.122.154.50 (128.122.154.50) from 128.122.154.50 : 56(84)
> bytes of data.

128.122.154.50 may belong to another machine, but you have also
configured this machine to have the same IP address.  It isn't the IP
address you gave in network.opts, but I'll bet it is the address that
shows up if you run "netconf".  You are pinging yourself; the kernel
knows that the packets don't have to go over the wire, so it works
even when the cable is unplugged.

-- Dave

Progress, but...

Re: This is a configuration error (David Hinds)
Date: 2000, Mar 01
From: lyle borg-graham lyle

> "Network is unreachable" indicates a network configuration error.

> These settings are inconsistent.  Assuming your NETWORK and NETMASK
> are correct, you should have BROADCAST=128.122.146.255.

> Your network.opts file is odd. You should either specify all your network settings in network.opts (as above), or replace the entire file with just the code from the

> PCMCIA-HOWTO to use ifup/ifdown to configure the network.

Ok, followed these suggestions, and now no "Network unreachable" message. Thanks!

However, I still can't seem to access the network.

>> Now, with the cable *unplugged* (128.122.154.50 is another machine):
>> 
>>    [ root@cognilap ~]# ping 128.122.154.50
>>    PING 128.122.154.50 (128.122.154.50) from 128.122.154.50 : 56(84)
>> bytes of data.

> 128.122.154.50 may belong to another machine, but you have also
> configured this machine to have the same IP address.  It isn't the IP
> address you gave in network.opts, but I'll bet it is the address that
> shows up if you run "netconf".  You are pinging yourself; the kernel
> knows that the packets don't have to go over the wire, so it works
> even when the cable is unplugged.

Well, the only place that 128.122.154.50 shows up is in /etc/hosts. The above behaviour still occurs with another IP that is *not* in /etc/hosts, in fact as long as the IP has 128.122.*.*. And, if I use a hostname, I get:

 [ root@cognilap ~]# ping calaf.cns.nyu.edu
 ping: unknown host calaf.cns.nyu.edu

Lyle

No success with either 10/100 Etherjet nor 3Com cards on Thinkpad


[ Add Message ]  to: "No success with either 10/100 Etherjet nor 3Com cards on Thinkpad"

[ Members ]  [ Subscribe ]  [ Admin Mode ] 
[ Show Frames ]  [ Help for HyperNews at pcmcia-cs.sourceforge.net 1.10 ]