Gentoo Archives: gentoo-dev

From: "Michał Górny" <gentoo@××××××××××.pl>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] openrc: oldnet vs newnet
Date: Mon, 20 Sep 2010 17:22:01
Message-Id: 20100920192125.224b6bda@pomiocik.lan
In Reply to: [gentoo-dev] openrc: oldnet vs newnet by William Hubbs
1 On Mon, 20 Sep 2010 11:16:08 -0500
2 William Hubbs <williamh@g.o> wrote:
3
4 > The drawback I see for newnet is that it does not allow the user to
5 > control each interface separately, so if you want to cycle one
6 > interface for some reason, this is not doable in that setup. I agree
7 > this is a serious drawback. Oldnet addresses this by having a
8 > separate script for each interface.
9
10 That's not entirely true. If you use DHCP indeed, 'cycling' a single
11 interface is as simple as:
12
13 $ ifconfig eth0 down
14 [...]
15 $ ifconfig eth0 up
16
17 And there's no real requirement for more action here -- dhcpcd running
18 in the background is going to automatically request IP address for that
19 interface.
20
21 > On my laptop, I have net.lo in the boot runlevel,
22 > and I start wpa_supplicant and dhcpcd in the default runlevel. In
23 > that setup, there is no need for any net.wlan* interface scriptss,
24 > because dhcpcd and wpa_supplicant manage everything.
25
26 And in that particular configuration oldnet is overly complex. You
27 could simple use network to set up lo0.
28
29 > Can pppd be set up to run standalone like wpa_supplicant can and
30 > manage the ppp portion of the interface? Do the dhcp clients
31 > recognize ppp interfaces? Afaik, there is no way for me to test this
32 > since I haven't had a ppp interface for years, and I do not know of a
33 > way to simulate one.
34
35 Not really. pppd is assigned to a single connection, and manages
36 a single interface. Unless you're going to use some kind of wrapper.
37
38 > If all of this can work, why not come up with a new version of oldnet
39 > that uses this type of setup?
40
41 The largest disadvantage in oldnet that I see is its' complexity. It
42 just wraps over everything, making the actual configuration more
43 complex than writing the actual commands.
44
45 --
46 Best regards,
47 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] openrc: oldnet vs newnet Mike Frysinger <vapier@g.o>
[gentoo-dev] Re: openrc: oldnet vs newnet Paul Arthur <flowerysong00@×××××.com>