You are not logged in.

#126 2008-05-30 17:43:55

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: netcfg v2.0.6

iphitus do you remember me asking about bash completion for netcfg?
I wrote that smile Take a look here, I submitted it in "Community Contributions" 
http://bbs.archlinux.org/viewtopic.php?id=49369

Offline

#127 2008-06-20 08:33:59

awagner
Member
From: Mainz, Germany
Registered: 2007-08-24
Posts: 191

Re: netcfg v2.0.6

Hi all,
and - as usual - first of all thanks a lot for this nifty network setup tool.
Yesterday I tried to tweak my setup and make full use of the EXCLUSIVE stuff (thereby eliminating the need for different GRUB entries with each one featuring another NETWORK=thingy line). But it seems I can't get it right without some help.

here's (parts of) my rc.conf:

NETWORKS=(homelan flughafen voigtlan)
NETWORKS_EXCLUSIVE="yes"
DAEMONS=(@net-profiles ...)

/etc/network.d/voigtlan

CONNECTION="ethernet"
DESCRIPTION="statically configured LAN connection at uni (Georg-Voigt-Str.)"
INTERFACE=eth0
HOSTNAME=awagner
DOMAIN=domainname.de
IP="static"
IFOPTS="stuff"
GATEWAY="GatewayIP"
DNS1=DNS1-IP
DNS2=DNS2-IP
EXCLUSIVE="yes"

/etc/network.d/homelan

CONNECTION="ethernet"
DESCRIPTION="statically configured LAN connection at home"
INTERFACE=eth0
IP="static"
IFOPTS="192.168.254.1 netmask 255.255.255.0 broadcast 192.168.254.255"
GATEWAY="192.168.254.254"
DNS1=192.168.254.254
DNS2=dns1.dreamhost.com

/etc/network.d/flughafen

ESSID="SOMETHING"
DESCRIPTION="Uni encrypted WLAN connection"
CONNECTION="wireless"
INTERFACE=wlan0
IP="dhcp"
SCAN="YES"
TIMEOUT=90
SECURITY="wpa-config"
DHCP_TIMEOUT=90
DHCP_OPTIONS="-m 1"
PRE_UP="modprobe ndiswrapper"
POST_DOWN="modprobe -r ndiswrapper"
EXCLUSIVE="yes"

Now what seems to happen is this: I always end up with the last profile mentioned in the NETWORKS line in rc.conf. It's always "voigtlan" even when I'm at home. (The university's gateway and dns hosts are publicly pingable, but I suppose the network setup could notice that they cannot be pinged from at home unless the homelan gateway is already used/in place).

Can anyone suggest a good distribution of all those EXCLUSIVE options?

TIA,
Andreas

PS. I got this way of putting NETWORKS_EXCLUSIVE="yes" instead of an array of profiles from this thread. Is this the correct way to do it. (I didn't succeed with the array either.)

Offline

#128 2008-07-26 18:10:43

Timmer
Member
Registered: 2008-07-19
Posts: 5

Re: netcfg v2.0.6

I'm using the rt2500pci driver in the kernel (which I think is the rt2x00 driver).  Anyway, because of some issue with the driver, it will only connect at 1Mb/s unless you specify otherwise in the the iwconfig line (with "rate 54M"). 

I just switched to using profiles though (so no iwconfig line), and discovered that my internet was slow again.  So I looked back in the example files and discovered IWOPTS.  I set that IWOPTS="rate 54M" but that doesn't seem to be working.  Is that not how that line should be written?

Offline

#129 2008-07-26 19:24:36

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: netcfg v2.0.6

Hi timmer,
in my wireless profile I use WEP_OPTS="...."

Offline

#130 2008-09-19 12:35:24

kiker99
Member
Registered: 2008-07-09
Posts: 10

Re: netcfg v2.0.6

@awagner: (a bit late lol)  have a look at first page, Venator85's patch does the trick. it won't apply to current version but I think you get the idea.

Why isn't Venator85's idea implemented? I don't think exclusive option is helpful in any way in standard behaviour. With Venator85's change it does exactly what it should. And it sucks loosing this change after a netcfg2 update.

Last edited by kiker99 (2008-09-19 12:36:30)

Offline

#131 2008-09-19 12:38:59

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

Re: netcfg v2.0.6

The exclusive option is crap, and it'll be removed quietly soon enough.

netcfg2 is not meant to be smart. It's not meant to do anything fancy (hence auto-networks being totally decoupled from netcfg), it's not meant to try and manage networks. netcfg2 is designed to just connect to networks - and it can be used as a foundation for a more intelligent setup.

If you want something smarter, it's absolutely trivial to write a script which uses netcfg's connection logic. Really really simple basic bash/python/whatever language.

Last edited by iphitus (2008-09-19 12:40:32)

Offline

#132 2008-09-19 15:56:57

kiker99
Member
Registered: 2008-07-09
Posts: 10

Re: netcfg v2.0.6

ok thanks for fast info smile

Offline

Board footer

Powered by FluxBB