openrc-discuss

Re: Openrc-0.50

Roy Marples

Sat Jul 18 22:42:54 2009

Ed Wildgoose wrote:
Hi, Just trying to get my head around how the latest openrc affects me (wrt to networking mainly). I'm building a router which has to connect to the internet via either a 3G datacard, a wifi connection or an ethernet connection. I will need to use a bit of logic to figure out what's available and bring the appropriate link up. Also we will have a backup ppp dialup connection which is used when nothing else is available

I think I can see how dhcpcd-5 and openresolv are extremely helpful in pulling this all together, but I'm not sure whether openrc-0.40 or 0.50 is currently my best bet? What are the limitations right now with dynamically bringing up wpa-supplicant and ppp connections with 0.50?

yes, dhcpcd and openresolv are designed for this.
You can use either the old style networking (net.eth0, net.lo, etc) in openrc-0.4.x (or 0.5.x with MKOLDNET=yes) or the new network script in openrc-0.5.0.

Caveats :)
dhcpcd-5 is designed to be run standalone, so don't configure any net.foo for dhcp. Infact, I'd go as far to disable dhcp entirely
modules="!dhcp" in /etc/conf.d/net

wpa_supplicant does not support interface hotplugging, so if you need to hotplug a wpa_supplicant driven interface you need to use net.eth0 and friends. I did submit patches upstream for this, but they were not accepted.

There is no PPP support in openrc-0.5.0 with the new network script - you'll have to start it yourself.

Thanks

Roy

Follow-Ups:
Re: Openrc-0.50Ed W
References:
Openrc-0.50Ed Wildgoose
Archive administrator: postmaster@marples.name