使用systemctl restart network 或 service network restart 命令重启网卡失败。 由于我使用的是centos8版本的虚拟机,所以这个命令是没有的需要使用: nmcli c reload 命令