Guest User!

You are not Sophos Staff.

[7.460][BUG][NOTABUG] DHCP Annoying log entry

I am not sure if this was present in previous versions but is annoying. I personally ignore errors like this in logs but it doesn't look good.
In DHCP if you add a static entry that is included in the lease range of the dhcp server you get an error. Log snipped ...
 gatekeeper dhcpd: DHCPDISCOVER from 00:xx:5a:8a:xx:xx via eth1 
dhcpd: DHCPOFFER on 192.168.0.50 to 00:xx:5a:8a:7xx:xx via eth1 
dhcpd: Dynamic and static leases present for 192.168.0.50. 
dhcpd: Remove host declaration REF_koUUIFYFcr or remove 192.168.0.50 

The highlighted reference is annoying and the static list should be automatically added to dhcp exception list since there is no way of manually doing it via webadmin.
  • Astaro Beta Report
    --------------------------------
    Version: 7.460
    Type: BUG
    State: NOTABUG
    Reporter: Billybob
    Contributor: 
    MantisID: 
    --------------------------------
  • Hi Billybob,

    it's possible to 'translate' the internal used references into objects.
    Therefore you can use Webadmin » Support »  Advanced » Resolve REF_
  • Thanks for the hint but that is not what my main problem was. I was referring to the constant nagging log entry that 

    Dynamic and static leases present 
    Remove host declaration or remove IP_Address


    I was just saying that the dhcp server should automatically remove the static entries from the dhcp server pool so the error is not generated.
  • But this is just an 'information' ...no error message [:)]
  • I'm a little confused by this exchange.  I always establish a separate range for static IPs so that they won't overlap qwith DHCP, however...  If the Astaro knows that a static IP is inside a DHCP pool, then why "information" in a log file instead of a warning when the admin is creating the item in the Astaro?

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Bob, while advanced network gurus like yourself can play around with fancy subnet masks, most users like me just create a default LAN network 192.168.0.x/24. Then we say that give my personal file server a static address in the same range every time for easy DNS resolution. 

    This is where astaro starts generating the error messages. If the dhcp server knows the static IP, it should just be excluded silently instead of an error message. I know its an informational message but I can't do anything to fix it short of creating seperate subnets for static and dynamic IP ranges which creates more complex packet filter/proxy rules etc. Not a big deal, just hate errors in any of my logs.

    Too late for this beta anyways. They are on code freeze.
  • Bill, I'm no "advanced network guru" in this crowd!  Maybe down at the Sipango Lounge...

    So, using your example, what I learned from a real guru to set up a small network with a subnet of 192.168.0.0/24; reserve .1 through .49 for static IPs, and set up DHCP to assign .50 through .99.  Then .100 to .254 are available for testing and other special usages.  No need for any other PF/proxy rules etc. as everything is still in the 'Internal (Network)'.

    Sometimes, people want to set up an Astaro network definition for their DHCP clients just like they get with VPN clients.  In that case, since the Astaro won't accept a simple numeric range in network definitions, set the DHCP range to .64 to .95; then you can create a network definition 'DHCP Clients' with 192.168.0.64/27.

    Let's hope Lilith and team does indeed tee this one up for the 7.501 Up2Date.  It's another example of the "finishing" that will make Astaro much more successful, IMHO.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • I'm no "advanced network guru" in this crowd!  Maybe down at the Sipango Lounge...


    [[:D]][[:D]]

    You make it sound so much easier. The problem is actually coming from my laziness. I am so used to setting up exclusions in regular dhcp servers. Therefore when astaro generates the error, I get caught up in that instead of trying to find a way around it. 

    For easy explanation, the scenario is that I want to use dhcp to assign all my addresses. But for a few of those addresses (certain laptop users etc), I want the same address assigned each time without any manaul tinkering[;)]
  • That was what I understood from your first post, but I was surprised that an old salt like Billybob would set himself up for a potential conflict. [;)]

    Then, I was surprised that Lilith thought it wasn't important.  It's not often that I go, "Huh?" at each of the first two posts in a thread...
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA