59-24
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 59 Configuring the Cisco IOS DHCP Server
Configuration Examples for the Cisco IOS DHCP Server
Clearing DHCP Server Variables
Configuration Examples for the Cisco IOS DHCP Server
•
Example: Configuring a DHCP Database Agent or Disabling Conflict Logging, page 59-24
•
Example: Excluding IP Addresses, page 59-24
•
Example: Configuring a DHCP Address Pool, page 59-25
•
Example: Configuring Manual Bindings, page 59-27
•
Example: Configuring Static Mapping, page 59-28
•
Example: Customizing DHCP Server Operation, page 59-29
•
•
Example: Configuring DHCP Address Allocation Using Option 82, page 59-31
•
Example: Configuring a Static Route with the Next-Hop Dynamically Obtained Through DHCP,
page 59-32
Example: Configuring a DHCP Database Agent or Disabling Conflict Logging
The following example shows how to store bindings on host 172.16.4.253. The file transfer protocol is
FTP. The server waits for 2 minutes (120 seconds) before performing database changes.
Switch>
enable
Switch#
configure terminal
Switch(config)#
ip dhcp database ftp://user:[email protected]/router-dhcp write-delay
120
Switch(config)#
exit
Example: Excluding IP Addresses
In the following example, server A and server B service the subnet 10.0.20.0/24. If the subnet is split
equally between the two servers, server A is configured to allocate IP addresses 10.0.20.1 to 10.0.20.125
and server B is configured to allocate IP addresses 10.0.20.126 to 10.0.20.254.
Step 1
Switch>
enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
Switch#
clear ip dhcp binding
{
address
|
*
}
Deletes an automatic address binding from the DHCP database.
•
Specifying the address argument clears the automatic binding
for a specific (client) IP address, whereas specifying an
asterisk (*) clears all automatic bindings.
Step 3
Switch#
clear ip dhcp conflict
{
address
|
*
}
Clears an address conflict from the DHCP database.
•
Specifying the address argument clears the conflict for a
specific IP address, whereas specifying an asterisk (*) clears
conflicts for all addresses.
Step 4
Switch#
clear ip dhcp server statistics
Resets all DHCP server counters to 0.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...