1,linux系统配置网卡:vim /etc/sysconfig/network-scripts/ifcig-eth0

   
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="00:0C:29:E8:1E:4A"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"


DEVICE=“eth0”

BOOTPROTO="none"

HWADDR="xxxxxxx"

IPADDR=192.168.1.1

NETMASK=255.255.255.0

2.DNS

vim /ect/resolv.conf

nameserver  8.8.8.8

3,网关

vim /etc/sysconfig/network

GATE=192.168.1.1