Hi All,
I'm wanting to tell my centos box to get a dynamic ip via cli. I know I can do "ifconfig eth0 up", or "ifconfig eth0 191.168.100.35 netmask 255.255.255.0", but, how do I tell it to send the dhcp 0.0.0.0 broadcast to the DHCP server? Cheers.
Mark Sargent.
On Sun, Mar 12, 2006 at 01:23:37AM +0900, Mark Sargent enlightened us:
I'm wanting to tell my centos box to get a dynamic ip via cli. I know I can do "ifconfig eth0 up", or "ifconfig eth0 191.168.100.35 netmask 255.255.255.0", but, how do I tell it to send the dhcp 0.0.0.0 broadcast to the DHCP server? Cheers.
For a one-time-use, dhclient ethX should do it.
Permanently, edit /etc/sysconfig/network-scripts/ifcfg-ethX.
Matt