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.

I should have asked, do you have admin control over the dhcp server?
Are you able to have it assign a static IP to your server based on its
MAC address? If so why not do that, then automatically assign it that
IP without worrying about the DHCP server knowing that the IP has been
reserved for your MAC so no danger of conflict on the subnet.

Another possible solution (I'd have to do some digging to figure this
one out but I'm sure it can be done) is to monitor traffic on your NIC
with tcpdump, filtering for DHCP response. If none is captured then
assign a static IP. Here again it would rely on a script that would
run at the end of the boot cycle to check the captured traffic and
examine for that DHCP response. Much easier to simply check via
ifconfig if your card got an IP or not. However if you are looking to
take it further than that to ascertain if it even spoke with the DHCP
server then tcpdump could assist you with that.

Jacques B.

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



Relevant Pages

  • Re: Windows 2003 DHCP Monitoring
    ... I'm not sure if this is what you are looking for, but in the Performance Monitor (on the DHCP Server) you can select DHCP Server as a performance object, this allows realtime graphicsal display of the DHCP data. ... does have logs that I can check, but a monitoring tool would be ...
    (microsoft.public.windows.server.general)
  • Re: Disappearing DNS
    ... Another thing you could check is the IP address of the dhcp server when you're having the problem. ... I don't think the network monitor will help as the client receives the correct DNS settings but they then disappear completely - a /renew gets them back. ... This morning some of our clients were>> having ...
    (microsoft.public.windows.server.networking)
  • 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 ... It sounds like you have a small home network and can control things. ...
    (Fedora)
  • Re: Pix Firewall Monitoring Software on Linux
    ... application) through which I can monitor the Pix Firewall. ... should show Interface status or traffic, VPN Connectivity status, CPU ... I am also running DHCP server on Pix ... Firewall If it can monitor that also means ...
    (Fedora)
  • Re: Where comes 10.211.192.1 (UDP, Port 67) ?
    ... Network 10 is reserved for internal networks, ... It's a DHCP response from a DHCP Server at 10.211.192.1. ... Is it possible hacker? ...
    (microsoft.public.dotnet.framework.remoting)