Solved

Cisco DHCP Scope

Posted on 2004-08-09
6
3,416 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

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.
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month5 days, 23 hours left to enroll

626 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