DHCP

Troubleshooting

Voici quelques outils pour debugger du DHCP:

  • dhcping
  • dhcpdump
  • dhcptest (to be compiled)

DHClient

Ce script permet d'afficher toutes les variables donnees par le client DHCP lors de l'appel d'un hook. Ce fichier se place generalement dans /etc/dhcp/dhclient-enter-hooks.d/:
# Print messages
echo "DEBUG: DHClient event detected: ${reason} on ${interface}"
echo "DEBUG: Log file is: /tmp/dhclient_${interface}_${reason}.out"

# Do the dump
echo date >>/tmp/dhclient_${interface}_${reason}.out
echo "----printenv-----" >>/tmp/dhclient_${interface}_${reason}.out
printenv | sort >> /tmp/dhclient_${interface}_${reason}.out
echo "----set-----" >>/tmp/dhclient_${interface}_${reason}.out
set >>/tmp/dhclient_${interface}_${reason}.out
echo
Page last modified on May 11, 2016, at 07:26 PM EST