Solved

Obtaining and IP Address from a DHCP Network

Posted on 1998-12-01
1
244 Views
Last Modified: 2010-03-18
I am using RedHat 5.0 on a Windows NT network, that is completely set up for DHCP.  Is there a way to get the Linux machine to obtain an IP address automatically from the DHCP server?
0
Comment
Question by:smlandreth120198
1 Comment
 
LVL 4

Accepted Solution

by:
mcdonc earned 100 total points
ID: 1587734
First make sure you have dhcpcd installed, as it comes in the package dhcpcd-0.56-1.rpm on the RedHat 5.0 CD.  Do an "rpm -aq|grep dhcp" to find out.  Then (assuming you're using ethernet and you only have one network card in your PC), edit the file "/etc/sysconfig/network-scripts/ifcfg-eth0"  Add a line to the end of it that reads "BOOTPROTO=dhcp".  Place hash marks (#'s) before the lines starting with "IPADDRESS", "NETMASK", "NETWORK" and "BROADCAST".  Save the file.  Exit out of the editor and do "ifdown eth0", then "ifconfig eth0 down", then finally "ifup eth0" and "ifconfig eth0 up".  It should show you a line like "Using dhcp for...." and within about 20 seconds it should complete the command.  You can check your new IP address and other options by doing an "/sbin/ifconfig eth0".
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question