Hi,
On systems running Oracle Linux 7 or CentOS 7, DHCP client logging was easily readable and quite explicit. Here’s what the corresponding information in /var/log/messages
looked like:
Jun 6 08:47:56 ... dhcp4 (enp3s0): address 192.168.0.18
Jun 6 08:47:56 ... dhcp4 (enp3s0): plen 24 (255.255.255.0)
Jun 6 08:47:56 ... dhcp4 (enp3s0): gateway 192.168.0.254
Jun 6 08:47:56 ... dhcp4 (enp3s0): lease time 43200
Jun 6 08:47:56 ... dhcp4 (enp3s0): nameserver '192.168.0.254'
Is there something similar under Rocky Linux 8 ? Here’s the only scarce bit of information I could display:
$ journalctl | grep dhcp
... dhcp4 (enp3s0): state changed new lease, address=192.168.0.27
Any suggestions on how to retrieve the other bits of information (gateway, lease time, nameserver) in the logs ?