I just purchased Mandrake 7.0 and got it running on a new computer. I have a home network of five workstations and would like them to be all configured to use DHCP. Can you help me do this?
Figure One: You can use netcfg to configure names, hosts, interfaces, and routing for your DHCP server.
I just purchased Mandrake 7.0 and got it running on a new computer. I have a home network of five workstations and would like them to be all configured to use DHCP. Can you help me do this?
No problem. The first thing we need to do is determine which computer will be the DHCP server. If your new Linux computer will be doing the work, then we will probably want to give it a Static IP address. Once you have the computer up and running, you can use the netcfg utility that comes with every distribution. Just bring up an xterm and su to root. Then type netcfg.
netcfg allows you to configure four basic areas — names, hosts, interfaces, and routing. In each section, fill in all the information that is relevant to your setup. For this example, I am using a class “B” IP scheme and will set the DHCPD server to the static address 10.1.0.1. (See Figure One.)
You will need to edit the properties of the eth0 interface on your Linux machine, which can be done by clicking on the interfaces button and then the edit button. Enter the…
Please log in to view this content.
Not Yet a Member?
Register with LinuxMagazine.com and get free access to the entire archive, including: