x
Loading
 Loading
Hello, Guest | Login | Register

Networking with DHCP

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?

Tech Support Netcfg 1
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:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Load Balancing for Application Server Administrators
  2. T6 Broadband uses Linux Routers to Maximize Availability
  3. Linux Helps Telephone Co-op Expand
  4. Aardman Animations' Observer Adventure
  5. Virtualizing Service Provider Networks with Vyatta
Follow Linux Magazine
Rackspace