You are not logged in.

#1 2009-02-01 00:16:47

saf
Member
Registered: 2009-02-01
Posts: 39

netcfg problem with wireless

Hi,
when i try to connect with a connection-profile to a wep network i set up for testing, netcfg tells me that it works but it dont work.
in rc.conf everything about network is disabled, but the modul for wireless and wired (r8169 rt2860sta)
are loaded and these daemons:
DAEMONS=(syslog-ng !network netfs crond fam !dhcdbd !networkmanager net-profiles alsa gdm)

so when gnome has loaded no interfaces in ifconfig nor iwconfig are loaded.
when i run a profile for setting up static-wired lan everything works well. it adds the interface to the ifconfig list and It set up a good route to the gateway.

But when i try to load my wireless profil, after i disabled the static-wired one (i have to do this, because when i dont it tells me there is already a gateway in the route-table)

it tells "DONE", but it dont work.
And the interface ra0 is not shown in ifconfig.

when i run

bash-3.2# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 ra0
0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 ra0

it really takes time, but i cannot ping anything.

and the next problem is i cannot even disable the profil with

netcfg -d test
:: test down [FAIL]

Same problem when i put ra0 before in the ifconfig list with

ifconfig ra0 up

But i think the wireless modul works fine, its a config problem because i can scan with

iwlist ra0 scan
bash-3.2# cat /etc/network.d/test
CONNECTION="wireless"
DESCRIPTION="A wep encrypted wireless connection using static ip"
INTERFACE=ra0
SCAN="yes"
SECURITY="wep"
ESSID="warsucks"
KEY="12345"
IP="static"
IFOPTS="192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"
DNS1=192.168.1.1
DNS2=dns1.dreamhost.com

thanks for helping me and sorry for english errors

Offline

#2 2009-02-01 00:37:00

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: netcfg problem with wireless

i cant help much but i can say it took me forever to set up my gf's wireless neutral
have you already looked at http://wiki.archlinux.org/index.php/Wireless_Setup ?
if not try looking there for some more clues.  sry about the lack of actual help i can supply tho

Offline

#3 2009-02-01 00:45:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: netcfg problem with wireless

Check your logs before, during, and after your connection attempts - you might get a clue there. Try to connect manually i.e. by running iwconfig/ifconfig separately with appropriate arguments. After running iwconfig, check if you are associated with the AP before running ifconfig.



(note to self - create a template for wireless threads to avoid repetitive typing)

Offline

#4 2009-02-01 01:20:46

saf
Member
Registered: 2009-02-01
Posts: 39

Re: netcfg problem with wireless

hi, thanks for reply
checking logs is a good idea, but where can i find this logs? i didnt find anything about iwconfig, ifconfig, network esp. netcfg in /var/logs

now i tried out s.th. but this dint work either:
i made the network uncrypted, without a key and i connected with

iwconfig ra0 essid warsucks channel 1 key open

then i run dhcp on it and seems to work

 dhcpcd ra0
ra0: dhcpcd 4.0.7 starting
ra0: broadcasting for a lease
ra0: offered 192.168.1.34 from 192.168.1.1
ra0: checking 192.168.1.34 is available on attached networks
ra0: acknowledged 192.168.1.34 from 192.168.1.1
ra0: leased 192.168.1.34 for 259200 seconds

but i cannot ping f.x. www.google.com

bash-3.2# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.1.1     255.255.255.0   UG    0      0        0 ra0
192.168.1.0     *               255.255.255.0   U     0      0        0 ra0

even the routing table looks okay, no?
maybe i build the ralink module wrong? i didnt use makepkg because i dint find a PKGBUILD file, i did with make and make install

Last edited by saf (2009-02-01 01:46:11)

Offline

#5 2009-02-01 02:12:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: netcfg problem with wireless

I'm guessing you can ping 74.125.45.100. If so, then you have a dns problem. If /etc/resolv.conf looks right, check your router.

If you can't ping that, try pinging your router. If that works, you have an internet connection problem, not an Arch problem.

Offline

#6 2009-02-01 13:04:06

saf
Member
Registered: 2009-02-01
Posts: 39

Re: netcfg problem with wireless

Hi,
now it works, finally, but there are still some problems.
The connection works with wpa, i rebuild the modul on the AUR way http://aur.archlinux.org/packages.php?ID=14557

bash-3.2# cat /etc/network.d/wpa
CONNECTION="wireless"
INTERFACE=ra0
SCAN="yes"
SECURITY="wpa"
ESSID="warsuck"
KEY="x"
IP="static"
IFOPTS="192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"
DNS1=192.168.1.1
DNS2=dns1.dreamhost.com

but
1st problem: i cannot disconnect with netcfg or netcfg2 -d wpa
it shows "FAIL" and then i cannot reconnect.

2nd problem: i cannot connect to wep nor with the key entered in "key" nor with s:key

3rd problem: i want to make the profile "wpa" auto-loaded in rc.conf but my syntax dont work
nor AUTO_NETWORKS=(wpa ra0) nor AUTO_NETWORKS=(wpa)

Wep is very important, even dangerous, because at office we use it, and my boss dont want to change to wpa or wpa2

Last edited by saf (2009-02-01 13:25:16)

Offline

#7 2009-02-01 21:28:31

NeekO
Member
Registered: 2007-10-28
Posts: 32

Re: netcfg problem with wireless

Try using this program: http://wicd.sourceforge.net/
Not sure it will help,but there is an option for auto connection and wep, so i guess it is worth trying.


Oh Snap!!

Offline

#8 2009-02-02 02:45:38

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,563

Re: netcfg problem with wireless

saf wrote:

3rd problem: i want to make the profile "wpa" auto-loaded in rc.conf but my syntax dont work
nor AUTO_NETWORKS=(wpa ra0) nor AUTO_NETWORKS=(wpa)

Improper syntax. As the wiki shows, it should be AUTO_NETWORKS=(auto-wireless ra0)

Offline

#9 2009-02-02 05:25:22

pcock
Member
From: Sydney
Registered: 2005-10-05
Posts: 4

Re: netcfg problem with wireless

I had a similar problem with my Belkin router.  It issues an IP address but I couldn't ping anywhere.  I have to re-connect to it a few times and it would work.  Strangely, the problem didn't seem to impact the same machine booting into Vista.  Note, that I don't have the problem using Linksys/Netgear though so maybe it's a router issue?  After updating the router's firmware things seem to work ok but I feel it's a bit flaky.


Arch-Chick with a dk ;-)

Offline

#10 2009-02-02 20:22:27

saf
Member
Registered: 2009-02-01
Posts: 39

Re: netcfg problem with wireless

hi the problem is solved.
I use wicd now and I like it (even its not that powerful as networkmanager)
thanks

Offline

Board footer

Powered by FluxBB