You are not logged in.

#1 2009-11-25 18:21:46

tsr-nc
Member
Registered: 2009-02-07
Posts: 40

network script stoped working

My Network script (the one in /etc/rc.d/network stopped working but manually using the if/iw config tools works.

$ sudo /etc/rc.d/network start
:: Starting Network                                                      [BUSY]  
> Could not associate wlan0 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security 
SIOCADDRT: No such process

rc.conf

eth0="dhcp"
eth1="dhcp"
wlan0="dhcp"
wlan_wlan0="wlan0 essid dd-wrt" # Unencrypted
INTERFACES=(!eth0 !eth1 wlan0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

manually

$ sudo ifconfig wlan0 up
$ sudo iwconfig wlan0 essid dd-wrt
$ sudo dhcpcd wlan0
dhcpcd: version 5.1.3 starting
dhcpcd: wlan0: broadcasting for a lease
dhcpcd: wlan0: offered 192.168.1.109 from 192.168.1.1
dhcpcd: wlan0: acknowledged 192.168.1.109 from 192.168.1.1
dhcpcd: wlan0: checking for 192.168.1.109
dhcpcd: wlan0: leased 192.168.1.109 for 86400 seconds
dhcpcd: forking to background

Offline

#2 2009-11-25 21:19:17

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: network script stoped working

have you followed the wiki on setting up the network configs ?

because you should be using either netcfg or then the INTERFACES=(!eth0 !eth1 wlan0) array would not be this (at least I think they should be all ethernet-only)

I personally use netcfg (i mean, the daemons do) and its quite simple.


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#3 2009-11-25 23:39:21

tsr-nc
Member
Registered: 2009-02-07
Posts: 40

Re: network script stoped working

I have been using it this way for a year without problem. netcfg might be my next step but i only have 1 wifi network to connect to so i never needed netcfg before.

Offline

#4 2009-11-26 19:37:52

bds
Member
Registered: 2004-02-27
Posts: 47

Re: network script stoped working

If you are using dhcp, you don't need to set a default gateway in rc.conf

Try

ROUTES=(!gateway)

Offline

#5 2009-11-28 22:28:24

tsr-nc
Member
Registered: 2009-02-07
Posts: 40

Re: network script stoped working

bds wrote:

If you are using dhcp, you don't need to set a default gateway in rc.conf

Try

ROUTES=(!gateway)

no change

Offline

#6 2009-11-29 14:22:59

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: network script stoped working

And what happens if you do increase the value of "WIRELESS_TIMEOUT" ?

You can add this variable to your rc.conf file (with something like "WIRELESS_TIMEOUT=4") or by editing /etc/rc.d/network.

EDIT: alternatively, you could put this value in the /etc/conf.d/wireless file, which might be "cleaner".

Last edited by hexanol (2009-11-29 14:27:18)

Offline

#7 2009-11-30 01:18:28

tsr-nc
Member
Registered: 2009-02-07
Posts: 40

Re: network script stoped working

yes that worked i really should have check that first thank you

Offline

Board footer

Powered by FluxBB