Dhcpd

From Attie's Wiki
Revision as of 23:53, 25 February 2010 by Attie (Talk | contribs)

Jump to: navigation, search

Below is Attie's DHCP config file

# 10 mins default
default-lease-time 600;
# 1 day max
max-lease-time 86400;

option domain-name "local";
authoritave;

subnet 192.168.0.0 netmask 255.255.255.0 {
  option broadcast-address 192.168.0.255;
  option routers 192.168.0.254;
  option domain-name local;
  option domain-name-servers 192.168.0.251;

  # try to convince clients that DHCP should tell them what thier hostname is
  use-host-decl-names on;

  # pxe
  server-name "192.168.0.251";
  filename "./pxelinux.0";
  # this option seems to make pxe clients that complain about tsize shutup and work...
  option vendor-encapsulated-options 09:0f:80:00:0c:4e:65:74:77:6f:72:6b:20:62:6f:6f:74:0a:07:00:50:72:6f:6d:70:74:06:01:02:08:03:80:00:00:47:04:80:00:00:00:ff;

  pool {
    range dynamic-bootp 192.168.0.128 192.168.0.192;
    allow unknown-clients;
  }
  host lan.baloo             { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.1;     } # desktop
  host lan.akela             { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.2;     } # atom
  host lan.ikki              { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.3;     } # laptop (wired)
  host wlan.ikki             { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.4;     } # laptop (wireless)
  host wlan.chil             { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.5;     } # pda
  host lan.mowgli            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.6;     } # desktop (vm)
}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox