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.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...