[ltp] WiFi on T42 (possibly route problem)

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Sat, 15 Jan 2005 11:06:05 -0800 (PST)


Hello,

--- Matthias Posseldt <matthi@gmx.li> wrote:

> On Saturday 15 January 2005 17:24, ogjunk-linuxtp@yahoo.com wrote:
> > # 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)....
> 
> Why do you have IPs from the same subnet assigned to eth0 and eth1?

Are you referring to the following?

192.168.0.0     *               255.255.255.0   U     0      0        0
eth1
192.168.0.0     *               255.255.255.0   U     0      0        0
eth0

Don't I need both for when the computer is both plugged into the
network, as well as using WiFi card?  Otherwise I'd have to manually
add routes for different setups (e.g. WiFi at home, but no wired to the
network at work).  I'm guessing, not sure about the above.

> That 
> likely causes problems (*). To reach other computers via eth1 and the
> 
> default route, try to remove the route from eth0.


Tried deleting...but I likely just have the del command wrong:

# route del 192.168.0.0 eth0
SIOCDELRT: No such process

> Regards,
> Matthias
> 
> (*) IMO the network layer always sends out network packages for the 
> 192.168.0.* net via eth0. To just test the wifi connection, try to 
> remove eth0 completely ("/sbin/ifconfig eth0 down") and route all 
> traffic via eth1.

I did take eth0 down, but then the DNS lookups stopped working.  But I
don't think I need/want to take eth0 down, especially just to test
WiFi, which I think I can just do by specifying the WiFi interface, for
example with ping:

# ping www.yahoo.com -I eth1
PING www.yahoo.akadns.net (68.142.226.51) from 192.168.0.3 eth1: 56(84)
bytes of data.
>From 192.168.0.3 icmp_seq=1 Destination Host Unreachable
>From 192.168.0.3 icmp_seq=2 Destination Host Unreachable
>From 192.168.0.3 icmp_seq=3 Destination Host Unreachable

I appreciate any help with tis. Thanks!
Otis