[SWLUG] DHCP Client problem
Dick Porter
dick at acm.org
Wed May 29 11:20:11 UTC 2002
On Wed, May 29, 2002 at 11:17:55AM +0100, Tim Bonnell wrote:
> I have a SuSE 7.2 server at home running DHCP server
>
> When I boot my notebook in Linux at home, I DONT get a valid lease from my
> SuSE 7.2 server?
How have you configured dhcpd?
Here's how I give my printer an IP address and configuration using dhcpd. It
issues a fixed IP address, rather than a free one from a range of addresses.
(The file is /etc/dhcpd.conf on my dist):
# option definitions common to all supported networks...
option domain-name "ecgtheow.com";
option domain-name-servers reordberend.ecgtheow.com;
option subnet-mask 255.255.255.224;
default-lease-time 3600;
max-lease-time 7200;
subnet 194.168.151.160 netmask 255.255.255.224 {
# Fixed addressing only, thank you
# range 194.168.151.160 194.168.151.160;
option broadcast-address 194.168.151.191;
option routers reordberend.ecgtheow.com;
}
# Fixed IP addresses
host bewritere.ecgtheow.com {
# This is to work around a bug in the printer's bootp client - it won't
# get the config file unless it used dhcp
deny bootp;
option host-name "bewritere";
# And the printer doesn't understand the standard way of being told the
# config file location either
#filename "/boot/bewritere-config";
option option-144 "bewritere-config";
hardware ethernet 00:01:e6:46:72:7c;
fixed-address bewritere.ecgtheow.com;
}
- Dick
More information about the Swlug
mailing list