centos 8 重启网络

参考:
https://www.tecmint.com/set-static-ip-address-in-rhel-8/
https://www.tecmint.com/configure-network-connections-using-nmcli-tool-in-linux/
https://www.centos.org/forums/viewtopic.php?p=302319
https://www.certdepot.net/rhel7-configure-ipv4-addresses/

systemctl restart network centos8失效了
重启网络使用以下命令

ifdown ens192 && ifup ens192
nmcli networking off && nmcli networking on
nmcli con down enp0s3 && nmcli con up enp0s3
systemctl restart NetworkManager

···
nmtui # 设置网络
···

猜你喜欢

转载自www.cnblogs.com/wswind/p/11729892.html
今日推荐