Set up a DHCP server to manage IP addresses 30
An anonymous reader writes "The second in a three-part series on how to leverage Linux to get the most from your network, this tutorial shows how to set up a Dynamic Host Configuration Protocol (DHCP) server with Internet Systems Consortium (ISC) DHCP. Sample code and configuration files are provided throughout to aid understanding."
Comp User/pass Link (Score:4, Informative)
Re:Comp User/pass Link (Score:1)
It automatically inputs the information into the user/pass field for you.
Recommended: dnsmasq (Score:5, Informative)
For small networks, I recommend using dnsmasq [thekelleys.org.uk]. It's a combined DHCP server and DNS server/proxy intended for use on a masquerading gateway that can run nearly without any configuration. Add your mac addresses to /etc/ethers for fixed IP adresses, add your hostnames to /etc/hosts, finito. There is no need to fiddle with to big servers (bind and ISC dhcpd). I use it on my (heavily modified) WRT54G [linksys.com] with about 10 to 20 systems without any problems.
Tux2000
Re:Recommended: dnsmasq (Score:2, Informative)
Re:Recommended: dnsmasq (Score:3, Insightful)
I don't know what's wrong with dnsmasq+exim (and I'm too lazy to search google), but dnsmasq is under very active development and has fixed a lot of bugs, some esotheric, some really nasty. Details are in the changelog [thekelleys.org.uk]. Perhaps the trouble with exim has already been solved. You may want to give dnsmasq a second chance. ;-)
I still use sendmail from Slackware 8 in my LAN, it just works, with both my now disabled bind and with dnsmasq 2.something. I want to change to some other mailer, but I've not yet found
Re:Recommended: dnsmasq (Score:1)
I didn't follow dnsmasq development, but quite possibly the issue has been fixed (hm, maybe I should have filed a bug report...). Tried it about a year ago and now I'm too lazy to reconfigure my box.
You may want to give dnsmasq a s
So what's the point? (Score:2, Insightful)
(OK, so I didn't actually read the article because of the requried registration...)
Re:So what's the point? (Score:2)
And while they're at it, they can google for all the other computer-related subjects that don't need to become news stories.
Re:So what's the point? (Score:5, Interesting)
This is handy if you continually resinstall operating systems on a box, and have gotten used to accessing it via a specific IP address, or whatever.
Besides, by using DHCP, you can add new hosts without doing a thing. This means your friends can come over and plug their shit in without problems, and your network will be filled with with trojans in no time.
Re:So what's the point? (Score:3, Insightful)
At the school where I work, we do exactly this. The idea is that workstations can be exact copies of a master image, but of course each must have a unique IP address. It's a lot nicer to set these up at the server, than going through the boxes separately. Especially when some of them are Windows machines.
Re:So what's the point? (Score:2)
It's also great when your friends come over and want to use your network. Just plug-in, wait for DHCP to kick in, and go.
Saves alot of typing, and retyping...
Re:So what's the point? (Score:2)
Re: (Score:3, Insightful)
Re:So what's the point? (Score:1)
IMO the broadband nat/router should be just a modem, and the computer user should set up services like that. If you have a reason for requiring DHCP on the router, then your network is likely too big to be managed by the router. Get your self a descent computer to act as
WTF? (Score:4, Funny)
Or did an editor slip up (never!) and hit the "post this" button instead of the "delete" button?
I hate being this confused on a Monday morning...
Can't be bothered to register and RTFA (Score:5, Interesting)
Once they call you and you've identified the previously unknown machine and the user and everything is OK (scan for viruses, detect worms etc), you can reassign this machine to its own reserved IP - and possibly reconfigure the relevant switch's port to take it out of the special mode that only allows it to talk to one server and not each other (not all switches support this feature).
This could help prevent unknown machines from spreading worms, or automatically getting access to your network.
How about a resource about setting up IPv6 network (Score:4, Interesting)
This is nice and all, but how about a comprehensive resource for setting up an internal network running IPv6. When adoption of IPv6 is always on the "Coming soon..." list (in North America at least), it would be nice to see an article, HOWTO, or something dealing the current setup and pitfalls.
Knowing that the tools (RADVD or DHCPv6, 6to4 gateways, DNS "AAAA" records, etc.) are out there is one thing, knowing how to get them to fit together and pull it off is another. If anybody knows how to setup an internal IPv6-only network where systems are accessible from "the outside", info would be appreciated.
Re:How about a resource about setting up IPv6 netw (Score:1)
dhcp and linux (Score:3, Insightful)
at least, after installing three Fedora boxes and a Debian box on my network, I had a hell of a time getting my networking to work on the systems, until I realised that without asking me, all of them installed a function DHCP client and server..
(Linux distribution install programs suck)
Re:dhcp and linux (Score:1)
Re:dhcp and linux (Score:2)
actually, i haven't even managed to get my debian box to ever auto-configure it's network interface at all.. i defined the configuration when i ran the installation, but it always says "failed to bring up eth0"
Re:dhcp and linux (Score:1)
Dynamic DNS (Score:3, Insightful)
Some tips on getting dhcpd and bind to "play nicely together" would be useful. It's not rocket science, but it's not exactly obvious, either.
Perhaps stupid question about DNS (Score:2)
My cheapo commercial router/firewall seems to know the "name" of each machine, as it shows that name along with the MAC and IP address in it's web page (admittedly Linux makes it a pain in the ass to locate and change this name, why can't it match the hostname automatically?). However if I do "ping " it does not work. Adding the name and IP address to my
So a couple q
Re:Perhaps stupid question about DNS (Score:2)
1. Yes. My DNS server at home does exactly this. It is a linux machine, running ipcop
2. Yes, it is done. IPCop is commercial quality. You just need to supply your own computer :).