On Mon, 25 Oct 2004 15:53:16 -0700, Bob Williams wrote:
> I am configuring a Fedora Core2 Test2 system. I would like to activate
> eth0 using dhcp, but if that fails (no dhcp server on the network) I
> would like to assign a static IP address.
[..]
> If this doesn't work, I guess I could just write a script that checks if
> the interface is up after initial network startup. If not, it can
> configure the interface with a static IP address.
>
> Any suggestions?
Not sure if this will do what you are looking for...:
man dhclient-script:
"After all processing has completed, /sbin/dhclient-script checks for
the presence of an executable /etc/dhclient-exit-hooks script, which if
present is invoked using the '.' command."
AFAIK, a /etc/dhclient-exit-hooks script can be used to set the desired
default static IP address...
http://chrismetcalf.net/wiki/index.p...sForLinuxHacks
http://zeroconf.sourceforge.net/
--
mvh/regards
Joachim Mæland
If everything seems under control, you're just not going fast enough.
-Mario Andretti