Dhcpd

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 28: Line 28:
 
     allow unknown-clients;
 
     allow unknown-clients;
 
   }
 
   }
   host lan.baloo            { hardware ethernet 00:E0:81:B8:9F:E3; fixed-address 192.168.0.1;    } # desktop (bottom)
+
   host lan.baloo            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.1;    } # desktop
  host lan2.baloo            { hardware ethernet 00:E0:81:B8:9F:E4; fixed-address 192.168.0.2;    } # desktop (top)
+
   host lan.akela            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.2;    } # atom
   host lan.akela            { hardware ethernet 00:30:18:AC:36:66; fixed-address 192.168.0.3;    } # atom
+
   host lan.ikki              { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.3;    } # laptop (wired)
   host lan.ikki              { hardware ethernet 00:16:36:6C:63:AF; fixed-address 192.168.0.4;    } # laptop (wired)
+
   host wlan.ikki            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.4;    } # laptop (wireless)
   host wlan.ikki            { hardware ethernet 00:13:02:6E:7D:01; fixed-address 192.168.0.5;    } # laptop (wireless)
+
   host wlan.chil            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.5;    } # pda
   host wlan.chil            { hardware ethernet 00:23:76:11:25:6D; fixed-address 192.168.0.6;    } # pda
+
   host lan.mowgli            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.6;    } # desktop (vm)
   host lan.mowgli            { hardware ethernet 00:0C:29:62:E9:81; fixed-address 192.168.0.7;    } # desktop (vm)
+
 
}
 
}
 
</pre>
 
</pre>

Revision as of 23:53, 25 February 2010

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