Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <me@××××××××.com>
To: Gentoo User Mailing List <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Re: Where is /etc/conf.d/net.example?
Date: Mon, 17 Mar 2014 13:40:33
Message-Id: CAHgBc-tELatpiTo_kYd8bq3PjXAM1ZbCVr4J5HYv9F+coMXPrw@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Where is /etc/conf.d/net.example? by Alan McKinnon
1 On Mon, Mar 17, 2014 at 6:45 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
2 > On 17/03/2014 10:18, Mick wrote:
3 >> On Monday 17 Mar 2014 03:21:38 eroen wrote:
4 >>> On Sun, 16 Mar 2014 22:15:59 +0200, Alan McKinnon
5 >>>
6 >>> <alan.mckinnon@×××××.com> wrote:
7 >>>> You have various choices
8 >>>>
9 >>>> - an orthodox network manager like wicd or nm
10 >>>> - a minimal network manager like connman
11 >>>> - /etc/init.d/net* scripts supplied by OpenRc
12 >>>> - no manager, do it manually
13 >>>
14 >>> Why doesn't anyone ever mention using dhcpcd for managing connections?
15 >>> It and its accompanying openrc init script are installed on almost
16 >>> every gentoo box anyway. For simple setups it should Just Work(TM)
17 >>> out-of-box.
18 >>
19 >> I can't find an /etc/conf.d/dhcpcd file. Will it use the /etc/conf.d/net file
20 >> settings, or just try to bring up all and any /etc/init.d/net.* symlinks and
21 >> get an IP address from any listening dhcp server?
22 >>
23 >
24 >
25 > I haven't used dhcpcd for a some years now, so YMMV:
26 >
27 > It doesn't have an init script, it's started by OpenRc's net.* scripts.
28 > If they are blank, OpenRc assumes a dhcp-managed interface and starts
29 > the configured dhcp provider. dhcpcd is the default for this.
30 >
31 > So, if you create /etc/init.d/net.eth0[1] and add nothing to
32 > /etc/conf.d/net, dhcpcd is most ikely what you are going to be running.
33 >
34 > [1] For the purposes of this thread, let's just assume that udev's
35 > naming-shenanigans don't exist, we all know what we mean by "eth0"
36 >
37 > --
38 > Alan McKinnon
39 > alan.mckinnon@×××××.com
40 >
41 >
42
43 /etc/init.d/dhcpcd is created when you install the package.
44 If dhcpcd is not present, I think OpenRC uses busybox's udhcpc (which
45 is generally compiled with busybox and busybox is present on all
46 Gentoo systems).