Introducing DHCP on FreeBSD
BSDForums writes "On all but the smallest TCP/IP network, it's handy to configure network information for computers automatically. That's what DHCP does. It's easy to act as a DHCP client, but configuring a server is a little trickier. Dru Lavigne introduces DHCP and explains what you need to know to setup a simple DHCP server."
Heh heh - you're a funny guy.
;)
So what if you want to change your default gateway, your WINS server address or completely change your addressing scheme because you're linking with another network or something?
I guess you're right - only a lazy sysadm wouldn't want to visit 3000 desktops and reconfigure them manually!
And with regard to broadcast - fire up Ethereal (www.ethereal.com) and see how little DHCP clags your network compared to Netbios! Oh, you can't cos you're running static IPs! Good for you and your protestant work ethic!
G4 Hackintosh
Rather than keep a spreadsheet with addresses somewhere, you use the DHCP server configuration file /etc/dhcpd.conf as your database itself. Whenever someone puts a computer on the network, here's the process:
- 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:
- 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:
- Add joeslaptop.internal.example.com to internal DNS
- Restart dhcpd
- Have user restart their computer.
Now it gets a static IP, with matching DNS entry, and we never even need to see the damned thing. When they take their laptop home, DHCP there will give them an address that works, they don't need to configure different profiles, etc.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.
All the benifits of static IP addresses, not nearly the same degree of hassle.
For about 8 years there was DHCP support in *doze; *BSD and linux had support since I don't remember when. What's next, TCP/IP stack for openbsd ? Support for 486's in linux kernel ? How to use more than 640k ram in MS operating systems ?