Solved

Obtaining and IP Address from a DHCP Network

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add a new SAN disk to a linux vmware box 8 37
Install dhcp server on Ubuntu server 4 78
Linux neworking 4 116
How to get IPA working with samba on RHEL 6? 1 98
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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