How to configure Cisco IOS DHCP Server to log IP Address, MAC Address, and Client Hostname


We have several 2800 series Cisco routers providing DHCP services to our guest vlan's (visitors).

When an IPS incident is recorded, the sensor will record the offending IP Address, which I manually match back to the logging provided by the Cisco IOS DHCP server to the corresponding mac address.

My question and goal is that whenever a lease is assigned to a client, that the IP Address assigned, the MAC Address, and the clients Hostname are recorded to a syslog server.

So far I am unable to have the hostname recorded.

How can I have the Cisco IOS DHCP server log all three fields?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Justin EllenbeckerIT DirectorCommented:
I don't think you can because the host name is not something provided in a DHCP lease.  As far as I know a cisco device will never have a hostname for a device on its DHCP.  The only time host name is used is when you would query a DNS server or if you specify one in the IOS configuration itself for an IP.  The reason a windows DHCP server has the hostname is because of the built in ties with reverse DNS.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jon1Author Commented:
On Cisco IOS, within the ip dhcp pool options, there is an update dns command, I wonder if that would work?
Justin EllenbeckerIT DirectorCommented:
I think the update dns will just send information off about the lease that it handed out in case your clients are not setup to register but it would take some looking into the command to know for sure.  I will let you know what I find about it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.