Solved

Obtaining and IP Address from a DHCP Network

Posted on 1998-12-01
1
233 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now