VMware安装Linux虚拟机之桥接模式网络配置(centos8)
参考:centos7的配置:https://blog.csdn.net/fen_fen/article/details/109194836
Linux centos修改静态IP
1、cd /etc/sysconfig/network-scripts/
2、ls,查看网卡
3、编辑网卡的配置文件为如下内容
重启发现提示找不到
[root@localhost network-scripts]# systemctl restart network
Failed to restart network.service: Unit network.service not found.
重启网络命令:systemctl start network.service 或者service network restart
最后百度原因是命令不对
[root@localhost network-scripts]# nmcli c reload
查看ip是否修改
$ifconfig
ping百度看看