?
Solved

Obtaining and IP Address from a DHCP Network

Posted on 1998-12-01
1
Medium Priority
?
283 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 400 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

807 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