Re: basic question about assigning ip address



On 9/29/07, Peter Horst <phorst@xxxxxxxxxxxxx> wrote:
I have a Fedora machine I'm using as a home server, without a keyboard
or monitor. I'd like to set it up such that upon rebooting it first
checks to see if there is a DHCP server on the network, and if so, grabs
an ip address from it. But if there isn't one, it assigns itself a
static address. Is this doable?

Thank you.

You could run a script at the end of the re-boot to check the IP. If
no IP has been assigned then the script could assign a static one via
the ifconfig command.

Jacques B.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: [SLE] Re: Network Up, Then Down with 9.2 -- more info
    ... To get around the problem I created an rc script to bring down fetchmail, postfix and the network, then bring them up again. ... eth0 now has no ip address. ... >> I tried rebooting and going into single user mode and then manually running ...
    (SuSE)
  • Re: [Call for Testers] ACPI-CA 20071114
    ... FYI, ACPI-CA changes ... the script was being invoked from a Perl script I was ... using to set a NIC's IP address on a network that doesn't seem to ... have a DHCP server. ...
    (freebsd-current)
  • Re: basic question about assigning ip address
    ... or monitor. ... I'd like to set it up such that upon rebooting it first ... checks to see if there is a DHCP server on the network, and if so, grabs ... your server, use it as your DHCP server, too. ...
    (Fedora)
  • Re: ntp woes (and more-general questions about startup and logging)
    ... the script didn't run the "stop" ... Our 10.4 machines are 10.4.7. ... been thinking that the underlying network, ... deny) what traffic (IP + port) goes to what port. ...
    (comp.sys.mac.system)
  • Re: Modelling Complex Sentences
    ... re-inventing the network data model). ... If such as classifying node does not exist, ... Since people complained that dbd's scripts were too long, ... you typically use the CREATE/INSERT commands to ...
    (comp.databases.theory)