O cliente DHCP do ISC é geralmente chamado de dhclient
na maioria das distribuições do Linux. De man dhclient
:
The client normally prints no output during its startup sequence. It can be made to emit verbose messages displaying the startup sequence events until it has acquired an address by supplying the -v command line argument. In either case, the client logs messages using the syslog(3) facility.
Existem duas maneiras possíveis de ler o log do sistema. Na maioria dos sistemas que usam systemd, você precisa usar journalctl
, enquanto cat /var/log/syslog
é válido para sistemas que ainda utilizam um sistema init tradicional.
journalctl | grep -Ei 'dhcp'
para obter os registros do cliente DHCP. Caso contrário, insira cat /var/log/syslog | grep -Ei 'dhcp'
.
Veja a aparência do meu registro do cliente DHCP:
Jul 20 14:17:39 trueclient1 NetworkManager[2622]: <info> (wlan1): canceled DHCP transaction, DHCP client pid 3325
Jul 20 14:17:42 trueclient1 NetworkManager[2622]: <info> Activation (wlan1) Beginning DHCPv4 transaction (timeout in 45 seconds)
Jul 20 14:17:42 trueclient1 dhclient: Internet Systems Consortium DHCP Client 4.2.2
Jul 20 14:17:42 trueclient1 dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jul 20 14:17:42 trueclient1 NetworkManager[2622]: <info> (wlan1): DHCPv4 state changed nbi -> preinit
Jul 20 14:17:42 trueclient1 dhclient: DHCPREQUEST on wlan1 to 255.255.255.255 port 67
Jul 20 14:17:42 trueclient1 dhclient: DHCPACK from 10.8.8.1
Jul 20 14:17:42 trueclient1 NetworkManager[2622]: <info> (wlan1): DHCPv4 state changed preinit -> reboot