:: [DNG] Network configuration (was Re…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Olaf Meeuwissen
Ημερομηνία:  
Προς: Ian Zimmerman
Υ/ο: dng
Παλιά Θέματα: Re: [DNG] Danger: Debian POSIX hostility
Αντικείμενο: [DNG] Network configuration (was Re: Danger: Debian POSIX hostility)
Hi Ian,

Ian Zimmerman writes:

> On 2020-09-17 20:34, Olaf Meeuwissen via Dng wrote:
>
>> apt install netplug wpasupplicant ifupdown
>
> I happen to dislike ifupdown almost as much as NetworkManager. It is a
> poorly documented opaque mess. The fact that it's a debian invention
> (AFAIK) and not an import from RH-land is about the only significant
> point in its favor.


I guess if I had to start with ifupdown anew, then perhaps yes I'd be a
bit overwhelmed by all the bells and whistles. I have been using it
pretty much from the beginning and I just skip the bits I don't need.

> The most straightforward networking setup these days, IMO, is just
> running a global instance (ie. not per-interface) of dhcpcd. dhcpcd is
> quite smart enough to do such things as bringing iterfaces "up" and
> setting up routes by itself. It can even spawn wpasupplicant kids when
> necessary.


Can dhcpcd also execute "arbitrary" commands when bringing up and taking
down interfaces? I recently had a need to spoof a MAC address for my
wireless interface, for example, and I like to hang interface specific
iptables/nftables rules onto my interfaces when/if they're up.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join