22-29
Catalyst 3750 SwitchSoftware Configuration Guide
OL-8550-09
Chapter22 Configuring DHCP Features and IP Source Guard Features
Configuring DHCP Server Port-Based Address Allocation
not offered to the client, and other clients are not served by the pool. By entering this command, users
can configure a group of switches with DHCP pools that share a common IP subnet and that ignore
requests from clients of other switches.
Beginning in privileged EXEC mode follow these steps to preassign an IP address and to associate it to
a client identified by the interface name.
To disable DHCP port-based address allocation, use the no ip dhcp use subscriber-id client-id global
configuration command. To disable the automatic generation of a subscriber identifier, use the no ip
dhcp subscriber-id interface-name global configuration command. To disable the subscriber identifier
on an interface, use the no ip dhcp server use subscriber-id client-id interface configuration command.
To remove an IP address reservation from a DHCP pool, use the no address ip-address client-id string
DHCP pool configuration command. To change the address pool to nonrestricted, enter the no
reserved-only DHCP pool configuration command.
In this example, a subscriber identifier is automatically generated, and the DHCP server ignores any
client identifier fields in the DHCP messages and uses the subscriber identifier instead. The subscriber
identifier is based on the short name of the interface and the client preassigned IP address 10.1.1.7.
switch# show running config
Building configuration...
Current configuration : 4899 bytes
!
version 12.2
!
hostname switch
!
no aaa new-model
clock timezone EST 0
ip subnet-zero
ip dhcp relay information policy removal pad
no ip dhcp use vrf connected
ip dhcp use subscriber-id client-id
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip dhcp pool poolname Enter DHCP pool configuration mode, and define the
name for the DHCP pool. The pool name can be a
symbolic string (such as Engineering) or an integer
(such as 0).
Step3 network network-number [mask | /prefix-length] Specify the subnet network number and mask of the
DHCP address pool.
Step4 address ip-address client-id string [ascii] Reserve an IP address for a DHCP client identified by
the interface name.
string—can be an ASCII value or a hexadecimal
value.
Step5 reserved-only (Optional) Use only reserved addresses in the DHCP
address pool. The default is to not restrict pool
addresses.
Step6 end Return to privileged EXEC mode.
Step7 show ip dhcp pool Verify DHCP pool configuration.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.