Orbit-Computer Solutions.Com

Computer Training & Networking Solutions
Chika Nwokeoma, EzineArticles.com Basic Author < <
 
IP
 
New Argos Catalogue Out Now  
 

Dynamically Allocating Client IP Addresses via DHCP on Cisco router

You want to configure your Cisco router to be a DHCP server and allocate dynamic IP addresses to client devices
 

Use the following configuration commands:

Router1#configure terminal
Router1(config)#ip dhcp pool
Router1(dhcp-config)#network 192.168.1.0 255.255.255.0
Router1(dhcp-config)#default-router 192.168.1.1
Router1(dhcp-config)#exit
Router1#
 
 
In the above example, we have configured the router to dynamically allocate IP addresses for the subnet 192.168.1.0/24
 

The first thing we did was to define a range of IP addresses using the network command.

Excluding addresses

To exclude some addresses, so the router doesn’t assign addresses from the entire subnet (254), in most cases, reserved for other purposes, we include the ip dhcp exclude-address command.

Router1#configure terminal
Router1(config)#ip dhcp pool 192.168.1.0/24
Router1(dhcp-config)#network 192.168.1.0 255.255.255.0
Router1(dhcp-config)#default-router 192.168.1.1
Router1(dhcp-config)#exit
Router1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.50
Router1(config)#ip dhcp excluded-address 192.168.1.200 192.168.1.255
Router1(config)#end
Router1#
 
 
 
 
 
Your Ad Here
 
 
 
 
 
 Download an eBook today

Your Ad Here         

  
Laptop Cop - 20% Off
 
Copyright 2009 - 2010. Orbit-Computer-Solutions.Com. All rights reserved.   Web Links  Privacy Policy  
 
The information provided on this website is for informational purposes only. Orbit-computer-solutions.com makes no warranties, either expressed or implied,
 with respect to any information contained on this website.
Orbit computer solutions.com reserves the right to change this policy at any time without prior notice.
Cisco and All related product mentioned in any portion of this website are the registered trademarks of Cisco.com their respective owners.
Microsoft Windows and All related products mentiond in any portion of this website are registered trademark of Microsoft Corporation.
 
Please email questions and comment to webmaster: toureg11@googlemail.com