Re: Where to find documentation for /etc/conf.d/network
Roy Marples
Mon Jun 28 11:30:26 2010
Hi
On 28/06/2010 08:02, Mu Qiao wrote:
I'm the guy doing GSoC project -- Gentoo NetworkManager Plug-in.
I'm going to support /etc/conf.d/network now but I find it really
difficult since I find little documentation for it. I even don't know
how to configure dhcp. Is there any documentation explaining how to
parse this new configuration file?
The way that I configure DHCP is to install dhcpcd-5 and add the dhcpcd
init script to the default runlevel. dhcpcd-5 does everything
NetworkManager does except for configuring links (ppp, vpn, etc) and you
can even get a nice GTK+ GUI + systray notification for it. It even
speaks to wpa_supplicant so it can get info from there also.
The latest OpenRC has a new network init script that actively encoruages
using dhcpcd-5 or an equivalent for this.
The old style config:
net.eth0 interface configuration is handled like so
config_eth0="192.168.1.2/24"
config_eth0="dhcp"
If no config_eth0 directive is found then we assume a DHCP client will
be used.
Also, bash constructs are supported for baselayout-1 users
config_eth0=( "dhcp" )
However, the dhcp call would appear in any place, like so
config_eth0=( "192.168.1.2/24" "dhcp" )
config_eth0=( "dhcp" "192.168.1.2/24" )
A document should be installed to /usr/share/doc somewhere which
describes the configuration of the old style networking if the correct
USE flag is present.
I don't have a Gentoo system handy to find out exactly where.
Thanks
Roy
Archive administrator: postmaster@marples.name