Re: basic question about assigning ip address





Peter Horst 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.

Maybe this will help.

It looks like this is controlled by dhclient(1), though I'm
using a fixed IP, so I haven't tested. If a DHCP client has
connected to a server and obtained a lease, previously, it
should revert to the old lease (if it hasn't expired) when
it can't reach the server on reboot.

Old leases are maintained in /var/lib/dhclient and in
/var/lib/dhcp.

- DAW

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



Relevant Pages

  • Re: dhcp-client cleanup
    ... it would be sad if a client could reset a server. ... and might refuse to give me another lease because it thinks I already have one And since I have no access to my ISP's dhcp server configuration I cannot verify the above assumption. ... I've even tried copying over the lease file from the sarge /var/run/ but that did not work either. ...
    (comp.os.linux.networking)
  • Re: copy dhcp settings
    ... When the users have network issues your reputation as a network ... A single DHCP server could ... >> who believes it has a valid lease but that the new DHCP server knows ... I simply set the lease period ...
    (microsoft.public.windows.server.networking)
  • Re: Router
    ... for that period of time then, when the lease has expired, it has to check ... If the DHCP server is rebooted, ... Ah, right, it seems the server can invalidate all clients by broadcasting ...
    (comp.sys.acorn.networking)
  • Re: DHCP released leases go to new computers too soon
    ... If you issue an ipconfig /all, the lease period is 15 days? ... They keep getting their leases from the same server. ... The DHCP server shows 15 day leases and my computer shows 15 days. ... "Mathieu CHATEAU" wrote: ...
    (microsoft.public.windows.server.networking)
  • DDNS strangeness
    ... I have it updating the DNS server as I expect when I boot the X desktop. ... in the past (this information is stored in the lease) and does not ... This can lead to cases where the DHCP server adds a record, ...
    (freebsd-current)