[CentOS] Getting DHCP Via CLI
hyclak at math.ohiou.edu
Sat Mar 11 16:47:35 UTC 2006
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 220.127.116.11 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.
Department of Mathematics
Department of Social Work
More information about the CentOS