You are not logged in.

#1 2009-06-27 02:48:01

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

netcfg v2.2.1

netcfg v2.2.1 is released. it's in [testing] and should be in [core] shortly.

Because theres so many fixes in 2.2 from 2.1, I decided it was better to push out a new stable release than wait for wireless-dbus to stabilise. wireless-dbus is still there, but unchanged and just as broken as before.

On the other hand, the normal wireless, ethernet and ethernet-iproute connections are as stable as ever. I received few bug reports, and no wireless regression reports with the last beta cycle which was very encouraging!

New Features from 2.1
- iproute support (CONNECTION='ethernet-iproute')
- Improved reliability in regular wireless (CONNECTION=wireless)
- Wired wpa_supplicant support (untested)
- Some new netcfg arguments for convenience: 'reconnect', 'clean'.
- Support for connection methods written in other languages than bash
- Refactored resuable functions into separate files from connection methods.
- Additional documentation of supported options (see git)
- Many bug fixes

Upgrading
* Remove any QUIRKS options, as *most* of these are no longer necessary, or are unneccesary due to changes in netcfg. These were a poor solution in the first place and cause more problems than they solve in some cases.

Third party netcfg tools/addons
Some of the older addons may not work.

The following netcfg addons are known to work:
wifi-select: http://bbs.archlinux.org/viewtopic.php?id=63973
netcfg-tray: http://bbs.archlinux.org/viewtopic.php?id=74742

netcfg-tray - tray icon/menu!
A 'simple' tray icon for netcfg. The aim is a very simple front to start/stop netcfg/netlib profiles and just make it a little more convenient. Not a full clicky configure-everything GUI.

http://bbs.archlinux.org/viewtopic.php?id=74742

IPRoute Support
iproute support has been implemented (CONNECTION="ethernet-iproute"). The config options I've setup for it make connecting using a simple static IP or more advanced configurations easier.

This support is not option compatible with the old, so a new config is required. Examples are provided in /etc/network.d/examples

wireless-dbus
This is known broken, don't report bugs.

Documentation
Documentation is still catching up a little bit.
* There is a full set of example configs.
* Initial documentation of supported configuration options is presently in git.
* Wiki needs to be updated to reflect -iproute/-dbus.
* netcfg manpage needs to be updated

Offline

#2 2009-07-05 05:47:32

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

Re: netcfg v2.2.1

Could someone complain? please? tongue

Offline

#3 2009-07-05 09:33:47

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: netcfg v2.2.1

works great on my local N-router so far, though so did 2.1. wink connection time is a tad slower than with 2.1 (a few seconds), but so far each connection has been succesful.

will be interesting to see what my G-router at work will do, 2.1 somehow never spawned dhcpcd there so i had to start that manually before running netcfg. i have another G airing here somewhere which i'll try too.

edit: local G-router connects without problems too, faster than N (with 2.1. this was the other way around). tested with both manual connect and background @net-auto

intel 5100 / netgear wndr3300

so far so good! smile

Last edited by litemotiv (2009-07-05 09:48:12)


ᶘ ᵒᴥᵒᶅ

Offline

#4 2009-07-05 15:04:31

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: netcfg v2.2.1

iphitus wrote:

Could someone complain? please? tongue

Well, I had this http://bbs.archlinux.org/viewtopic.php? … 81#p573181 issue a few days ago when I met a friend and it was really annoying, so I downloaded the wicd packages from another computer, saved them on mine and a pacman -U solved the issue. What I'm trying to say is, netcfg works really great and I love this piece of software! But it definitely seems like it's not perfect. Or is this REALLY only dhcpcd's fault? If so, should we have a modified dhcpcd.conf as default? The thing is, not being able to connect to the internet is really horrible!! wink

Offline

#5 2009-07-07 16:23:41

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: netcfg v2.2.1

connecting to my office G-router works alright, but there is a persistent bug when i walk out of range from the signal. the network is lost and doesnt allow reconnecting:

64 bytes from 10.0.0.138: icmp_seq=60 ttl=64 time=2.23 ms
64 bytes from 10.0.0.138: icmp_seq=61 ttl=64 time=5.02 ms
64 bytes from 10.0.0.138: icmp_seq=62 ttl=64 time=2.16 ms
64 bytes from 10.0.0.138: icmp_seq=63 ttl=64 time=2.19 ms
64 bytes from 10.0.0.138: icmp_seq=67 ttl=64 time=16.0 ms
64 bytes from 10.0.0.138: icmp_seq=70 ttl=64 time=59.7 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable

[ ... out of range here ...]

ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C

[ollie@arch ~]% iwconfig

wlan0     IEEE 802.11abgn  ESSID:"Office"  
Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
Tx-Power=15 dBm   
Retry min limit:7   RTS thr:off   Fragment thr:off
Power Management: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

[ollie@arch ~]% sudo netcfg office
> office already connected 

[ollie@arch ~]% sudo netcfg -d office  
:: office down                                                                                     [DONE] 

[ollie@arch ~]% sudo netcfg office   
:: office up                                                                                       [BUSY] 

wlan0     Failed to read scan data : Resource temporarily unavailable
wlan0     Interface doesn't support scanning : Device or resource busy
wlan0     Interface doesn't support scanning : Device or resource busy
wlan0     Interface doesn't support scanning : Device or resource busy
wlan0     Interface doesn't support scanning : Device or resource busy

- Network not present  [FAIL]

ᶘ ᵒᴥᵒᶅ

Offline

#6 2009-07-07 16:43:14

ccc1
Member
Registered: 2009-04-16
Posts: 111

Re: netcfg v2.2.1

wifi-select (0.8-1) is not compatible with netcfg v2.2.1.
errors (rough translation wink ):
/usr/bin/wifi-select: Line 11: /usr/lib/network/network.subr: not such file or directory
awk: Fatal: can't open '/parse-iwlist.awk'  (not such file or directory).
> no networks found

Last edited by ccc1 (2009-07-07 16:48:12)

Offline

#7 2009-07-07 17:09:22

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: netcfg v2.2.1

works great on an open wireless network!


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2009-07-07 18:13:12

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: netcfg v2.2.1

ccc1 wrote:

wifi-select (0.8-1) is not compatible with netcfg v2.2.1.
errors (rough translation wink ):
/usr/bin/wifi-select: Line 11: /usr/lib/network/network.subr: not such file or directory
awk: Fatal: can't open '/parse-iwlist.awk'  (not such file or directory).
> no networks found

I think if you do:

ln -s /usr/lib/network/network /usr/lib/network/network.subr

It will work until wifi-select is updated.

Offline

#9 2009-07-08 16:46:18

ccc1
Member
Registered: 2009-04-16
Posts: 111

Re: netcfg v2.2.1

scio wrote:

I think if you do:

ln -s /usr/lib/network/network /usr/lib/network/network.subr

It will work until wifi-select is updated.

cheers.  smile

ccc1

Offline

#10 2009-07-12 19:59:53

linfan
Member
From: Stockholm, Sweden
Registered: 2004-04-23
Posts: 135

Re: netcfg v2.2.1

Seems with my ath5k and madwifi I still need the QUIRKS=(prescan preessid)

But I had to remove SCAN=yes

Offline

#11 2009-07-13 20:01:03

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: netcfg v2.2.1

fresh installed netcfg 2.2.1

i suffer a 'No connection' error here. This happens regularly at boot and on netcfg restart.
I have a marvel ethernet controller:

02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)

The only way to keep the things work for me is to set the sleep time between link up and link show to 2 secs.

    ip link set $INTERFACE up
    sleep 2

    if ip link show $INTERFACE|grep -q "NO-CARRIER"; then

since i have never suffer any errors/problems with your great tool, i have never read your past scripts.
Don't think it's a module/kernel problem. 2.6.30.1 was running great with netcfg 2.1.3 (previous stable version seem to remember).

Sounds strange that new need of more sleep time...

Offline

#12 2009-07-15 19:58:31

PapaNoa
Member
Registered: 2009-02-19
Posts: 14

Re: netcfg v2.2.1

Is there a way to include dns search domains in a netcfg profile for static ip configurations?

There is a wonderful new feature of dhcpcd that prepends /etc/resolv.conf.head to the generated /etc/resolv.conf but unfortunately this does not come to play when using a static ip configuration. Adding it to /etc/resolv.conf is not of much use for me either, as I'm using both static and dynamic ip configurations and /etc/resolv.conf is overwritten every time.

Any hints? Or do I need to add a fancy quirk to achieve that? Regard this as a feature request if it's not possible yet smile

Offline

#13 2009-07-15 23:30:17

panzeroceania
Member
Registered: 2009-06-04
Posts: 25

Re: netcfg v2.2.1

it actually works great for me, I had wireless via wicd on my laptop but for some reason didn't want to work on my old desktop so I tried out the new version of netcfg and it has been smooth sailing ever since.

Offline

#14 2009-07-16 02:54:56

zlowly
Member
Registered: 2007-12-19
Posts: 3

Re: netcfg v2.2.1

max.bra wrote:

fresh installed netcfg 2.2.1

i suffer a 'No connection' error here. This happens regularly at boot and on netcfg restart.
I have a marvel ethernet controller:

02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)

The only way to keep the things work for me is to set the sleep time between link up and link show to 2 secs.

    ip link set $INTERFACE up
    sleep 2

    if ip link show $INTERFACE|grep -q "NO-CARRIER"; then

since i have never suffer any errors/problems with your great tool, i have never read your past scripts.
Don't think it's a module/kernel problem. 2.6.30.1 was running great with netcfg 2.1.3 (previous stable version seem to remember).

Sounds strange that new need of more sleep time...

Same here. I did another test:

[ 10:48:13 ] % sudo ip link set eth0 down                                                                                                                                      ~)-
[ 10:49:41 ] % sudo ip link show eth0                                                                                                                                          ~)-
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:1a:4b:77:80:73 brd ff:ff:ff:ff:ff:ff
[ 10:49:50 ] % sudo ip link set eth0 up                                                                                                                                        ~)-
[ 10:49:59 ] % sudo ip link show eth0                                                                                                                                          ~)-
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:1a:4b:77:80:73 brd ff:ff:ff:ff:ff:ff
[ 10:50:00 ] % sudo ip link show eth0                                                                                                                                          ~)-
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1a:4b:77:80:73 brd ff:ff:ff:ff:ff:ff

Offline

#15 2009-07-16 03:02:13

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

Re: netcfg v2.2.1

ok thanks. I'll add a sleep...


PapaNoa: Yes, netcfg can do that, it has the following DNS options so that you can specify a whole resolv.conf in the profile.

SEARCH=
DOMAIN=
DNS=()

Where DNS=() is an array of all the DNS servers, for example

DNS=(192.168.1.23 192.168.1.22)

Offline

#16 2009-07-17 20:18:04

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: netcfg v2.2.1

linfan wrote:

Seems with my ath5k and madwifi I still need the QUIRKS=(prescan preessid)

But I had to remove SCAN=yes

i don't need any quirks on my ath5k machine, works fine without prescan/pressid and with scan=yes

@iphitus: with intel 5100 i need to manually start dhcpcd before connecting to an apple airport station, otherwise it won't obtain a lease. with dhcpcd started beforehand it's 100% success (haven't tried dhcp_timeout, but this might be a cleaner solution?).

Last edited by litemotiv (2009-07-17 20:18:55)


ᶘ ᵒᴥᵒᶅ

Offline

#17 2009-07-23 18:22:16

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: netcfg v2.2.1

I am also getting the no connection error at boot.

Offline

#18 2009-07-26 10:23:00

PapaNoa
Member
Registered: 2009-02-19
Posts: 14

Re: netcfg v2.2.1

@iphitus:
Thanks, works like a charm. I already suspected that feature existed, but I couldn't find it documented anywhere...

Offline

#19 2009-07-26 12:44:25

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: netcfg v2.2.1

@iphitus

I have major issues with netcfg. I would really really enjoy figuring these issues out since wicd is no also useless for me.

[jasin@laptop ~]$ sudo netcfg wireless
:: wireless up                                                                  [BUSY]
SIOCADDRT: No such process
 - Adding gateway failed.

                                                                                    [FAIL]
[jasin@laptop ~]$ iwconfig
lo        no wireless extensions.

irda0     no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11abg  ESSID:""
          Mode:Managed  Frequency:2.462 GHz  Access Point:
Not-Associated
          Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Management: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

As you can see the essid is never set, so I thought adding in the quirks prescan and preessid would help. It did nothing. Also, the device under ifconfig is also down after running netfcfg. The only way I can get netcfg to work is by manually setting up the network and then bringing the interface down only to run netcfg again. seee below...

[jasin@laptop ~]$ sudo ifconfig wlan0 up
[jasin@laptop ~]$ sudo iwconfig wlan0 essid "jnet"
[jasin@laptop ~]$ sudo ifconfig wlan0 192.168.1.4
[jasin@laptop ~]$ sudo route add default gw 192.168.1.1
[jasin@laptop ~]$ sudo ifconfig wlan0 down
[jasin@laptop ~]$ sudo netcfg wireless
:: wireless up                                                           [DONE]

Here is my profile.

CONNECTION="wireless"
DESCRIPTION="A simple wireless connection"
INTERFACE="wlan0"
ESSID="jnet"
IP="static"
ADDR="192.168.1.4"
GATEWAY="192.168.1.1"

what am I doing wrong? Need more info, just ask

[jasin@laptop ~]$ lsmod | grep ath
ath5k                 121704  0 
mac80211              183008  1 ath5k
led_class               3976  2 thinkpad_acpi,ath5k
cfg80211               67524  2 ath5k,mac80211

Last edited by jacko (2009-07-26 12:50:45)

Offline

#20 2009-08-01 11:28:04

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: netcfg v2.2.1

really, you want peoples bug reports, then why not acknowlege them when they are posted???

Offline

#21 2009-08-01 13:02:53

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

Re: netcfg v2.2.1

jacko wrote:

really, you want peoples bug reports, then why not acknowlege them when they are posted???

Sorry about this.

- This is not a bug tracker, the bug tracker is at http://bugs.archlinux.org
- I've been busy lately. This semester I'm studying at two campuses, both over an hour from home and with late finishes most days of the week. About the only thing I'm capable of when I get home is sleeping.
- I work on Arch voluntarily. I work on netcfg when I want to so that it's something I enjoy and not a chore. I want to help and improve it, but sometimes I don't have enough time for it.

Anyway, I had another look, your config is wrong. This ought to fix it. I suppose it could be documented better that wireless still uses the 'connections/ethernet' style of config rather than the newer ethernet-static. I'll add another example next release.

CONNECTION="wireless"
DESCRIPTION="A simple wireless connection"
INTERFACE="wlan0"
ESSID="jnet"
IP="static"
IFOPTS="192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"

Try that and report back.

Have a nice day.

Last edited by iphitus (2009-08-01 13:33:59)

Offline

#22 2009-08-14 15:37:34

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: netcfg v2.2.1

iphitus wrote:
jacko wrote:

really, you want peoples bug reports, then why not acknowlege them when they are posted???

Sorry about this.

- This is not a bug tracker, the bug tracker is at http://bugs.archlinux.org
- I've been busy lately. This semester I'm studying at two campuses, both over an hour from home and with late finishes most days of the week. About the only thing I'm capable of when I get home is sleeping.
- I work on Arch voluntarily. I work on netcfg when I want to so that it's something I enjoy and not a chore. I want to help and improve it, but sometimes I don't have enough time for it.

Anyway, I had another look, your config is wrong. This ought to fix it. I suppose it could be documented better that wireless still uses the 'connections/ethernet' style of config rather than the newer ethernet-static. I'll add another example next release.

CONNECTION="wireless"
DESCRIPTION="A simple wireless connection"
INTERFACE="wlan0"
ESSID="jnet"
IP="static"
IFOPTS="192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"

Try that and report back.

Have a nice day.

I would have filed a bug, but I was not so sure it was a bug. As it turned out it was a misconfigured config file. If you want I will file an appropriate bug now which is please add a correct example for static ip connections for wireless setups. THANK YOU! It works brilliantly now.

Offline

#23 2009-09-13 15:09:40

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: netcfg v2.2.1

Hi, I cannot make netcfg set the correct hostname when connecting to my Netgear DGN2000 router. This is my profile:

CONNECTION="ethernet"
HOSTNAME="elric"
DESCRIPTION="NETGEAR ethernet"
INTERFACE=eth0
IP="static"
IFOPTS="192.168.0.3 netmask 255.255.255.0 broadcast 255.255.255.255"
GATEWAY="192.168.0.1"

In the "Attached devices" section of  the router's configuration GUI the MAC address and the IP address shows to be correct, but the device name is UNKNOWN instead of elric. I don't know if this is a bug or an error on my configuration file.
Thanks to everybody!

Last edited by snack (2009-09-13 15:11:49)

Offline

#24 2009-10-31 15:35:26

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: netcfg v2.2.1

Is there a way to set up wlancard power while bringing up a profile?


Till the last battle, till the last bottle.
aur - twitter

Offline

#25 2009-11-03 20:46:08

Finkregh
Member
From: Germany/Hannover
Registered: 2007-12-04
Posts: 44

Re: netcfg v2.2.1

Any idea if you implement VLAN-Support any time soon? http://bugs.archlinux.org/task/15661

Offline

Board footer

Powered by FluxBB