Matthew Lincoln staggered into the Black Sun and said:
> How can I detect if the current Linux system has a static IP or a
> dynamic IP?
One of "pgrep dhcpcd", "pgrep pump", or "pgrep dhclient" should return a
PID if any of the major DHCP clients are running.
> How can I change the setup from static to dynamic IP assignment [and
> vice versa]?
Distro-dependent. Which distro are you using? Edit /etc/conf.d/net for
Gentoo, /etc/sysconfig/network-scripts/ifcfg-ethN for Redhat-derived
distros, and /etc/network/interfaces for Debian-derived distros.
--
I think I'll have to put on 500 pounds of subwoofers, amps, and other
delicious herbs. --MegaHAL, trained on ASR
My blog and resume:
http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see