Fedora

2022-08-24

配置网络

先通过命令 sudo nmcli connection show 获取到 UUID

Terminal window
1
sudo nmcli connection modify <UUID> IPv4.address 192.168.1.127/24
2
sudo nmcli connection modify <UUID> IPv4.gateway 192.168.1.1
3
sudo nmcli connection modify <UUID> IPv4.dns 8.8.8.8
4
sudo nmcli connection modify <UUID> IPv4.method manual

最后重启

Terminal window
1
sudo nmcli connection down <UUID>
2
sudo nmcli connection up <UUID>

参考