Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to reconfigure NIC in RH 7.3?

Status
Not open for further replies.

JBruyet

IS-IT--Management
Apr 6, 2001
1,200
US
Hey all,
I configured my RH box with a static IP address. I now have a DHCP server running (my home network) and I can't find out how to reconfigure my NIC to get it's IP address from the DHCP server. I've looked everywhere that I can think of but nothing I've found allows me to change the setup of the card. Any ideas?

Thanks,

Joe Brouillette
 

1: edit the ifcfg-eth script: /etc/sysconfig/network-scripts/ifcfg-eth0

change BOOTPROTO=static or BOOTPROTO=none
to BOOTPROTO=dhcp.

2: Edit /etc/hosts
remove the line that has previous ip.
on the line that has 127.0.0.1 add the fully qualified domain name and shortname.
Will look something like this
127.0.0.1 localhost.localdomain localhost mylinuxbox.mydomain mylinuxbox

3: Restart networking
type service network restart
You should be using DHCP now.

That is it.

 
For a quick and dirty fix, try &quot;pump -i <interface, like 'eth0'> -h <your hostname, like bubbles.com or something>&quot;. Requires that pump be installed, but otherwise a quick way to make it happen. --
JR
 
Thanks you all, but I now have 8.0 loaded and within 8.0 there is an option to configure the NIC manually for DHCP or static IP.

Thanks again,

Joe Brouillette
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top