設定 static ip

副檔名必須是.network

$ vi /etc/systemd/network/enp0s8.network

[Match]
Name=enp0s8
 
[Network]
Address=192.168.56.201/24

static ip

reboot

sudo reboot