公司安装海康威视定制Centos7,安装模式是Core
以下是可用的上网配置参数
vim /etc/sysconfig/network-scripts/ifcfg-em1 TYPE=Ethernet BOOTPROTO=static #BROADCAST=192.168.11.255 IPADDR=192.168.11.199 HWADDR=18:66:da:fb:6b:00 NETMASK=255.255.255.0 GATEWAY=192.168.11.1 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no IPV6_AUTOCONF=no IPV6_DEFROUTE=no IPV6_FAILURE_FATAL=no NAME=em1 UUID=0eaa9a86-f99f-4b5a-8a97-644195b19560 DEVICE=em1 ONBOOT=yes PEERDNS=yes PEERROUTES=yes IPV6_PEERDNS=no IPV6_PEERROUTES=no DNS1=61.177.7.1 DNS2=221.228.255.1 service network restart