Comment Re:DHCP is just akin to laziness (Score 5, Informative) 24
Wherever we work, we've found that DHCP is the perfect answer to setting up static IP addresses.
Rather than keep a spreadsheet with addresses somewhere, you use the DHCP server configuration file
- User plugs in
- User gets an IP address from the server for a 'bogus' network - not an IP on our actual subnetted class B.
- User usually complains to IT department (we love this part.)
- We check the dhcpd.leases file, which has a new entry like this:lease 192.168.1.63 {
starts 5 2003/04/18 09:49:54;
ends 6 2003/04/19 09:49:54;
hardware ethernet 00:08:02:36:da:15;
uid 01:00:08:02:36:da:15;
client-hostname "Joe's Laptop";
}This provides the current (fake) IP address the machine is on, the client host name (usually something easy to identify). We can log into the machine and make any changes to match IT policy before we put it on our actual net, with an actual router address, etc.
- Once we're satisfied this box belongs on the network, edit
/etc/dhcpd.conf and add a static address in the 'valid' network section for this box:host joeslaptop {
hardware ethernet 00:08:02:36:da:15;
fixed-address joeslaptop.internal.example.com; } - Add joeslaptop.internal.example.com to internal DNS
- Restart dhcpd
- Have user restart their computer.
All the benifits of static IP addresses, not nearly the same degree of hassle.