cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5766
Views
0
Helpful
12
Replies

DHCP commands are not working in 3750 switch

pearl2468
Level 1
Level 1

Hi ,

 

Am unable to execute sh ip dhcp command in 3750 switch and  Does it related to the below version we use ? COuld you please clarify on the same.

 

c3750-ipbase-mz.122-25.SEE2.

 

 

Regards,

P

12 Replies 12

chris noon
Level 1
Level 1

What information are you trying to see?

as a guess try, # show ip dhcp pools <pool name>

Hi

what does it show you when you tab it out , i would have thought even ipbase was ok for dhcp

show ip dhcp ? or show ip d?

Hi chris/mark ,

 

Below is the error while executing the "sh ip dhcp pool" command.

 

core1#sh ip dhcp pool
                            ^
% Invalid input detected at '^' marker.

core#

 

hi mark/chris,

 

below are the tabs when i  click on tab for that command. i couldn't see the " sh ip dhcp pool"

 

core1#sh ip dhcp ?
  binding   DHCP address bindings
  conflict  DHCP address conflicts
  database  DHCP database agents
  import    Show Imported Parameters
  relay     Miscellaneous DHCP relay information
  server    Miscellaneous DHCP server information
  snooping  DHCP snooping
core1#sh ip dhcp

That looks like DHCP function is available on the device what exactly are you having trouble viewing/doing ? when you try something like show ip dhcp server statistics it should show something like the below even if there are no pools set on the device

 

VSS-CORE#sh ip dhcp server statistics
Memory usage         5285
Address pools        0
Database agents      0
Automatic bindings   0
Manual bindings      0
Expired bindings     0
Malformed messages   100

Message              Received
BOOTREQUEST          0
DHCPDISCOVER         0
DHCPREQUEST          0
DHCPDECLINE          0
DHCPRELEASE          0
DHCPINFORM           0

Message              Sent
BOOTREPLY            0
DHCPOFFER            0
DHCPACK              0
DHCPNAK              0

 

 

 

Sorry just seen you other mail , do you have a pool available in running configuration to view , should look something like the below if you dont then that command will not work until its configured as theres no pool to view

ip dhcp pool 1
network 172.16.1.0 /24
default-router 172.16.1.100 172.16.1.101
lease 30

http://www.cisco.com/c/en/us/td/docs/ios/12_2/ip/configuration/guide/fipr_c/1cfdhcp.html

DHCP has been configured on the device.. Please see the below stats. its

 

Core#sh ip dhcp server statistics
Memory usage         6540
Address pools        2
Database agents      0
Automatic bindings   1
Manual bindings      0
Expired bindings     3786
Malformed messages   28

Message              Received
BOOTREQUEST          0
DHCPDISCOVER         7835
DHCPREQUEST          29652
DHCPDECLINE          1
DHCPRELEASE          75
DHCPINFORM           96537

Message              Sent
BOOTREPLY            0
DHCPOFFER            6704
DHCPACK              114387
DHCPNAK              304
Core#

Switch model number:Cisco WS-C3750G-24PS

 

 

You should move off that ios as below its deferred and cant be downloaded which means too many bugs

so that output shows its able to see dhcp commands and dhcp is working  but you don't have the option for that command show ip dhcp pool to use , if you move to a newer ios it should be available , 55 se8 or se 10 are good images for that platform

The device which is having the below version also doesn't work.

 

This also defered version might be as a reason?

flash:c3750-ipservices-mz.122-35.SE5/

 

The problem is not being caused by the image being deferred that is just something I noticed when I checked your IOS version you should always avoid being on and image like that it will eventually cause you problems , the version 122-35.SE5 is not in deferred state its still ok to download

The problem is the syntax is not available to check ---pool is not there

I have checked several of my 3750 models they are all running universal uimage and at least from 12.2(55)SE8 or higher and the pool statement is available in all of them

core1#sh ip dhcp ?
  binding   DHCP address bindings
  conflict  DHCP address conflicts
  database  DHCP database agents
  import    Show Imported Parameters
  relay     Miscellaneous DHCP relay information
  server    Miscellaneous DHCP server information
  snooping  DHCP snooping

Hello

Do you have dhcp configured?

sh run | in dhcp

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

msaleh.84
Level 1
Level 1

You can try below command

core1#sh ip dhcp binding

I have the same version: c3750e-universal-mz.122-35.SE5

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: