You are not logged in.

#1 2007-11-22 22:04:48

nephish99
Member
Registered: 2007-09-01
Posts: 85

wireless working, but not working very well.

Lo there all,

i followed the wiki and some threads here in the forums to set up a pci wireless card for my kids arch box. It is working, but could use some improvement.

First off, it is an rt61 and the module that loads for it is the rt61pci. Cool enough. To get the thing connected after a boot, i have to put this in the terminal.

iwconfig wlan0 up
iwlist wlan0 scan
iwconfig wlan0 essid myessid

then i am on line, no problem...
it connects by dhcp ( what i have in rc.conf )
but.... it drops the connection every once in a while. .

It's kinda random... after a long while or a short while, it just drops off. i think it has connected again,, but mostly it is off for good..

So that is one question... what do i do there ?

next.. .what do i put in rc.conf to not have to type stuff in the terminal every boot ?

thanks

Offline

#2 2007-11-22 23:11:07

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: wireless working, but not working very well.

What is the output of "iwpriv wlan0"?

Offline

#3 2007-11-23 01:18:04

nephish99
Member
Registered: 2007-09-01
Posts: 85

Re: wireless working, but not working very well.

ok here is what i got.

param (8BE0) : set   2 int & get 0
get_param (8BE1) : set 1 int & get 1 int


thanks

Offline

#4 2007-11-23 03:55:58

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: wireless working, but not working very well.

next.. .what do i put in rc.conf to not have to type stuff in the terminal every boot ?

You can place those commands in /etc/rc.local
This file is sourced during each boot.  You might want to place a "sleep 3 &" after each command if it takes time to complete each one.

I'm not sure about your irregular loss of connection; I was hoping the output of iwpriv would send me in the right direction.  What is inside the following files:
/etc/hosts
/etc/rc.conf

Offline

#5 2007-11-23 04:55:07

nephish99
Member
Registered: 2007-09-01
Posts: 85

Re: wireless working, but not working very well.

ok, in /etc/hosts

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain   localhost   kidbox

# End of file

(most comments removed)


and in rc.conf

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="US/Central"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MOD_BLACKLIST=()
MODULES=(natsemi slhc eeprom_93cx6 rt2x00lib rt2x00pci rt61pci ac97_bus snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event snd-seq snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-ac97-codec snd-ens1371 soundcore)
USELVM="no"

HOSTNAME="kidbox"
wlan_wlan0="wlan0 essid Bitsbam key s:krill"
wlan0="dhcp"
eth0="dhcp"
INTERFACES=(eth0 lo wlan0)

gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

#NET_PROFILES=(main)
DAEMONS=(syslog-ng network portmap nfslock netfs crond alsa)


# End of file

at times i comment out the eth0 to test my net being up on wlan0

oh, and i  did install the firmware package.

thanks !

Last edited by nephish99 (2007-11-23 14:08:53)

Offline

#6 2007-11-23 05:57:43

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: wireless working, but not working very well.

Woah.  You are missing the loopback in your interfaces.  Change this

HOSTNAME="kidbox"
wlan_wlan0="wlan0 essid Bitsbam key s:hack1"
wlan0="dhcp"
eth0="dhcp"
INTERFACES=(eth0 lo wlan0)

to this:

HOSTNAME="kidbox"
lo="lo 127.0.0.1"
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(lo !eth0 !wlan0)

Regarding this: wlan_wlan0="wlan0 essid Bitsbam key s:hack1"
I would recommend using netcfg2 to manage connecting to networks _or_ placing appropriate lines in /etc/rc.local using iwconfig


Also, try changing your /etc/hosts to this:
127.0.0.1 localhost.localdomain kidbox

Offline

#7 2007-11-23 14:08:10

nephish99
Member
Registered: 2007-09-01
Posts: 85

Re: wireless working, but not working very well.

ok, made some changes as recommended here.. here is what i have

when i do ifconfig

eth0      Link encap:Ethernet  HWaddr 00:02:E3:0B:52:18  
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::202:e3ff:fe0b:5218/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:514 errors:0 dropped:0 overruns:0 frame:0
          TX packets:524 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:452320 (441.7 Kb)  TX bytes:72809 (71.1 Kb)
          Interrupt:5 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3332 (3.2 Kb)  TX bytes:3332 (3.2 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:14:85:D4:58:0A  
          inet addr:169.254.227.0  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wmaster0  Link encap:UNSPEC  HWaddr 00-14-85-D4-58-0A-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

what i find really strange about this is this address
169.254.227.0 for wlan0.. where is that comming from??? it may be a neighbors router that sometimes shows up in iwlist wlan0 scan that shows up as linksys or something like that. But i shoud be associating our thing here right ?



when i do iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"Bitsbam"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:06:4F:51:0A:F8   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

from rc.conf

HOSTNAME="kidbox"
lo="lo 127.0.0.1"
wlan0="dhcp"
eth0="dhcp"
INTERFACES=(eth0 lo wlan0)

gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

in hosts

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain  kidbox

in /etc/rc.local

ifconfig wlan0 up
sleep 3 &
iwlist wlan0 scan
sleep 3 &
iwconfig wlan0 essid Bitsbam key s:krill

i could not find netcfg2 in pacman, is it really necessary ? i can check somewhere else..

thanks for the help gents.  Hope all this provides more clues

Offline

#8 2007-11-23 15:54:23

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: wireless working, but not working very well.

FYI, the loopback is no longer required because it has been integrated into the core initscripts.  This eliminates the need for declaring 'lo' in the INTERFACES array... you can completely remove this bit too:

lo="lo 127.0.0.1"

As for netcfg2, it's currently available in the [testing] repository only.  Instead of enabling the testing repo, you can simply download the package.

For more information, go here: http://wiki.archlinux.org/index.php/Network_Scripts


thayer williams ~ cinderwick.ca

Offline

#9 2007-11-24 09:55:54

nephish99
Member
Registered: 2007-09-01
Posts: 85

Re: wireless working, but not working very well.

ok, i dropped the wep just to get this going.
i have gotten installed the package from testing.

this is the contents of my file in /etc/network.d/

CONNECTION="wireless"
DESCRIPTION="no wep wireless to bitsbam router"
INTERFACE=wlan0
SCAN="yes"
ESSID="Bitsbam"
IP="dhcp"

nothing is comming up though.
when i do this in a terminal,
netcfg2 wireless

i get this back

:: wireless up  - DHCP IP lease attempt failed                           [FAIL]

where do i look for my error?

thanks

Last edited by nephish99 (2007-11-24 09:56:22)

Offline

Board footer

Powered by FluxBB