配置网络
先通过命令 sudo nmcli connection show
获取到 UUID
sudo nmcli connection modify <UUID> IPv4.address 192.168.1.127/24
sudo nmcli connection modify <UUID> IPv4.gateway 192.168.1.1
sudo nmcli connection modify <UUID> IPv4.dns 8.8.8.8
sudo nmcli connection modify <UUID> IPv4.method manual
最后重启
sudo nmcli connection down <UUID>
sudo nmcli connection up <UUID>