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
Solved

Cisco DHCP Scope

Posted on 2004-08-09
6
3,413 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
  • 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

860 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