DietPiのN/W管理は従来どおりだった

昨日、Armbian OS のバージョンアップでネットワーク管理ツールが Netplan に変わっていて戸惑った記事を書きました。

ArmbianのN/W設定もNetplanになっていた – あららぼ

この記事は、別 SBC Rock64 で使っている OS DietPi について書いています。
※こちらは従来どおりの設定方法でした。

環境

バージョンアップ前

$ cat /etc/issue
Armbian 23.8.1 bullseye \l 

バージョンアップ後

$ cat /etc/issue
Debian GNU/Linux 13 \n \l

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.2
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

ネットワーク設定

従来どおりの /etc/network/interfaces だったので、さくっと設定完了。

$ ls /etc/network/
if-down.d  if-post-down.d  if-pre-up.d  if-up.d  interfaces  interfaces.d
$ ls /etc/network/interfaces.d/

$ cat /etc/network/interfaces.d/default 
# Wired adapter #1
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet static
address 192.168.***..***
netmask 255.255.255.0
gateway 192.168..***..***
dns-nameservers 8.8.8.8 8.8.4.4

$ sudo reboot