由于Linux系统太深奥,本人纯属菜鸟一般所以只要搞懂怎么配置就好了,目前不需要弄懂为什么要那么配置!


Linux网卡配置文件的路径:

CentOS7: /etc/sysconfig/network-scripts/ifcfg-eno16777736

CentOS6: /etc/sysconfig/network-scripts/ifcfg-eth0

CentOS7.3: /etc/sysconfig/network-scripts/ifcfg-ens0


网卡配置的参数:

BOOTPROTO=static

ONBOOT=yes

NM_CONTROLLED=no

IPADDR=xxx.xxx.xxx.xxx

PREFIX=16