I am attempting to run the DHCP server with MAC address reservations. I have read through the topic in the networking guide, and have got it working with a dhcpd.conf file as below:
Code: Select all
#Global parameters that specify addresses and lease time.
option subnet-mask 255.255.0.0;
option routers 10.10.0.1;
option ntp-servers 10.10.1.10;
option dhcp-lease-time 86400;
#IP subnet
subnet 10.10.0.0 netmask 255.255.0.0
{
#Dynamic scope and parameters that apply to this scope overriding global params.
dynamic-dhcp range 10.10.0.100 10.10.0.200
{
option dhcp-lease-time 30000;
}
#Static binding based on MAC address
manual-dhcp 00-18-1c-01-e7-b1 10.10.10.99
{
option subnet-mask 255.255.0.0;
option routers 10.10.0.1;
}
manual-dhcp 00-18-1c-03-1a-97 10.10.11.22
{
option subnet-mask 255.255.0.0;
option routers 10.10.0.1;
}
}
Code: Select all
#Global parameters that specify addresses and lease time.
option subnet-mask 255.255.0.0;
option routers 10.10.0.1;
option ntp-servers 10.10.1.10;
option dhcp-lease-time 86400;
#IP subnet
subnet 10.10.0.0 netmask 255.255.0.0
{
#Dynamic scope and parameters that apply to this scope overriding global params.
dynamic-dhcp range 10.10.0.100 10.10.0.200
{
option dhcp-lease-time 30000;
}
#Static binding based on MAC address
manual-dhcp 00-18-1c-01-e7-b1 10.10.10.99
manual-dhcp 00-18-1c-03-1a-97 10.10.11.22
}
Julien