Solved

Cisco DHCP Scope

Posted on 2004-08-09
6
3,415 Views
Last Modified: 2008-01-09
When setting up a DHCP scope on a Cisco router (2610 running 12.x) can you specify a range of addresses for lease?  For example my network is 192.168.1.0/24 but that doesn't mean I want the first available lease address to be 192.168.1.1.  Can I specify .150 through .250 or something like that?  My simple config is below.  Any help would be appreciated.

ip dhcp pool 441
   network 192.168.1.0 255.255.255.0
   dns-server 192.168.5.5
   default-router 192.168.1.100
   netbios-node-type h-node
0
Comment
Question by:BuildingITC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 27

Accepted Solution

by:
pseudocyber earned 125 total points
ID: 11751732
Hey BuildingITC

This document says you can't, unless you specifically exclude addresses or a range of addresses.  See paste:

Excluding IP Addresses
The DHCP server assumes that all IP addresses in a DHCP address pool subnet are available for assigning to DHCP clients. You must specify the IP address that the DHCP server should not assign to clients. To do so, use the following command in global configuration mode:

Command  Purpose  
Router(config)# ip dhcp excluded-address low-address [high-address]
 Specifies the IP addresses that the DHCP server should not assign to DHCP clients.
 
More info:  http://www.cisco.com/en/US/products/sw/iosswrel/ps1830/products_feature_guide09186a008008743b.html#35657

Hope this helps.
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 11751736
The network statement identifies the interface that will accept DHCP requests. The easiest solution is to setup an exclusion range to  exclude those addresses that you don't want to be used:

ip dhcp excluded-address 192.168.1.1 192.168.1.149

Now, the first client will get .150
0
 

Author Comment

by:BuildingITC
ID: 11751778
Pseudocyber - That will do the trick.  Thanks for the quick response!

Sorry Lrmoore... 1 minute behind ;-)  Thanks again.
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 27

Expert Comment

by:pseudocyber
ID: 11751797
LOL.  Nice to beat Lrmoore to the punch once in a while ;)  But you could have split the points BuildingITC.  Thanks again. :)
0
 

Author Comment

by:BuildingITC
ID: 11751865
Updated config for reference:

ip dhcp excluded-address 192.168.1.1 192.168.1.149
ip dhcp excluded-address 192.168.1.251 192.168.1.254
!
ip dhcp pool 441
   network 192.168.1.0 255.255.255.0
   dns-server 192.168.5.5
   default-router 192.168.1.100
   netbios-node-type h-node
   domain-name XXXXXX.XXXXX
   lease 7
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 11751964
I'm a little slow still this morning. Not enough coffee yet!

Glad you're working!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question