RaspiのOSは Raspberry Pi OS Lite(64bit) を使用
OSを最新にする。
$sudo apt update && sudo apt upgrade -y
固定IPの設定
$nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected Wired connection 1
lo loopback connected (externally) lo
wlan0 wifi unavailable —
$sudo nmcli connection modify “Wired connection 1” connection.id eth0
固定IP設定
sudo nmcli connection modify eth0 ipv4.addresses 192.168.11.171/24
sudo nmcli connection modify eth0 ipv4.gateway 192.168.11.1
sudo nmcli connection modify eth0 ipv4.dns 192.168.11.1,8.8.8.8
sudo nmcli connection modify eth0 ipv4.method manual
eth0を再起動
sudo nmcli connection up eth0
ネットワーク設定の確認
nmcli -f ipv4 connection show eth0
wget -O – https://github.com/OpenMediaVault-Plugin-developers/installScript/raw/master/install | sudo bash

コメント