View previous topic :: View next topic |
Author |
Message |
Musashi178 n00b
Joined: 21 Jun 2004 Posts: 10 Location: Stuttgart Germany
|
Posted: Wed Nov 30, 2005 8:07 am Post subject: wlan routing problems |
|
|
Hi,
I'm having strange problems setting up my wlan connection via an longshine usb dongle. I'm using the zd1211_mod kernel module (which fit'S the used wlan chip) and have set up my connection in /etc/conf.d/wireless as usual. It's no problem to scan the area and find my wlan, and if I'm connecting to it, I don't get any error messages. But connecting to any network pc always fails.
I looked around for some reason, and found one, but can't really explain it. If my wlan isn't startet and I call 'route' it works fine and only shows me my loopback device. But after starting my wlan calling 'route' just hangs... The reason seems to be a hostname that cannot be resolved, so I tried 'route -n'. This shows me the following, which seems to be okay.
Code: |
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
|
After playing around, I found calling 'route del *' solves that problem... I get the error message 'home: unknown host' and after that I can call 'route' and if shows me the routing table with resolved hostnames.
Code: |
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
|
But this is exactly the same routing table as above (I checked it using 'route -n'). I don't know what happened, but connecting to any network pc now also works fine (as you can see right now =) ).
This is annoying, and what's worse, this can only be done once during the of gentoo. If I restart the wlan connection, the 'route' problem disappears, but calling 'route del *' doesn't solve the problem anymore. I need to restart.
So does anyone know what happens here?! Because I don't know what to do.
Thanks for your help,
Marco |
|
Back to top |
|
|
loisl Apprentice
Joined: 18 Apr 2004 Posts: 167 Location: Egelsbach
|
Posted: Fri Dec 02, 2005 1:36 pm Post subject: |
|
|
Hai,
it would have been helpfull if You had provided some config params as well ...
So I assume Your IP addresses are not hard wired, and You are using DHCP (dhcpcd) in order to get Your propper IP setup for Your wireless lan.
My wireless config looks like follows ... (I use wpa_supplicant in order to connect to the network, but the param's I am refering to are independant from this ... it should work with iwconfig as well)
/etc/conf.d/domainname Code: | # When setting up resolv.conf, what should take precedence?
# If you wish to always override DHCP/whatever, set this to 1.
OVERRIDE=0
|
/etc/conf.d/net Code: | config_wlan0=( "dhcp" )
dhcpcd_wlan0="-t 10 -D -H"
|
And /etc/init.d/net.wlan0 is soft linked to /etc/init.d/net.lo.
This configuration is sufficient to get an IP address and hostname (-H) and domainname (-D) via the DHCP server running on my wireless router. The DHCP parameters -D and -H have nothing to do with Your problem, they are just convenient for my setup.
Cheers,
Loisl |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|