vm里linux网络配置

vi /etc/sysconfig/network-script/ifcfg-eth0

DEVICE=eth0
HWADDR=00:0C:29:C8:14:97
TYPE=Ethernet
UUID=85fe6935-3a3e-490c-8011-355804b1623e
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.2.187
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
DNS1=8.8.8.8
DNS2=114.114.114
USERCLT=yes
ARPCHECK=no

设置好保存. /etc/sysconfig/network-script/ifcfg-eth

重启 service network restart

posted @ 2016-10-15 19:00  黄步欢  阅读(189)  评论(0编辑  收藏  举报