[arch-general] netcfg

Thomas Bächler thomas at archlinux.org
Thu Oct 29 10:39:09 EDT 2009


fons at kokkinizita.net schrieb:
> The one remaining problem is with netcfg 2.2.1.
> On my laptop I have the drivers e1000 and ipw2200
> loaded in rc.conf, providing the devices eth0 and
> eth1 in fixed order.

It's not guaranteed to provide a fixed order any more, you should really 
look into udev rules or ifrename (there is something included in netcfg 
for this).

> For the first I use:
> 
> CONNECTION="ethernet-iproute"
> DESCRIPTION="Local ethernet - zita1 router"
> INTERFACE="eth0"
> IP="static"
> ADDR="192.168.2.241"
> GATEWAY="192.168.2.240"
> 
> and this works nicely. The only strange thing is that
> it fails when the interface is not connected. I've 
> never seen this on the systems I used before, and 
> since you can disconnect the network cable and put
> it back without any ill effect on the interface 
> configuration I'd really expect it to be configured
> as well if the physical connection is not present.

First of all, the whole connection types in the current netcfg are a bit 
screwed up and not all examples are correct. This should be cleaned up 
in the git version (which should have been released by now, but James 
said he had to document it first and then went MIA), and also the 
examples should be cleaned up.

About the actual problem: netcfg checks for the presence of a link and 
doesn't bring the connection up if no link exists. This is certainly 
useful for dhcp, but not so useful for static, as you have seen. IMO, 
this should be optional, but I have no idea if it changed in the git 
version.

> For the wireless connection all the examples use
> dhcp but I need a fixed address. Combining the
> examples I arrived at:
> 
> CONNECTION="wireless"
> DESCRIPTION="Wireless connection at Basilicanova"
> INTERFACE="eth1"
> SECURITY="wep"
> ESSID="lovettanet"
> KEY="........"
> IP="static"
> ADDR=192.168.1.241
> GATEWAY="192.168.1.1"
> 
> which fails with:
> 
> lovetta up
> SIOCADDRT: No such process
> Adding gateway failed.

Same point, the examples are bit of a chaos. I figured it out once, but 
I forgot which combination works. That said, it is possible :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20091029/ea7e09fd/attachment.bin>


More information about the arch-general mailing list