[ltp] WiFi on T42 (ifup eth1 no go, txpower is off)

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Sat, 15 Jan 2005 08:24:04 -0800 (PST)


Hello,

Thanks for all the help, morpheus!  I managed to get the WiFi interface
to talk to the WiFi router by assigning the WiFi interface a static IP
(as opposed to getting it from DHCP server).

Still, it looks like I can ping internal addresses (192.168....), but
can't get out of my network.  It looks like I'm missing a route,
perhaps somebody could confirm that.

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.0     *               255.255.255.0   U     0      0        0
eth0
192.168.0.0     *               255.255.255.0   U     0      0        0
eth1
169.254.0.0     *               255.255.0.0     U     0      0        0
eth1
default         192.168.0.1     0.0.0.0         UG    0      0        0
eth0

So I tried adding a new route/gateway for eth1 device (WiFi card):

# route add default gw 192.168.0.1 eth1

This gave me:

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.0     *               255.255.255.0   U     0      0        0
eth0
192.168.0.0     *               255.255.255.0   U     0      0        0
eth1
169.254.0.0     *               255.255.0.0     U     0      0        0
eth1
default         192.168.0.1     0.0.0.0         UG    0      0        0
eth1
default         192.168.0.1     0.0.0.0         UG    0      0        0
eth0


However, I still can't ping anything out over eth1 (WiFi)....


Can anyone see anything wrong in my routing table?


# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Intel Corp. PRO/Wireless LAN 2100 3B Mini PCI Adapter
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
DHCP_HOSTNAME=192.168.0.1
IPADDR=192.168.0.3
DOMAIN=
HWADDR=00:0c:f1:59:b4:3d
TYPE=Wireless
USERCTL=no
PEERDNS=yes
IPV6INIT=no
ESSID=
CHANNEL=1
MODE=Auto
RATE=Auto

# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0C:F1:59:B4:3D
          inet addr:192.168.0.3  Bcast:192.168.0.255 
Mask:255.255.255.0
          inet6 addr: fe80::20c:f1ff:fe59:b43d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:47 dropped:45 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:1296 (1.2 KiB)
          Interrupt:11 Base address:0x6000 Memory:c0214000-c0214fff

# /sbin/iwconfig eth1
eth1      IEEE 802.11b  ESSID:"Wireless" 
Nickname:"localhost.localdomain"
          Mode:Managed  Frequency:2.412GHz  Access Point:
00:09:5B:29:41:3F
          Bit Rate=11Mb/s   Tx-Power:off
          Retry:on   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=100/100  Signal level=-44 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:2   Missed beacon:0


Thank you,
Otis


--- morpheus <morpheus@post.harvard.edu> wrote:

> Well, with the exception of the txpower, the iwconfig status looks
> good,
> so this may be a simple IP issue.
> "Determining IP information for eth1... failed" usually means you
> couldn't find a DHCP server.
> Did you try to set an IP address manually and see if you can ping
> your
> gateway?
> 
> 
> On Wed, 2005-01-12 at 21:02 -0800, ogjunk-linuxtp@yahoo.com wrote:
> > Hello,
> > 
> > I tried turning the 'tx power' on, but got this error:
> > 
> >   # /sbin/iwconfig eth1 txpower auto
> >   Error for wireless request "Set Tx Power" (8B26) :
> >       SET failed on device eth1 ; Invalid argument.
> > 
> > Before I did this I restarted the computer, and then Kudzu kicked
> in,
> > detected my WiFi card correctly, I told it to use DHCP to get the
> IP,
> > but eth1 was not brought up, and I still can't do it manually:
> > 
> >   # ifup eth1
> > 
> >   Determining IP information for eth1... failed.
> > 
> > 
> > And now iwconfig say this:
> > 
> > # /sbin/iwconfig eth1
> > eth1  IEEE 802.11b  ESSID:"WirelessFoo"  Nickname:"ipw2100"
> >       Mode:Managed  Frequency:2.412GHz  Access Point:
> 00:09:5B:29:41:3F
> >       Bit Rate=11Mb/s   Tx-Power:off
> >       Retry:on   RTS thr:off   Fragment thr:off
> >       Power Management:off
> >       Link Quality=100/100  Signal level=-56 dBm
> >       Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
> >       Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> > 
> > 
> > Tx-Power is still off, but the AP Mac address is correct, and I
> noticed
> > that 'Signal level' changed a few times (-54/-55/-56 dBm), so this
> WiFi
> > card _is_ doing something.
> > 
> > Could something external to the card itself be the problem (e.g.
> > iptables or missing route)?
> > 
> > 
> > I feel like a dog on a leash with this ethernet cord stuck into my
> > 'mobile' laptop. :(, so any help with this would be very
> appreciated.
> > 
> > Thank you,
> > Otis
> > 
> > 
> > --- morpheus <morpheus@post.harvard.edu> wrote:
> > 
> > > Your iwconfig shows txpower is off, try turning on the radio
> with:
> > > # iwconfig eth1 txpower auto
> > > 
> > > 
> > > On Tue, 2005-01-11 at 19:48 -0800, ogjunk-linuxtp@yahoo.com
> wrote:
> > > > Hello,
> > > > 
> > > > I'm a happy new owner of T42 running Fedora Core 3, but I'm
> having
> > > > trouble bringing up the WiFi interface.  I have the Intel Corp.
> > > > PRO/Wireless LAN 2100 3B Mini wireless card, and I got the
> drivers
> > > from
> > > > 
> > > > http://ipw2200.sourceforge.net/:
> > > > 
> > > >   # lsmod | egrep 'ipw|802'
> > > >   ieee80211_crypt_wep     5120  1
> > > >   ipw2100               125124  0
> > > >   ieee80211              28228  1 ipw2100
> > > >   ieee80211_crypt         7044  2 ieee80211_crypt_wep,ieee80211
> > > > 
> > > > 
> > > > However, I can't activate/bring up this WiFi interface:
> > > > 
> > > > # ifup eth1
> > > > Error for wireless request "Set Frequency" (8B04) :
> > > > SET failed on device eth1 ; Operation not supported.
> > > > 
> > > > Determining IP information for eth1...PING 192.168.1.1
> > > (192.168.1.1)
> > > > 56(84) bytes of data.
> > > > 
> > > > --- 192.168.1.1 ping statistics ---
> > > > 4 packets transmitted, 0 received, +3 errors, 100% packet loss,
> > > time
> > > > 2999ms
> > > > , pipe 4
> > > > failed.
> > > > 
> > > > I am not sure why '192.168.1.1' is being pinged - this is not
> an IP
> > > I
> > > > use here. It's also not my router's IP address (it's
> 192.168.0.1).
> > > > 
> > > > Here is my network script for this WiFi interface:
> > > > 
> > > > # cat /etc/sysconfig/network-scripts/ifcfg-eth1
> > > > DEVICE=eth1
> > > > ONBOOT=yes
> > > > BOOTPROTO=dhcp
> > > > TYPE=Wireless
> > > > NETMASK=
> > > > DHCP_HOSTNAME=
> > > > IPADDR=
> > > > DOMAIN=
> > > > HWADDR=
> > > > USERCTL=no
> > > > PEERDNS=yes
> > > > GATEWAY=
> > > > IPV6INIT=no
> > > > ESSID=WirelessFoo
> > > > CHANNEL=1
> > > > MODE=Auto
> > > > RATE=Auto
> > > > 
> > > > # /sbin/iwconfig eth1
> > > > eth1   IEEE 802.11b  ESSID:"WirelessFoo"
> > > > Nickname:"localhost.localdomain"
> > > > Mode:Managed Frequency:2.412GHz Access Point:
> > > > 00:09:5B:29:41:3F
> > > > Bit Rate=11Mb/s   Tx-Power:off
> > > > Retry:on   RTS thr:off   Fragment thr:off
> > > > Encryption key:1234-6789-4243-4331-3142-0000-00   Security
> > > > mode:open
> > > > Power Management:off
> > > > Link Quality=99/100 Signal level=-52 dBm
> > > > Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
> > > > Tx excessive retries:0  Invalid misc:91   Missed beacon:2
> > > > 
> > > > The above tells me that the WiFi card DOES see my Access Point,
> > > because
> > > > AP's Mac address is correct. On the other hand, my wireless
> router
> > > does
> > > > not show WiFi interface's Mac address in the list of attached
> > > devices -
> > > > it only shows the Mac address of the regular ethernet NIC.
> > > > 
> > > > 
> > > > Does anyone have any idea what I need to do to get my WiFi
> > > interface up
> > > > fully?  Any help, tips, links, etc. would be very much
> appreciated.
> > > > 
> > > > Thank you.
> > > > 
> > > > Otis
> > > > 
> > > 
> > > -- 
> > > The linux-thinkpad mailing list home page is at:
> > > http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
> > > 
> > 
> 
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>