Linux 配置网卡

修改配置

更改虚拟机设置为仅主机
Linux 配置网卡
取消DHCP
Linux 配置网卡
Linux 配置网卡
在设置下找到网络与Internet__在状态下找到更改适配器选项__打开VMnet1的属性___修改Internet 协议版本4 下的ip地址
Linux 配置网卡

配置网卡的四种方式

图形化操作
Linux 配置网卡
Linux 配置网卡
用nmtui命令,最后重启网卡systemctl restart network
Linux 配置网卡
Linux 配置网卡
Linux 配置网卡
编辑 /etc/sysconfig/network-scripts/ifcfg-网卡
Linux 配置网卡
Linux 配置网卡
Linux 配置网卡
通过ping查看,ping通代表成功
在主机下用win+R打开控制台输入cmd,ping 虚拟机IP地址.
Linux 配置网卡
Linux 配置网卡