centos增加内网设置

编辑网卡(此网卡需要链接了内网)

进入内网网卡命令:vi /etc/sysconfig/network-scripts/ifcfg-em2

编辑:

DEVICE=”em2″
ONBOOT=”yes”
HWADDR=”34:17:EB:E8:00:48″
ARPCHECK=no
GATEWAY=”192.168.1.1″
IPADDR=”192.168.2.2″
NETMASK=”255.255.255.0″

保存

重启:service network restart

原创文章,作者:kinpo, k,如若转载,请注明出处:https://www.yidc.net/archives/18383