linux 配置IP

1、确认本机网卡

2、虚拟机配置网卡

3、linux系统输入命令ifconfig 查看本机IP和MAC地址

4、编辑eth0网卡 使用命令vim /etc/sysconfig/network-scripts/ifcfg-eth0

5、wq!保存退出,使用命令service network restart 重启网卡

原文地址:https://www.cnblogs.com/dwdw/p/10976972.html