I have a server running Ubuntu 11.04, deployed in the field. When someone is debugging the server, they plug eth1 in, but the rest of the time, nothing is plugged into eth1. The syslog is full of DHCPDISCOVER
requests from dhclient
trying to find a connection. Is there any way I can configure dhclient
to only run DHCPDISCOVER
a fixed number of times?
Syslog entries every:
Nov 2 07:58:32 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
Nov 2 07:58:35 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
Nov 2 07:58:39 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
Nov 2 07:58:47 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15
Nov 2 07:59:02 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
Nov 2 07:59:15 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
Nov 2 07:59:29 sensor-2bb8 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
Nov 2 07:59:33 sensor-2bb8 dhclient: No DHCPOFFERS received.
Nov 2 07:59:33 sensor-2bb8 dhclient: No working leases in persistent database - sleeping.
Contents of /etc/network/interfaces
:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet dhcp