Solved

Cisco DHCP Scope

Posted on 2004-08-09
6
3,406 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
Comment Utility
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
Comment Utility
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
Comment Utility
Pseudocyber - That will do the trick.  Thanks for the quick response!

Sorry Lrmoore... 1 minute behind ;-)  Thanks again.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
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
Comment Utility
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
Comment Utility
I'm a little slow still this morning. Not enough coffee yet!

Glad you're working!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now