Link to home
Start Free TrialLog in
Avatar of ckelso
ckelso

asked on

DHCP scope full???

Running on W2K SBS, my DHCP scope has 100 available addresses. Today I come into the office (of 10 people) and find that each address is in use! I cannot seem to find where they are being used. No ping response and they are not showing up as being leased out. There is at the most 20 nodes in the office. Leases are set to expire after 13 days.

Anyone know where these address may be going?
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Try reconciling the scope twice (right click...), maybe they haven't gone from the db properly -- does it show them in the active leases?
Avatar of ckelso
ckelso

ASKER

Dragon-it,

Nothing shows when I try reconciling the scope. 5 leases are showing as active, along with the reservations, that is 18 address' in use. 72 unaccounted for.
OK.

So under active leases does it show all these addresses, if so are they the normal icon or a RAS one (perhaps due to a modem and RAS or VPN connection on the server taking and not releasing them).

In the properties of the scope does it say 100 addresses, 100% used or 20 addresses 100 %used or whatever, in which case I would suspect someone has amended the scope by mistake -- check in the

You can dump out the config with
Start | run | cmd.exe
netsh dhcp dump > dhcp.txt
start dhcp.txt

whcih might give us some clues.  Post it here if you like.

Steve
Avatar of ckelso

ASKER

Under active leases there are 18 leases showing up. All these are correct. The scope statistics are showing 100 total addresses w/ 100 (100%) in use and 0 available. There are 82 addresses un-accounted for.


Note: I increased the scope to 140 addresses.

Output from DHCP dump:


Dhcp Server 192.168.1.100 Add Optiondef 1 "Subnet Mask" IPADDRESS 0 comment="Su
net mask in network byte order" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 2 "Time Offset" DWORD 0 comment="UCT of
set in seconds" 0
Dhcp Server 192.168.1.100 Add Optiondef 3 "Router" IPADDRESS 1 comment="Array o
 router addresses ordered by preference" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 4 "Time Server" IPADDRESS 1 comment="Ar
ay of time server addresses, by preference" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 5 "Name Servers" IPADDRESS 1 comment="A
ray of name servers [IEN 116], by preference" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 6 "DNS Servers" IPADDRESS 1 comment="Ar
ay of DNS servers, by preference" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 7 "Log Servers" IPADDRESS 1 comment="Ar
ay of MIT_LCS UDP log servers on subnet" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 8 "Cookie Servers" IPADDRESS 1 comment=
Array of cookie servers, RFC 865" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 9 "LPR Servers" IPADDRESS 1 comment="Ar
ay of RFC 1179 servers, by preference" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 10 "Impress Servers" IPADDRESS 1 commen
="Array of Imagen Impress Servers" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 11 "Resource Location Servers" IPADDRES
 1 comment="Array of RFC 887 ResLoc Servers on subnet, by preference" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 12 "Host Name" STRING 0 comment="Host n
me for client, RFC 1035 character set"
Dhcp Server 192.168.1.100 Add Optiondef 13 "Boot File Size" WORD 0 comment="Siz
 of boot image file in 512-octet blocks" 0
Dhcp Server 192.168.1.100 Add Optiondef 14 "Merit Dump File" STRING 0 comment="
ath name for crash dump file"
Dhcp Server 192.168.1.100 Add Optiondef 15 "DNS Domain Name" STRING 0 comment="
NS Domain name for client resolutions"
Dhcp Server 192.168.1.100 Add Optiondef 16 "Swap Server" IPADDRESS 0 comment="A
dress of client's swap server" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 17 "Root Path" STRING 0 comment="Path n
me for client's root disk, char set NVT ASCII"
Dhcp Server 192.168.1.100 Add Optiondef 18 "Extensions Path" STRING 0 comment="
ftp file for option extensions"
Dhcp Server 192.168.1.100 Add Optiondef 19 "IP Layer Forwarding" BYTE 0 comment
"Disable/enable IP packet forwarding on this client" 0
Dhcp Server 192.168.1.100 Add Optiondef 20 "Nonlocal Source Routing" BYTE 0 com
ent="Disable/enable nonlocal datagrams" 0
Dhcp Server 192.168.1.100 Add Optiondef 21 "Policy Filter Masks" IPADDRESS 1 co
ment="Destination/mask IP address pairs to filter source routes" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 22 "Max DG Reassembly Size" WORD 0 comm
nt="Maximum size datagram for reassembly by client; max 576" 0
Dhcp Server 192.168.1.100 Add Optiondef 23 "Default IP Time-to-live" BYTE 0 com
ent="Default TTL for client's use on outgoing DGs" 0
Dhcp Server 192.168.1.100 Add Optiondef 24 "Path MTU Aging Timeout" DWORD 0 com
ent="Timeout in seconds for aging Path MTU values; RFC 1191" 0
Dhcp Server 192.168.1.100 Add Optiondef 25 "Path MTU Plateau Table" WORD 1 comm
nt="MTU discovery sizes, sorted by size, all >= 68" 0
Dhcp Server 192.168.1.100 Add Optiondef 26 "MTU Option" WORD 0 comment="MTU dis
overy size, >= 68" 0
Dhcp Server 192.168.1.100 Add Optiondef 27 "All subnets are local" BYTE 0 comme
t="The client assumes that all subnets are local" 0
Dhcp Server 192.168.1.100 Add Optiondef 28 "Broadcast Address" IPADDRESS 0 comm
nt="Broadcast address" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 29 "Perform Mask Discovery" BYTE 0 comm
nt="The client should use ICMP for subnet mask discovery." 0
Dhcp Server 192.168.1.100 Add Optiondef 30 "Mask Supplier Option" BYTE 0 commen
="The client should respond to subnet mask requests via ICMP." 0
Dhcp Server 192.168.1.100 Add Optiondef 31 "Perform Router Discovery" BYTE 0 co
ment="The client should solicit routers using RFC 1256." 0
Dhcp Server 192.168.1.100 Add Optiondef 32 "Router Solicitation Address" IPADDR
SS 0 comment="Address to use for router solicitation" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 33 "Static Route Option" IPADDRESS 1 co
ment="Destination/router address pairs, in priority order" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 34 "Trailer Encapsulation" BYTE 0 comme
t="The client should negotiate use of trailers (RFC 983)." 0
Dhcp Server 192.168.1.100 Add Optiondef 35 "ARP Cache Timeout" DWORD 0 comment=
Timeout in seconds for ARP cache entries" 0
Dhcp Server 192.168.1.100 Add Optiondef 36 "Ethernet Encapsulation" BYTE 0 comm
nt="0=>client should use ENet V2; 1=> IEEE 802.3" 0
Dhcp Server 192.168.1.100 Add Optiondef 37 "TCP Default Time-to-live" BYTE 0 co
ment="TTL that client uses when sending TCP segments" 0
Dhcp Server 192.168.1.100 Add Optiondef 38 "Keepalive Interval" DWORD 0 comment
"Keepalive timeout in seconds" 0
Dhcp Server 192.168.1.100 Add Optiondef 39 "Keepalive Garbage" BYTE 0 comment="
end garbage octet" 0
Dhcp Server 192.168.1.100 Add Optiondef 40 "NIS Domain Name" STRING 0 comment="
ame of Network Information Service domain"
Dhcp Server 192.168.1.100 Add Optiondef 41 "NIS Servers" IPADDRESS 1 comment="A
dresses of NIS servers on client's subnet" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 42 "NTP Servers" IPADDRESS 1 comment="A
dresses of Network Time Protocol servers" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 44 "WINS/NBNS Servers" IPADDRESS 1 comm
nt="NBNS Address(es) in priority order" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 45 "NetBIOS over TCP/IP NBDD" IPADDRESS
1 comment="NetBIOS over TCP/IP NBDD address(es) in priority order" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 46 "WINS/NBT Node Type" BYTE 0 comment=
0x1 = B-node, 0x2 = P-node, 0x4 = M-node, 0x8 = H-node" 0
Dhcp Server 192.168.1.100 Add Optiondef 47 "NetBIOS Scope ID" STRING 0 comment=
NetBIOS over TCP/IP Scope ID"
Dhcp Server 192.168.1.100 Add Optiondef 48 "X Window System Font" IPADDRESS 1 c
mment="Array of X Windows font servers" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 49 "X Window System Display" IPADDRESS
 comment="Array of X Windows Display Mgr servers" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 51 "Lease" DWORD 0 comment="Client IP a
dress lease time in seconds" 0
Dhcp Server 192.168.1.100 Add Optiondef 58 "Renewal (T1) Time Value" DWORD 0 co
ment="Time between addr assignment to RENEWING state" 0
Dhcp Server 192.168.1.100 Add Optiondef 59 "Rebinding (T2) Time Value" DWORD 0
omment="Time from addr assignment to REBINDING state" 0
Dhcp Server 192.168.1.100 Add Optiondef 64 "NIS+ Domain Name" STRING 0 comment=
The name of the client's NIS+ domain."
Dhcp Server 192.168.1.100 Add Optiondef 65 "NIS+ Servers" IPADDRESS 1 comment="
 list of IP addresses indicating NIS+ servers" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 66 "Boot Server Host Name" STRING 0 com
ent="TFTP boot server host name"
Dhcp Server 192.168.1.100 Add Optiondef 67 "Bootfile Name" STRING 0 comment="Bo
tfile Name"
Dhcp Server 192.168.1.100 Add Optiondef 68 "Mobile IP Home Agents" IPADDRESS 1
omment="Mobile IP home agents in priority order" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 69 "Simple Mail Transport Protocol (SMT
) Servers" IPADDRESS 1 comment="List of SMTP servers available to the client" 0
0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 70 "Post Office Protocol (POP3) Servers
 IPADDRESS 1 comment="List of POP3 servers available to the client" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 71 "Network News Transport Protocol (NN
P) Servers" IPADDRESS 1 comment="List of NNTP servers available to the client"
.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 72 "World Wide Web (WWW) Servers" IPADD
ESS 1 comment="List of WWW servers available to the client" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 73 "Finger Servers" IPADDRESS 1 comment
"List of Finger servers available to the client" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 74 "Internet Relay Chat (IRC) Servers"
PADDRESS 1 comment="List of IRC servers available to the client" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 75 "StreetTalk Servers" IPADDRESS 1 com
ent="List of StreetTalk servers available to the client" 0.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 76 "StreetTalk Directory Assistance (ST
A) Servers" IPADDRESS 1 comment="List of STDA servers available to the client"
.0.0.0
Dhcp Server 192.168.1.100 Add Optiondef 1 "Microsoft Disable Netbios Option " D
ORD 0 vendor="Microsoft Options" comment="Option for enabling or disabling Netb
os for Microsoft Windows 2000 Clients" 1
Dhcp Server 192.168.1.100 Add Optiondef 2 "Microsoft Release DHCP Lease On Shut
own Option" DWORD 0 vendor="Microsoft Options" comment="Option for enabling or
isabling Windows 2000 Clients to release DHCP lease on shutdown" 0
Dhcp Server 192.168.1.100 Add Optiondef 3 "Microsoft Default Router Metric Base
 DWORD 0 vendor="Microsoft Options" comment="Default Router Base Metrics for Mi
rosoft Windows 2000 Clients" 0
Dhcp Server 192.168.1.100 Add Optiondef 1 "Microsoft Disable Netbios Option " D
ORD 0 vendor="Microsoft Windows 2000 Options" comment="Option for enabling or d
sabling Netbios for Microsoft Windows 2000 Clients" 1
Dhcp Server 192.168.1.100 Add Optiondef 2 "Microsoft Release DHCP Lease On Shut
own Option" DWORD 0 vendor="Microsoft Windows 2000 Options" comment="Option for
enabling or disabling Windows 2000 Clients to release DHCP lease on shutdown" 0
Dhcp Server 192.168.1.100 Add Optiondef 3 "Microsoft Default Router Metric Base
 DWORD 0 vendor="Microsoft Windows 2000 Options" comment="Default Router Base M
trics for Microsoft Windows 2000 Clients" 0

# =====================================
#     Add Optiondef End
# ====================================


# =====================================
#     Set Optionvalue
# =====================================


# =====================================
#     Set Optionvalue End
# =====================================


Dhcp Server  Set AuditLog "C:\WINNT\System32\dhcp"
Dhcp Server  Set DatabaseBackupInterval 60
Dhcp Server  Set DatabaseBackupPath "C:\WINNT\System32\dhcp\backup"
Dhcp Server  Set DatabaseCleanupInterval 1440
Dhcp Server  Set DatabaseLoggingFlag 1
Dhcp Server  Set DatabaseName "dhcp.mdb"
Dhcp Server  Set DatabasePath "C:\WINNT\System32\dhcp"
Dhcp Server  Set DatabaseRestoreFlag 0
Dhcp Server  Set DetectConflictRetry 0

# =====================================
#     Add Scope
# =====================================

Dhcp Server 192.168.1.100 add scope 192.168.1.0 255.255.255.0 "One hundred to O
e Hundred ninety nine" ""
Dhcp Server 192.168.1.100 Scope 192.168.1.0 set state 1

   # ======================================================================
   #  Start Add Ipranges to the Scope 192.168.1.0, Server 192.168.1.100

   # ======================================================================


Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add iprange 192.168.1.101 192.168.1
240

   # ======================================================================
   #  End   Add Ipranges to the Scope 192.168.1.0, Server 192.168.1.100

   # ======================================================================


   # ======================================================================
   #  Start Add Excluderanges to the Scope : 192.168.1.0, Server : 192.168.1.10

   # ======================================================================



   # ======================================================================
   #  End   Add Excluderanges to the Scope : 192.168.1.0, Server : 192.168.1.10

   # ======================================================================


   # ======================================================================
   #  Start Add OptionValues to the Scope : 192.168.1.0, Server : 192.168.1.100

   # ======================================================================


Dhcp Server 192.168.1.100 Scope 192.168.1.0 set optionvalue 3 IPADDRESS "192.16
.1.1"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 set optionvalue 6 IPADDRESS "192.16
.1.100"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 set optionvalue 15 STRING "altares.
a"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 set optionvalue 51 DWORD "691200"

   # ======================================================================
   #  End   Add OptionValues to the Scope : 192.168.1.0, Server : 192.168.1.100

   # ======================================================================


   # ======================================================================
   #  Start Add ReservedIp to the Scope : 192.168.1.0, Server : 192.168.1.100

   # ======================================================================


Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.104 000d60
7683e "Workstation.altares.ca" "The Workstation" "DHCP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.105 001321
62b8e "NPI262B8E.altares.ca" "Gary's printer" "BOOTP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.107 004005
24b79 "brian.altares.ca" "Brian's Notebook" "DHCP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.108 00028a
4f629 "LARA31.altares.ca" "Grant's Notebook" "DHCP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.109 001279
c5c08 "LARTAMMY.altares.ca" "Reservation for remote access" "DHCP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.112 001321
f96af "LARFHAIGHT.altares.ca" "" "DHCP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.122 001185
bd61f "LARACCT.altares.ca" "Danny's Desktop" "DHCP"
Dhcp Server 192.168.1.100 Scope 192.168.1.0 Add reservedip 192.168.1.124 001185
4093a "LARBRIAN.altares.ca" "Brian's Desktop" "DHCP"

   # ======================================================================
   #  End   Add ReservedIp to the Scope : 192.168.1.0, Server : 192.168.1.100
Strange, all looks perfectly normal.  Sometimes when you dump it out it helps to see things that get missed otherwise.
Was range 101 to 199 presumably and as you say you've increased it upto 240 with the standard options as expected.

Having increased it to 140 now does it still show 140 in use / 0 free or 100 in use, 40 free now BTW?

You can dump out more info still with:

cmd.exe
netsh dhcp server show all > dhcp2.txt
start dhcp2.txt
netsh dhcp server scope 192.168.1.0 show clients > dhcp3.txt
start dhcp3.txt

should give you a list of the current leases and other settings.

Steve
>>Leases are set to expire after 13 days

Any reason why you're running the leases for 13 days?  Could you change that to say 24 hours?
Avatar of ckelso

ASKER

I increased the scope again and reduced the leases to 3 days. Upon return to the site, all addresses had once again been used.


Dragon-it: I ran those commands and nothing appeared out of the ordinary. Once again it showed all addresses used and only showed the clients which are accounted for. The "missing" used addresses are still nowhere to be found.


Pseudocyber: No particular reason that I know of. I was not the original IT guy for this site and I never bothered to change it. I believe the default is 8 days and dropping it to 24hours would just increase unnecessary traffic.


Any other thoughts?
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ckelso

ASKER

Well I reconciled the scope about 10 times then it finally released all the "extra" address'. Its been about 5 days now and everything seems good.

Note: Meant to give an A, not a B.
Well it was an odd problem! I'll pop a Q to Community support to change the grade as you suggested it, sorry couldn't help you more specifically later.  As you know everything you had was right.  One way you can do and I didn't want to advise willy nilly is actually to export everything using netsh dhcp export then delete the dhcp database and netsh dhcp import but as I say wouldn;t like to advise people to delete a working system in case it didn't work!

thanks

Steve