Users Guide

Table Of Contents
1178 DHCP Server Settings
DHCP Server Configuration Examples
This section contains the following examples:
Configuring a Dynamic Address Pool
Configuring a Static Address Pool
Configuring a Dynamic Address Pool
The commands in this example create an address pool that dynamically
assigns network information to hosts with DHCP clients that broadcast
DHCP messages. The hosts are assigned an IP address from the 192.168.5.0
network. The IP addresses 192.168.5.1–192.168.5.20, and 192.168.5.100 are
excluded from the address pool.
To configure the switch:
1
Enable the DHCP service and create an address pool named
“Engineering”, and then enter into DHCP pool configuration mode for
the pool.
console#configure
console(config)#service dhcp
console(config)#ip dhcp pool Engineering
2
Specify the IP addresses that are available in the pool.
console(config-dhcp-pool)#network 192.168.5.0 255.255.255.0
3
Specify the IP address to use as the default gateway.
console(config-dhcp-pool)#default-router 192.168.5.1
4
Specify the primary and secondary DNS servers the hosts will use.
console(config-dhcp-pool)#dns-server 192.168.5.10
console(config-dhcp-pool)#dns-server 192.168.5.11
clear ip dhcp conflict
{address | *}
Clear an address conflict from the DHCP Server database.
Use * to clear all conflicts.
show ip dhcp server
statistics
View DHCP server statistics.
clear ip dhcp server
statistics
Reset all DHCP server statistics to zero.
Command Purpose