1、Linux 配置网卡
1.1 进入network-scripts
cd /etc/sysconfig/network-scripts
1.2新建ifcfg-eth1文件,添加下列信息
NM_CONTROLLED=yes
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.56.10
NETMASK=255.255.255.0
GATEWAY=192.168.56.1
DNS1=114.114.114.114
DNS2=8.8.8.8
DEVICE=eth1
PEERDNS=no
1.3重启网卡
service network restart