centos6.5 配置静态IP网络

vm虚拟机

克隆出来的机器,删除/etc/sysconfig/network-scripts/ifcfg-eth0物理地址和uuid

固定ip模式

[root@hadoop1 ~]# cat  /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE="eth0"
BOOTPROTO=static
IPV6INIT="no"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR=192.168.127.128
NETMASK=255.255.255.0
GATEWAY=192.168.127.2
DNS1=8.8.8.8

你可能感兴趣的:(Linux)