11-01-2011 07:37 PM - edited 03-04-2019 02:07 PM
Hi guys,
I was trying to dig out if there was a specific command (debug and non-debug) to check the packets received (from clients), relayed to the dhcp server on cisco switches.
I could do that easily on non-cisco easily.
thanks in advance!
Regards,
Mo
11-02-2011 11:37 AM
Command | Purpose |
---|---|
Router# debug ip dhcp server {events | packets | linkage} | Enables debugging on the DHCP server. |
To display DHCP server information, use the following commands in EXEC mode, as needed:
Thanks
11-02-2011 06:03 PM
thanks for the reply Ajay.
However, I am afraid that these commands are meant to help you only if you are running dhcp server. That way you can run the debug and watch al that traffic if hitting for dhcp service.
have you tried them on dhcp relay and saw the traffic that way?
Cheers,
Mohit
11-03-2011 03:41 AM
You can use sniffer on swicth or debug ip packet using and ACL specific to source and destination.
Thanks
Ajay
03-11-2025 01:26 PM
I don't think there's a way to display DHCP Relay statistics as it exists on other switches vendors.
But you can enable debug on switch to debug DHCP relay:
debug ip udp
debug ip dhcp server packet
configure terminal
logging monitor 7
line vty 0 15
monitor
Here's an output example:
*Feb 22 17:32:41.950: DHCPD: DHCPDISCOVER received from client 012c.fe4f.85d5.20 on interface Vlan20. *Feb 22 17:32:41.950: DHCPD: setting giaddr to 10.42.32.2 *Feb 22 17:32:41.950: DHCPD: BOOTREQUEST from 012c.fe4f.85d5.20 forwarded to 10.42.0.142. *Feb 22 17:32:41.950: DHCPD: BOOTREQUEST from 012c.fe4f.85d5.20 forwarded to 10.42.88.35. *Feb 22 17:32:41.950: DHCPD: forwarding BOOTREPLY to client 2cfe.4f85.d520. *Feb 22 17:32:41.950: DHCPD: no option 125 *Feb 22 17:32:41.950: DHCPD: creating ARP entry (10.42.32.3, 2cfe.4f85.d520). *Feb 22 17:32:41.950: DHCPD: unicasting BOOTREPLY to client 2cfe.4f85.d520 (10.42.32.3).
Disable DHCP debugging after troubleshooting with the commands:
no debug ip udp no debug ip dhcp server packet configure terminal no logging monitor 7 line vty 0 15 no monitor
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