How to install set static ip address on OEL6u6 x86 64bit

时间:2015-05-19 07:10:54   收藏:0   阅读:104

1. 修改配置文件

2. 重启network

3. 查看ip


 

1. 修改配置文件

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:6B:37:AE
TYPE=Ethernet
UUID=a7f077c4-69e5-4c59-b25d-67973fde9e2b
NM_CONTROLLED=yes
ONBOOT=yes BOOTPROTO
=static IPADDR=192.168.31.248 NETMASK=255.255.255.0 GATEWAY=192.168.31.1

 

2. 重启network

# service network restart

 

3. 查看ip

# ip addr

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!