Package: dhcp3-client Version: 3.0.4-10 Severity: minor Tags: patch Using a static lease without default gateway as fallback in case there is no available DHCP server...
/etc/dhcp3/dhclient.conf: ... lease { interface "eth4"; fixed-address 10.0.0.7; option subnet-mask 255.255.255.0; expire 0 2022/11/17 10:00:55; } ...causes the following error (ping without any destination address): # /etc/init.d/networking start Configuring network interfaces...Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth4/00:16:cb:98:29:93 Sending on LPF/eth4/00:16:cb:98:29:93 Sending on Socket/fallback DHCPDISCOVER on eth4 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth4 to 255.255.255.255 port 67 interval 4 No DHCPOFFERS received. Trying recorded lease 10.0.0.7 Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination No working leases in persistent database - sleeping. done. The following small change to /sbin/dhclient-script allows leases without any default gateway: # diff /sbin/dhclient-script.orig /sbin/dhclient-script.patch 209c209 < if ping -q -c 1 $first_router; then --- > if [ -z "$first_router" ] || ping -q -c 1 $first_router; then This should be usefull for small networks without any (always available) router and DHCP server. -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Versions of packages dhcp3-client depends on: ii debconf [debconf-2.0] 1.5.9 Debian configuration management sy ii debianutils 2.17.3 Miscellaneous utilities specific t ii dhcp3-common 3.0.4-10 Common files used by all the dhcp3 ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries dhcp3-client recommends no packages. -- debconf information: dhcp3-client/dhclient-needs-restarting: dhcp3-client/dhclient-script_moved: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]