01-15-2015 10:31 AM - edited 03-07-2019 10:14 PM
Hi
We have several layer 3 switches that are acting as DHCP servers. How can I easily log DHCP user information to our syslog server? I've seen some posts about using Debug. I don't think that's going to scale for my needs.
thanks
Dan
01-16-2015 01:33 AM
As i know there is no casual logging for DHCP. You can use only debug for it or SNMP. So if you can't use debug, you can try log it via SNMP. There is a lot of open source solutions for SNMP like Zabbix.
01-16-2015 03:05 AM
check ip dhcp database command. AFAIK it's used to store dhcp informations to remote hosts (via ftp for example, not syslog)
http://www.cisco.com/c/en/us/td/docs/ios/12_2/ip/configuration/guide/fipr_c/1cfdhcp.html#wp1018925
10-15-2018 10:29 AM
Yes, but I believe it is only used to store information on statically assigned DHCP bindings. So it is really useful if you wish to manually assign IPs and keep a backup of the exact bindings (IP to MAC-Address), but it wouldn't be useful for automatically assigned IPs.
A form of syslog would be useful for record-keeping if it only retained the info that the DHCP database does.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide