LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP can't dynamically assign IP adress (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-cant-dynamically-assign-ip-adress-269083/)

xuyxs 12-22-2004 02:27 AM

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.

acid_kewpie 12-22-2004 02:30 AM

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.

xuyxs 12-22-2004 02:48 AM

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?

acid_kewpie 12-22-2004 03:00 AM

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.


All times are GMT -5. The time now is 10:23 AM.