400
Configuring DHCP
How to Configure DHCP
Enabling DHCP Server Port-Based Address Allocation
Preassigning an IP Address
After enabling DHCP port-based address allocation on the switch, use the
ip dhcp pool
global configuration command
to preassign IP addresses and to associate them to clients. To restrict assignments from the DHCP pool to preconfigured
reservations, you can enter the
reserved-only
DHCP pool configuration command. Unreserved addresses that are part
of the network or on pool ranges are 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.
4.
ip dhcp snooping database
write-delay
seconds
Specifies the duration for which the transfer should be delayed after the
binding database changes. The range is from 15 to 86400 seconds. The
default is 300 seconds (5 minutes).
5.
end
Returns to privileged EXEC mode.
6.
ip dhcp snooping binding
mac-address
vlan
vlan-id
ip-address
interface
interface-id
expiry
seconds
(Optional) Adds binding entries to the DHCP snooping binding database.
The
vlan-id
range is from 1 to 4904. The
seconds
range is from
1 to 4294967295.
Enter this command for each entry that you add.
Note:
Use this command when you are testing or debugging the switch.
Command
Purpose
Command
Purpose
1.
configure terminal
Enters global configuration mode.
2.
ip dhcp use subscriber-id client-id
Configures the DHCP server to globally use the
subscriber identifier as the client identifier on all
incoming DHCP messages.
3.
ip dhcp subscriber-id interface-name
Automatically generates a subscriber identifier
based on the short name of the interface.
A subscriber identifier configured on a specific
interface takes precedence over this command.
4.
interface
interface-id
Specifies the interface to be configured, and enters
interface configuration mode.
5.
ip dhcp server use subscriber-id client-id
Configures the DHCP server to use the subscriber
identifier as the client identifier on all incoming DHCP
messages on the interface.
6.
end
Returns to privileged EXEC mode.
Command
Purpose
1.
configure terminal
Enters global configuration mode.
2.
ip dhcp pool
poolname
Enters DHCP pool configuration mode, and defines
the name for the DHCP pool. The pool name can be
a symbolic string (such as Engineering) or an integer
(such as 0).
3.
network
network-number
[
mask
|
/prefix-length
]
Specifies the subnet network number and mask of
the DHCP address pool.
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...