cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4582
Views
0
Helpful
3
Replies

to check the dhcp relay statistics on cisco switches

Mohit Chauhan
Level 1
Level 1

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

3 Replies 3

ajay chauhan
Level 7
Level 7

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:

Command

Purpose

Router> show ip dhcp binding [address]

Displays a list of all bindings created on a specific DHCP server.

Router> show ip dhcp conflict [address]

Displays a list of all address conflicts recorded by a specific DHCP server.

Router# show ip dhcp database [url]

Displays recent activity on the DHCP database.

Note   Use this command in privileged EXEC mode.

Router> show ip dhcp server statistics

Displays count information about server statistics and messages sent and received.


Thanks

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

You can use sniffer on swicth or debug ip packet using and ACL specific to source and destination.

Thanks

Ajay

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card