?
Solved

Obtaining and IP Address from a DHCP Network

Posted on 1998-12-01
1
Medium Priority
?
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

801 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