You are not logged in.

#51 2008-03-09 15:20:22

faelar
Member
From: Amiens (FR)
Registered: 2007-12-18
Posts: 232
Website

Re: netcfg v2.0.6

Hum.. I need help to launch wifi if available on boot.
Currently, "#netcfg2 fnoup" works, so I guess my configuration is ok.
I use wicd with netcfg2.
My first question : net-profiles or net_profiles in DAEMONS ?
NETWORKS=(fnoup), NETWORKS=(auto-wireless ath0) or something else ? With the last one iwconfig shows the good ESSID, but I can't access internet.
And when I add the daemon, it tells me something like :
line XX in rc.conf --------------- command not found.

drivers : madwifi
chipset : atheros

Thank you smile

Offline

#52 2008-03-10 21:17:31

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: netcfg v2.0.6

rson451 wrote:

i can backup what ralvez is seeing.  upon first connect with netcfg2, i usually receive the "dhcp ip lease attempt failed".  after the first attempt though i am usually able to connect without issue.  i'm seeing this on multiple networks, encrypted and non encrypted, with the iwl3945 driver built into the kernel if that helps at all.  i too will help in any way i can.

as i stated elsewhere in this thread i have the exact same problem. wireless association is working fine when I reconnect (a few times) after boot. during boot it fails most of the time. I switched to WICD but that is not working great for me either. I always get a DHCP error during boot.

I have a intel ipw3945 that never gave me any issues, on Fedora with NetworkManager it connected flawlessly 100% of the time, even better then windows vista that is also working fine. It would be great if this were tackled so I can ditch WICD which i needed to misteriously reinstall for 3 times already because of the perl scripts not working right and all the files are in the wrong place.

wired is working fine by the way.

Incidently I believe there are now 3 netcfg2 threads. should these not be merged into 1?

thanks,
stefan


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#53 2008-03-11 06:04:56

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.6

Nah. Separate threads are good for different problems.

For the DHCP problem could some people please try the suggestions I made here. There's also a workaround that should work too.

http://bbs.archlinux.org/viewtopic.php? … 84#p340084

Offline

#54 2008-03-11 12:33:31

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.6

hohum. Something about netcfg v2 in core. I'll say more/announce tomorrow when I update it.

Anyone got any results from that dhcp testing yet?


(yay!)

Last edited by iphitus (2008-03-11 12:34:10)

Offline

#55 2008-03-11 13:28:43

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: netcfg v2.0.6

unfortunately i havent been around a network with dhcp since i last posted.  as soon as i can get my laptop to school i'll try it out. hopefully by the end of the week.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#56 2008-03-11 14:10:07

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: netcfg v2.0.6

iphitus wrote:

hohum. Something about netcfg v2 in core. I'll say more/announce tomorrow when I update it.

Anyone got any results from that dhcp testing yet?

(yay!)

i have been testing today @ work but unfortunately only with wired. Tonight @ home I will try dhcp at boottime for my ipw3945 interface. For me the wired stuff works very well now (even backgrounded in rc.conf) but then again wicd worked with my wired interface as well.

[edit]
Well I am home now and reinstalled netcfg2 from core and adjusted all settings. Now I use dhclient in my wireless profile. I have a very weird result. The connection was very fast and for the three times i restarted stable as well. It connected flawlessly to my home wireless network.

BUT for some weird reason my /etc/resolv.conf wans't updated and still contained my wired settings (search and nameservers) from work. Since these are internal nameservers I cannot use my wireless network without editing this file. Is there a setting to overrule this, did I miss anything or is it a bug?

my wireless profile:

CONNECTION="wireless"
DESCRIPTION="wireless"
INTERFACE=wlan0
SCAN="yes"
#SECURITY="wep"
ESSID="wireless"
#KEY="1234567890"
IP="dhcp"
TIMEOUT=120
DHCLIENT="yes"

[/edit]

Last edited by stefan1975 (2008-03-11 20:04:11)


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#57 2008-03-11 22:20:24

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: netcfg v2.0.6

Hello,

I have tested netcfg2 with a wep wireless network and an acx based wireless card  with success :-)

There are some points that remain not clear to me :

1- If I have "net-profiles" in my DAEMONS array in rc.conf, do I still need the "network" daemon ?
2- Do I still need to have HOSTNAME in rc.conf if I have it set in my profile ?
3- Do I still need INTERFACES in my rc.conf to be set ?
4- What about the "lo" interface ? Do I still need to set it in rc.conf and how ? In a dedicated profile ? none of them ?

Thank you very much for your help and congratulation for this tool, I really like it : I think it integrate very well to Arch's spirit :-)
++
Chicha

Offline

#58 2008-03-11 23:33:47

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.6

chicha: I get that question a bit, so I've just added a FAQ in response:
http://wiki.archlinux.org/index.php/Net … _netcfg.3F

stefan1975: Ok. Try this: Disconnect, remove any resolv.conf and then connect to your wireless -- does dhclient then create it correctly?

James

Offline

#59 2008-03-12 08:20:25

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: netcfg v2.0.6

iphitus wrote:

stefan1975: Ok. Try this: Disconnect, remove any resolv.conf and then connect to your wireless -- does dhclient then create it correctly?
James

Hi,

i tried your suggestion and removed the /etc/resolv.conf. When I rebooted it was NOT recreated, i had no resolv.conf at all anymore. After I created it manually the connection was fine so the wireless bit was ok. changing the permissions did not help either.

Now I am at work again using my wired interface and the /etc/resolv/conf was created once again with the correct settings for my work location. This is not a problem of my home wireless router (asus wl-500w) because it works for fedora and wicd. I hope this info helps in fixing this issue.

thanks,
stefan.


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#60 2008-03-12 19:57:58

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: netcfg v2.0.6

iphitus wrote:

chicha: I get that question a bit, so I've just added a FAQ in response:
http://wiki.archlinux.org/index.php/Net … _netcfg.3F

Thank you for this FAQ, it answered all my questions smile

I have now the following problem :
my network profille (wep wireless with acx driver) fails to start at boot (or manually) because the interface is not brought up.
I fixed that using the PRE_UP hook in my profile ( PRE_UP=$(ifconfig $INTERFACE up) ).

Here is my profile :

CONNECTION="wireless"
DESCRIPTION="A simple WEP encrypted wireless connection"
INTERFACE=wlan0
SCAN="yes"

SECURITY="wep"
ESSID="LE_DONJON"
KEY="xxxxxxxxxxxxxxxxxxxxxxxxxx"

IP="static"
IFOPTS="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY=192.168.0.254

DOMAIN=ledonjon
DNS1=212.27.54.252
DNS2=212.27.53.252
SEARCH=mshome.net

And here is the interesting part from rc.conf :

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="Grogros"
NETWORKS=(home_wep)

#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng net-profiles fcron dbus hal @cpufreq @sensors @ntpdate @alsa @cups)

Is this the right place to post this problem or you prefere another thread or a bug report ?
Thank you for your help !

Cheers,
Chicha

Offline

#61 2008-03-13 08:41:52

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.6

my network profille (wep wireless with acx driver) fails to start at boot (or manually) because the interface is not brought up.
I fixed that using the PRE_UP hook in my profile ( PRE_UP=$(ifconfig $INTERFACE up) ).

Why does it fail? getting an IP or association?

stefan1975: I'm not sure why dhclient isnt pulling the DNS information like it should. You say that dhcpcd pulls the DNS information correctly?

James

Last edited by iphitus (2008-03-13 08:44:58)

Offline

#62 2008-03-13 08:55:06

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: netcfg v2.0.6

iphitus wrote:

Why does it fail? getting an IP or association?

It fails because the interface is not up : my wireless card is supposed to be up (ifconfig wlan0 up) before trying to get/set an IP or associate to a wireless network. That is why adding "ifconfig $INTERFACE up" in the PRE_UP hook worked. But I do not think this is the right way to proceed, is it ?

Also is there a way to get "debugging" info with netcfg2 ? I know I am asking a lot whereas I am not helping very much ... but having a --verbose option could help in such a case.

Thank you very much smile
Chicha

Offline

#63 2008-03-13 12:51:19

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.6

what does netcfg v2 output?

netcfg v2 puts the interface up before it does anything, so make sure you're up to date and have v2.0.6.

James

Offline

#64 2008-03-13 17:37:55

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: netcfg v2.0.6

James,

to top it all off, I have a weird problem.
At home, my wireless is open, and netcfg2 with auto-wireless starts just fine. On the other hand, at work, the wireless is encrypted with WEP (doh). I get a wireless association failed error. I increased the timeout, to no avail. I am sure my settings are right because if I start netcfg2 manually, it works after two times (I get a dhcp timeout error the first time, the second time it works). Dunno what to say...

Cheers,
Blind

Offline

#65 2008-03-16 13:24:46

tycho
Member
Registered: 2008-03-16
Posts: 2

Re: netcfg v2.0.6

I solved all my wifi DHCP problems by configuring as follows

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="tunneldier"
KEY="<censored>"
IP="dhcp"
TIMEOUT=90
DHCP_TIMEOUT=90
DHCP_OPTIONS="-m 1"

The important bits are the keys DHCP_TIMEOUT and DHCP_OPTIONS.

DHCP timeout makes sure that dhcpcd has a bit more time to get an IP addr. Note that using TIMEOUT alone does *not* achieve this.

Furthermore, DHCP_OPTIONS makes sure that dhcpcd adds an *additional* default gateway to the routes tables, leaving intact any pre-exisiting default gateway that was set up by, say,  connecting to a wired profile. It gives priority to the wired connection. Here's what the resulting route table looks like:

192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     1      0        0 wlan0
default         tunneldier.lan  0.0.0.0         UG    0      0        0 eth0
default         tunneldier.lan  0.0.0.0         UG    1      0        0 wlan0

If you do *not* add DHCP_OPTIONS then switching from wired to wired+wifi to wifi will leave you without a default gateway, which is bad.

Tycho

Offline

#66 2008-03-16 14:46:19

gravicappa
Member
Registered: 2007-08-13
Posts: 7

Re: netcfg v2.0.6

Hello.
Is IWOPTS mentioned in examples are used somewhere in netcfg2 scripts?
I've found that scripts for wep type security are using WEP_OPTS (that is not documented in /etc/network.d/examples/*) instead.
(Had troubles establishing ad-hoc connection on iwl3945).

Offline

#67 2008-03-16 16:21:02

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: netcfg v2.0.6

iphitus wrote:

what does netcfg v2 output?

netcfg v2 puts the interface up before it does anything, so make sure you're up to date and have v2.0.6.

James

Hi Iphitus,

Related to my previous message I have the following error message :
"Interface wlan0 is not a wireless interface".

This problem is only reproducible at boot time.
I do not have this problem if I put "ifconfig wlan0 up" in PRE_UP as mentionned above.

Thank you for your help !

Offline

#68 2008-03-16 17:53:10

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: netcfg v2.0.6

iphitus wrote:

stefan1975: I'm not sure why dhclient isnt pulling the DNS information like it should. You say that dhcpcd pulls the DNS information correctly?
James

well i now have half a workaround in place. I set my wireless router to a fixed channel which helped and now I created a static wireless profile which sets the DNS/GATEWAY settings correctly.

using dhclient gave me a better wireless connection but not resolv.cong but using dhcpd hardly ever connects the first time so both are not ideal. Like many I always get dhcp timeouts or wireless network not available when in fact I know my router is working fine (with vista or ubuntu)

stefan


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#69 2008-03-16 18:24:44

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: netcfg v2.0.6

tycho wrote:

I solved all my wifi DHCP problems by configuring as follows

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="tunneldier"
KEY="<censored>"
IP="dhcp"
TIMEOUT=90
DHCP_TIMEOUT=90
DHCP_OPTIONS="-m 1"

The important bits are the keys DHCP_TIMEOUT and DHCP_OPTIONS.

DHCP timeout makes sure that dhcpcd has a bit more time to get an IP addr. Note that using TIMEOUT alone does *not* achieve this.

Furthermore, DHCP_OPTIONS makes sure that dhcpcd adds an *additional* default gateway to the routes tables, leaving intact any pre-exisiting default gateway that was set up by, say,  connecting to a wired profile. It gives priority to the wired connection. Here's what the resulting route table looks like:

192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     1      0        0 wlan0
default         tunneldier.lan  0.0.0.0         UG    0      0        0 eth0
default         tunneldier.lan  0.0.0.0         UG    1      0        0 wlan0

If you do *not* add DHCP_OPTIONS then switching from wired to wired+wifi to wifi will leave you without a default gateway, which is bad.

Tycho

Hi,

I will try your suggestion by setting the extra option for the gateway since I too have the issue that switching from wireless to wired does and visa versa does not work correctly. However I think it is more of a workaround then a solution, theoretically it should be possible to connect with dhcp to two different networks and have all settings/dns/gateways set correctly.

For me it works as well when I make my wireless static but it is still strange that it seems so random.

thanks,
stefan


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#70 2008-03-16 19:55:53

tycho
Member
Registered: 2008-03-16
Posts: 2

Re: netcfg v2.0.6

stefan1975 wrote:

However I think it is more of a workaround then a solution, theoretically it should be possible to connect with dhcp to two different networks and have all settings/dns/gateways set correctly.

In my case both wired and wireless connect to the same network, same subnet (192.168.1.0/8). For this situation I think you will always need a metric, so that one route takes precedence. But frankly I don't know all intricacies of dhcp.

However, I do feel that the netcfg script should be improved to (somehow) avoid the situation where you end up with no default gateway.

Tycho

Offline

#71 2008-03-17 19:33:39

mini
Member
Registered: 2006-12-18
Posts: 132

Re: netcfg v2.0.6

I have used ifconfig on my old Dell Inspiron 5100 for a long time.
Now I have got a new laptop HP 6910 and have installed netcfg-2.0.6-1, iwlwifi-4965-ucode-4.44.1.20-1.
In my rc.conf

#NET_PROFILES=(main)
NETWORKS=(home)
......
DAEMONS=(syslog-ng net-profiles netfs crond kdm)

my /etc/network.d/home

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="no"
SECURITY="wpa"
ESSID="mini"
KEY="xxmy_key"
IP="dhcp"
TIMEOUT=20

but I do not have wireless connection.
iwconfig

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"mini"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
          Encryption key:off
          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
# netcfg2 home
:: home up  - Wireless association failed.                                                     [FAIL]

and dmesg output

ADDRCONF(NETDEV_UP): wlan0: link is not ready

What is wrong here?

Offline

#72 2008-03-19 02:39:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: netcfg v2.0.6

I'm having a strange problem with netcfg. Here is my setup:
in rc.conf:

NETWORKS=(Ethernet-desktop !Wireless)
DAEMONS=(syslog-ng syslogd klogd !network net-profiles ...)

the /etc/network.d/Ethernet-desktop profile:

CONNECTION="ethernet"
DESCRIPTION="Ethernet profile for desktop and internet access"
INTERFACE=eth0
IP="static"
IFOPTS="192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY="192.168.0.1"
DNS1=192.168.2.1
DNS2=192.168.2.1

It doesn't start on boot-up. It throws this error (formatting might be different):
/etc/rc.d/net-profiles   line 41   command not found:  /usr/bin/netcfg-y

However, if I restart the daemon, it restarts and works fine.
If I comment  out the  net-profiles daemon in rc.conf  and start the daemon manually after being logged in, it starts fine.

Any idea?

Offline

#73 2008-03-19 10:32:38

carrouf
Member
Registered: 2007-01-06
Posts: 34

Re: netcfg v2.0.6

hi iphitus

I'm currently programming a frontend for netcfg2. I was wondering about the 'exit code' returned when the netcfg process ends.
If I understood things well, the command returns '0' if the provided arguments were successfully processed, or '1' in case of an error.

It is correct ?

Offline

#74 2008-03-21 11:21:45

schimpfj
Member
From: Frankfurt, Germany
Registered: 2007-08-15
Posts: 53

Re: netcfg v2.0.6

Hi All,

I am a newby on wifi and trying to setup a wireless internet connection for the very first time using netcfg. B43 driver got installed and I assume it is working correctly - at least no errors are logged, but I cannot find any 'b43' or 'broadcom' hint in the log files either to confirm success. This was done as per part i of http://wiki.archlinux.org/index.php/Wireless_Setup

As per part ii I am now trying to get wifi working using netcfg2 http://wiki.archlinux.org/index.php/Network_Profiles but failing already on the pre-requisits, "Gather information":

ifconfig shows me 'lo' and 'eth0' interfaces. The same are shown using iwconfig, obviously both without wifi:

[root@limob ~]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

What happened to my wifi interface? I tried adding wlan0/eth1/ath0 manually to rc.config 'INTERFACES=...' but no change, just error messages saying wlan0/eth1/ath0 unkown.

Appreciate someone can give me a kick-start. No idea how I can get the wifi interface to work.

My configs:
Kernel 2.6.24
BCM4312

> hwd -s
  Ethernet   : MCP65 Ethernet module: forcedeth
  Network    : BCM4312 802.11a/b/g module: b43-pci-bridge

B43 modules loaded

[root@limob ~]# lsmod | grep b43
b43                   108320  0
ssb                    29188  1 b43
rfkill                  5904  1 b43
pcmcia                 32556  2 b43,ssb
mac80211              117132  1 b43
input_polldev           3720  1 b43
pcmcia_core            32664  2 b43,pcmcia

B43 firmware

[jochen@limob ~]$ sudo ls /lib/firmware/b43
Passwort:
a0g0bsinitvals4.fw   a0g1initvals13.fw    b0g0initvals4.fw    ucode11.fw
a0g0bsinitvals5.fw   a0g1initvals5.fw     b0g0initvals5.fw    ucode13.fw
a0g0initvals4.fw     b0g0bsinitvals13.fw  lp0bsinitvals13.fw  ucode4.fw
a0g0initvals5.fw     b0g0bsinitvals4.fw   lp0initvals13.fw    ucode5.fw
a0g1bsinitvals13.fw  b0g0bsinitvals5.fw   pcm4.fw
a0g1bsinitvals5.fw   b0g0initvals13.fw    pcm5.fw

rc.config

...
MODULES=(dm-crypt aes-i586 sha256_generic forcedeth b43 ppp-generic snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore powernow-k8)
...
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.5 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
...
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
...

I know that there must be at least two or three hubs around - I can see them when logged on with Vista, but nothing with Linux (iwscan).

Thanks in advance,
Jochen

Offline

#75 2008-03-21 12:02:07

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: netcfg v2.0.6

To schimpfj:

Please don't post the same thing in more than one place at a time.  Someone else will post if they have a solution.  Arch forum is very good that way.  Look back at http://bbs.archlinux.org/viewtopic.php?id=45737

Last edited by bgc1954 (2008-03-21 12:34:47)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

Board footer

Powered by FluxBB