Dhcpd
From Attie's Wiki
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://efowozodije.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]= | ||
+ | ---- | ||
+ | =[http://efowozodije.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
Below is Attie's DHCP config file | Below is Attie's DHCP config file | ||
− | + | <code>/etc/dhcp/dhcpd.conf</code>: | |
− | + | <pre> | |
# 10 mins default | # 10 mins default | ||
default-lease-time 600; | default-lease-time 600; | ||
Line 8: | Line 16: | ||
max-lease-time 86400; | max-lease-time 86400; | ||
− | option domain-name | + | option domain-name "local"; |
authoritave; | authoritave; | ||
Line 21: | Line 29: | ||
# pxe | # pxe | ||
− | server-name | + | server-name "192.168.0.251"; |
− | filename | + | filename "./pxelinux.0"; |
# this option seems to make pxe clients that complain about tsize shutup and work... | # 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; | 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; | ||
Line 37: | Line 45: | ||
host lan.mowgli { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.6; } # desktop (vm) | host lan.mowgli { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.6; } # desktop (vm) | ||
} | } | ||
− | + | </pre> |
Revision as of 01:25, 24 November 2010
Below is Attie's DHCP config file
<code>/etc/dhcp/dhcpd.conf</code>: <pre>
- 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)
} </pre>