I am running a PC with centos Linux. I have two ethernet ports. One configured as DHCP server and the other to use DHCP to obtain IP address(client). I am interested in getting the history of lease times I got and provided. Is there a log file with that data?

  • Possible duplicate of How to see what DHCP client does? – DavidPostill Jun 3 '16 at 21:55
  • I believe these logs are kept in your router. Log into your router, they should be logged there. – ejbytes Jun 4 '16 at 1:37
  • 1
    Thanks @DavidPostill the answer was for Ubuntu but it helped me to find the right way doing it on centos – YuvalJ Jun 7 '16 at 20:25

it is in /var/log/messages (thanks to David for mentioning How to see what DHCP client does?) var/log/syslog in Ubuntu equivalent to var/log/messages in centos

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.