LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-22-2004, 02:27 AM   #1
xuyxs
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
DHCP can't dynamically assign IP adress


Now I install RedHat 7.2, Firstly 7.2 didn't recognize Ethernet Card, after installed the new driver (Intel Pro 1000 MT), 7.2 can find eth0, I can manually set IP address, but DHCp doesn't work. Need help.
 
Old 12-22-2004, 02:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
i wouldn't recommend using such an old version of redhat, but the principles should still be the same. at the lowest level, to assign a DHCP addressing setup to a NIC, edit /etc/sysconfig/network-scripts/ifcfg-eth0 and set BOOTPROTO=DHCP rather than STATIC. there will be various higher level gui to do this, like netconfig.
 
Old 12-22-2004, 02:48 AM   #3
xuyxs
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I checked /etc/sysconfig/network-scripts/ifcfg-eth0, found BOOTPROTO=DHCP was already set, but miss DHCP_HOSTNMAE
item. Do I need add the machine hostname to DHCP_HOSTNMAE?
 
Old 12-22-2004, 03:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you don't need a dhcp hostname always, normally it's not needed. add one if youwant though. that should be all you need. so assuming that the interface IS eth0, starting the network script in /etc/init.d should go for dhcp. if not post what actually happens, maybe looking in /var/log/messages for info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS adress for a DHCP client ? Biased turkey Mandriva 3 01-11-2005 10:57 AM
Incorrect DHCP-IP adress pestil3nce Linux - Networking 0 10-05-2004 04:38 AM
How do I keep the local name for the computer from being dynamically assigned by DHCP slickrcbd Linux - Networking 3 03-04-2004 12:11 AM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 10:21 AM
How can I assign an IP instead of DHCP? pilot1 Linux - Networking 2 12-06-2002 03:37 PM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration