DHCP Server Problem on IOS

gibby1801gibby1801 Posts: 14Member ■□□□□□□□□□
I have a dhcp server running on a router. Here is the config:

ip dhcp pool HotSpot
network 192.168.0.128 255.255.255.128
domain-name joshuagibson.com
dns-server 192.33.4.12 199.166.31.3
default-router 192.168.0.130
lease 0 1

If I do "show ip dhcp pool" I get this:

Pool CSCM_Vendor_HotSpot :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 126
Leased addresses : 2
Pending event : none
1 subnet is currently in the pool :
Current index IP address range Leased addresses
0.0.0.0 192.168.0.129 - 192.168.0.254 2

My question is:

Why does my CURRENT INDEX keep turning to 0.0.0.0 when only 2 addresses are leased?


I think there is an IOS bug.

Any help understanding this will be appreciated!

Josh Gibson, CCNA
Josh Gibson
CCNA

Comments

  • larkspurlarkspur Posts: 235Member
    did you define a ip dhcp database?
    just trying to keep it all in perspective!
  • gibby1801gibby1801 Posts: 14Member ■□□□□□□□□□
    I sure did not. What exactly is a dhcp database?
    Josh Gibson
    CCNA
  • larkspurlarkspur Posts: 235Member
    The dhcp databsae provides the ability to dynamicaly configure options such as dns and wins.

    i have always created the dhcp database before i configure the dhcp pool.

    I looked at the output from your sh ip dhcp pool and compared to one of mine.

    my indexes were popoulated.

    Pool int-192.168.111 :
    Utilization mark (high/low) : 100 / 0
    Subnet size (first/next) : 0 / 0
    Total addresses : 62
    Leased addresses : 19
    Pending event : none
    1 subnet is currently in the pool :
    Current index IP address range Leased addresses
    192.168.111.1 192.168.111.1 - 192.168.111.62 19


    dhcp database
    ip dhcp database 192.168.111.0
    no ip dhcp use vrf connected
    ip dhcp excluded-address 192.168.111.1 192.168.111.16

    depending on what typre of nodes you're servering dhcp to this may not be an issue. check the link for mor einfo on dhcp databsae.

    http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/ip_r/iprprt1/1rddhcp.htm

    HTH!!
    just trying to keep it all in perspective!
  • GrymGrym Posts: 31Member ■■□□□□□□□□
    Hmm, i don't have a DHCP database set up but as you can see I have the current index showing...

    Pool DHCP-POOL :
    Utilization mark (high/low) : 100 / 0
    Subnet size (first/next) : 0 / 0
    Total addresses : 254
    Leased addresses : 1
    Pending event : none
    1 subnet is currently in the pool :
    Current index IP address range Leased addresses
    192.168.200.7 192.168.200.1 - 192.168.200.254 1

    here is my config for dhcp:

    Main_Router#show run | begin dhcp
    no ip dhcp conflict logging
    ip dhcp excluded-address 192.168.200.1 192.168.200.4
    !
    ip dhcp pool DHCP-POOL
    network 192.168.200.0 255.255.255.0
    dns-server 68.94.156.1 68.94.157.1
    default-router 192.168.200.1
    domain-name xxxxxxxxx

    One thing you might want to try taking out is the command lease 0 1, I know this just changes your lease to one hour, but it might be conflicting with your index number...then again probably has nothing to do with it..

    HTH
Sign In or Register to comment.