[root@serverX ~]# hostnamectl set-hostname serverX.example.com
[root@serverX ~]# nmcli connection modify "System eth0" ipv4.method manual ipv4.addresses "172.25.X.11/24 172.25.X.254" ipv4.dns 172.25.254.254
[root@serverX ~]# nmcli connection modify "System eth0" connection.autoconnect yes 需要时允许自动连接
[root@serverX ~]# nmcli connection up "System eth0"
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交