我有一台 Debian 7.1 机器,它是我们运行 snort 的内部入侵检测系统。它已经开始在我身上剥落,即使我将它设置为静态也会提取 DHCP 地址。这种情况每隔几个小时就会发生一次。
这是我的 /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0 eth1
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.10.10.107
netmask 255.255.255.0
gateway 10.10.10.1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ifconfig $IFACE promisc
down ifconfig down
Run Code Online (Sandbox Code Playgroud)
有可能network-manager
或wicd
正在运行。禁用/卸载它。可以暂时停止network-manager
使用service network-manager stop
。
dhclient
后台也可能有一些程序。跑
ps ax | grep [d]hclient
Run Code Online (Sandbox Code Playgroud)
或者
pgrep dhclient
Run Code Online (Sandbox Code Playgroud)
所以检查是否有 DHCP 客户端正在运行。您可以通过killall dhclient
.
理论上,还有其他名称不同的 DHCP 客户端,但不太可能安装它们。
归档时间: |
|
查看次数: |
3809 次 |
最近记录: |