Skip to content

Instantly share code, notes, and snippets.

@boxrick
Created November 11, 2016 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxrick/7bcca88c59ad42649e7f19c8d76e0c63 to your computer and use it in GitHub Desktop.
Save boxrick/7bcca88c59ad42649e7f19c8d76e0c63 to your computer and use it in GitHub Desktop.
DHCP
ddns-update-style interim;
allow booting;
allow bootp;
log-facility local7;
authoritative;
subnet 172.29.89.0 netmask 255.255.255.0 {
option routers 172.29.89.5;
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 43200;
next-server 172.29.89.161;
filename "/pxelinux.0";
}
subnet 172.29.64.0 netmask 255.255.255.192 {
option routers 172.29.64.5;
option domain-name-servers 172.29.120.40;
option subnet-mask 255.255.255.192;
default-lease-time 21600;
max-lease-time 43200;
next-server 172.29.89.161;
filename "/pxelinux.0";
}
group {
host host1 {
hardware ethernet aa:aa:aa:aa:aa:aa;
fixed-address 172.29.64.26;
option host-name "host1";
}
}
Nov 11 16:55:57 dhcpd dhcpd[289]: DHCPDISCOVER from aa:aa:aa:aa:aa:aa via eth0: network 172.29.89.0/24: no free leases
Nov 11 16:56:20 dhcpd dhcpd[289]: DHCPDISCOVER from aa:aa:aa:aa:aa:aa via eth0: network 172.29.89.0/24: no free leases
Nov 11 16:56:23 dhcpd dhcpd[289]: DHCPDISCOVER from aa:aa:aa:aa:aa:aa via eth0: network 172.29.89.0/24: no free leases
Nov 11 16:56:26 dhcpd dhcpd[289]: DHCPDISCOVER from aa:aa:aa:aa:aa:aa via eth0: network 172.29.89.0/24: no free leases
auto eth0
iface eth0 inet static
address 172.29.89.161
netmask 255.255.255.0
gateway 172.29.89.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment