[2016-06-28]dhclient命令的进程没杀死,导致不断在向DHCP服务器获取IP

# Date:2016-06-28

# 问题:主机的配置文件/etc/sysconfig/network-scripts/ifcfg-eth0 已经配置好了静态的IP。

              但隔几分钟主机的IP就自己变化了...

# 解决:

查看日志/var/log/messages

         

发现主机总是在获得DHCP分配的地址......

查看进程:

[root@localhost network-scripts]# ps aux | grep client
root      4857  0.0  0.0   9116  1008 ?          Ss   08:52   0:00 dhclient eth0
root      7870  0.0  0.0 103252   840 pts/7    S+   10:01   0:00 grep client

好吧...kill掉...

[root@localhost network-scripts]# kill  -9  4857

 

posted @ 2016-06-28 10:26  Jelly_lyj  阅读(436)  评论(0编辑  收藏  举报