# Date:2016-06-28

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

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

# 解决:

查看日志/var/log/messages

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

发现主机总是在获得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

 

相关文章:

  • 2021-12-05
  • 2021-12-31
  • 2021-10-19
  • 2021-09-07
  • 2021-12-19
  • 2021-11-28
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-09-07
  • 2021-09-07
  • 2021-09-18
相关资源
相似解决方案