一.修改配置

1.更改虚拟机设置为仅主机

linux - 配置网卡

2.取消DHCP

linux - 配置网卡
linux - 配置网卡
3.在设置下找到网络与Internet__在状态下找到更改适配器选项__打开VMnet1的属性___修改Internet 协议版本4 下的ip地址linux - 配置网卡

二.配置网卡的四种方式

1.图形化操作
linux - 配置网卡
linux - 配置网卡
2.用nmtui命令,最后重启网卡systemctl restart network
linux - 配置网卡
linux - 配置网卡
linux - 配置网卡
3.编辑 /etc/sysconfig/network-scripts/ifcfg-网卡
linux - 配置网卡
linux - 配置网卡
4.用nm-connection-editor
linux - 配置网卡
linux - 配置网卡

相关文章: