[ale] static ip network configuration

Russell L. Carter rcarter at pinyon.org
Sat Jan 11 18:19:08 EST 2025


Hi Steve,

Oh that is cool, if I understand it right.  On
debian, I *think* the ancienne style /etc/network/interfaces must be
pre-empting whatever systemd uh... network startup stuff would do.

So if interfaces(is, what, empty?) is not enabled wouldn't that
mean systemd just starts its galactic network configuration system?
I mean, if I can a install debian base and then drop your script
wherever and it works even with systemd, I'm going to reconfigure
my machines pretty soon.  Ah I just realized this could be
done by ssh at system install time.

I hate to spend time testing this stuff right now as I've got open
latex and lisp projects sprawled around.  *grumbles* if I only knew
how to work a Mac... ;-)

I tried a bunch of different window frameworks a few years ago and
decided that rather than fight the network idiom and menu forests
I'd stay with my slowly evolving over a quarter century now FVWM3
configuration along with /etc/network/interfaces.  The CLI is
going to be part of my neuron preservation strategy as I age into
ah my golden years.

Cheers,
Russell

On 1/11/25 3:26 PM, Steve Litt via Ale wrote:
> DJPfulio--- via Ale said on Wed, 8 Jan 2025 10:34:38 -0500
> 
>> Russell, Ubuntu hasn't used the "interface" file for over 5 yrs,
>> perhaps since 2017.  Ubuntu uses netplan.yaml files for non-GUI
>> setups. Humans modifying YAML pretty much sucks, but that's Ubuntu
>> thinking they need to change things that aren't broke yet again.
> 
> This is a response to the OP, not DJPfulio...
> 
> Or you can probably do it with the following very short minimal
> shellscript run from /etc/rc.local or whatever systemd runs after
> bringing up all services:
> 
> ===============================================================
> 
> ip link set dev lo up
> ip link set dev enp3s6 down
> ip addr add 192.168.100.87/24 dev enp3s6
> ip link set dev enp3s6 up
> ip route add default via 192.168.100.96
> 
> ===============================================================
> 
> The preceding shellscript does the job quite well, on pretty much any
> distro, but it gives all sorts of warnings if it has to undo networking
> done previously.
> 
> If you want something a lot more robust, portable and universal, that
> works in spite of an earlier partial or complete or erroneous network
> setup,
> read https://www.troubleshooters.com/linux/qemu/nobs.htm#hostnetworking .
> 
> As Russell said earlier in this thread, it's point and clickism that
> got you into this "I can't remember" mess in the first place.
> 
> SteveT
> 
> Steve Litt
> 
> http://444domains.com
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> https://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



More information about the Ale mailing list