Dhcpd

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Redirected page to Ubuntu server 12.04/dhcp)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
----
+
#REDIRECT [[Ubuntu_server_12.04/dhcp]]
<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
  
&lt;code&gt;/etc/dhcp/dhcpd.conf&lt;/code&gt;:
+
<code>/etc/dhcp/dhcpd.conf</code>:
&lt;pre&gt;
+
<pre>
 
# 10 mins default
 
# 10 mins default
 
default-lease-time 600;
 
default-lease-time 600;
Line 16: Line 10:
 
max-lease-time 86400;
 
max-lease-time 86400;
  
option domain-name &quot;local&quot;;
+
option domain-name "local";
 
authoritave;
 
authoritave;
  
Line 29: Line 23:
  
 
   # pxe
 
   # pxe
   server-name &quot;192.168.0.251&quot;;
+
   server-name "192.168.0.251";
   filename &quot;./pxelinux.0&quot;;
+
   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 39: Line 33:
 
   }
 
   }
 
   host lan.baloo            { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.0.1;    } # desktop
 
   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)
 
 
}
 
}
&lt;/pre&gt;
+
</pre>

Latest revision as of 12:57, 7 August 2012

  1. REDIRECT Ubuntu_server_12.04/dhcp

Below is Attie's DHCP config file

/etc/dhcp/dhcpd.conf:

# 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
}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox