CentOS 7 设置静态IP

http://blog.csdn.net/johnnycode/article/details/40624403

http://serverfault.com/questions/660210/cant-start-centos-7-network-service

http://ephrain.pixnet.net/blog/post/61648414-%5Blinux%5D-%E8%A7%A3%E6%B1%BA-centos7-%E4%B8%8A-network-service-%E7%84%A1%E6%B3%95%E5%95%9F%E5%8B%95%E7%9A%84

使用clone 的VirtualBox镜像,启动后修改静态IP报错.

经查,需要修正正确的MAC地址,HWADDR一行, 而后reboot:

vi /etc/sysconfig/network-scripts/ifcfg-enxxx

 

YPE=Ethernet

BOOTPROTO=static #

DEFROUTE=yes

PEERDNS=yes

PEERROUTES=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_PEERDNS=yes

IPV6_PEERROUTES=yes

IPV6_FAILURE_FATAL=no

IPV6_ADDR_GEN_MODE=stable-privacy

NAME=enp0s3

UUID=40ffdbf2-eb4c-44da-922b-86ccc40bbecd

DEVICE=enp0s3

ONBOOT=yes #

HWADDR=08:00:27:3e:59:ab #

IPADDR=192.168.5.XXX

GATEWAY=192.168.5.1

NETMASK=255.255.255.0

DNS=192.168.5.1

 

posted @ 2017-01-14 11:40  庚武  Views(234)  Comments(0Edit  收藏  举报