Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dhclient not logging DHCPDISCOVER, REQUESTS

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 2 Posters 755 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      ltfrebac
      last edited by

      Hi
      I am on 2.2.4 and dhclient is not logging any requests anymore. Actually, it logs these intermittently, but last was several weeks ago. Dhclient works flawlessly otherwise. Anyone else experiencing this? And why?

      This is a snip from dhcp.log from earlier:

      Jul  6 04:28:39 gw2 dhclient[39443]: DHCPREQUEST on re0 to 185.31.140.11 port 67
      Jul  6 04:28:39 gw2 dhclient[39443]: DHCPACK from 185.31.140.11
      Jul  6 04:28:39 gw2 dhclient: RENEW
      Jul  6 04:28:39 gw2 dhclient: Creating resolv.conf
      Jul  6 04:28:39 gw2 dhclient[39443]: bound to 185.57.xx.xx – renewal in 14400 seconds.
      Jul  6 08:28:39 gw2 dhclient[39443]: DHCPREQUEST on re0 to 185.31.140.11 port 67
      Jul  6 08:28:39 gw2 dhclient[39443]: DHCPACK from 185.31.140.11
      Jul  6 08:28:39 gw2 dhclient: RENEW
      Jul  6 08:28:39 gw2 dhclient: Creating resolv.conf
      Jul  6 08:28:39 gw2 dhclient[39443]: bound to 185.57.xx.xx – renewal in 14400 seconds.
      Jul  6 12:28:39 gw2 dhclient[39443]: DHCPREQUEST on re0 to 185.31.140.11 port 67
      Jul  6 12:28:39 gw2 dhclient[39443]: DHCPACK from 185.31.140.11
      Jul  6 12:28:39 gw2 dhclient: RENEW
      Jul  6 12:28:39 gw2 dhclient: Creating resolv.conf
      Jul  6 12:28:39 gw2 dhclient[39443]: bound to 185.57.xx.xx – renewal in 14400 seconds.
      Jul  6 16:28:39 gw2 dhclient[39443]: DHCPREQUEST on re0 to 185.31.140.11 port 67
      Jul  6 16:28:39 gw2 dhclient[39443]: DHCPACK from 185.31.140.11
      Jul  6 16:28:39 gw2 dhclient: RENEW

      and non working snippet:

      Aug  5 14:02:33 gw2 dhclient[5804]: bound to 185.57.xx.xx – renewal in 14400 seconds.
      Aug  5 18:02:33 gw2 dhclient: RENEW
      Aug  5 18:02:33 gw2 dhclient: Creating resolv.conf
      Aug  5 22:02:33 gw2 dhclient: RENEW
      Aug  5 22:02:33 gw2 dhclient: Creating resolv.conf
      Aug  6 02:02:33 gw2 dhclient: RENEW
      Aug  6 02:02:33 gw2 dhclient: Creating resolv.conf
      Aug  6 06:02:33 gw2 dhclient: RENEW
      Aug  6 06:02:33 gw2 dhclient: Creating resolv.conf
      Aug  6 10:02:33 gw2 dhclient: RENEW
      Aug  6 10:02:33 gw2 dhclient: Creating resolv.conf
      Aug  6 14:02:33 gw2 dhclient: RENEW
      Aug  6 14:02:33 gw2 dhclient: Creating resolv.conf
      Aug  6 18:02:33 gw2 dhclient: RENEW
      Aug  6 18:02:33 gw2 dhclient: Creating resolv.conf

      1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan
        last edited by

        Hi,

        Upstream link stays up ?
        Who is the upstream DHCP server ? If this server becomes out of order or unreachable, I do understand your logs.

        edit : obtained IP is good ? Maybe only something is wrong with the logging part.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • L Offline
          ltfrebac
          last edited by

          DHCP works ok for me, its just the logging part that I believe is somehow silenced as there should be a lot of DHCPREQ/DHCPACK to from dhcp-server.

          1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan
            last edited by

            @ltfrebac:

            …. there should be a lot of DHCPREQ/DHCPACK to from dhcp-server.

            What about a longer (server DHCP) lease time ;)
            Right now, you have 8 hours (lease will be renewed by client half way, = 4 hours or 14400 sec)

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • L Offline
              ltfrebac
              last edited by

              I think you misunderstand my issue here. I NEED dhclient to log more info to syslog as I am troubleshooting dhcp issues with my ISP. How can I get dhclient to, consistently log, all these DHCPREQUESTS and ACKS ?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.