396
Configuring DHCP
Information About Configuring DHCP
Note:
Do not enable DHCP snooping on RSPAN VLANs. If DHCP snooping is enabled on RSPAN VLANs, DHCP
packets might not reach the RSPAN destination port.
DHCP Snooping Binding Database Guidelines
Because both NVRAM and the flash memory have limited storage capacity, we recommend that you store the binding
file on a TFTP server.
For network-based URLs (such as TFTP and FTP), you must create an empty file at the configured URL before the
switch can write bindings to the binding file at that URL. See the documentation for your TFTP server to determine
whether you must first create an empty file on the server; some TFTP servers cannot be configured this way.
To ensure that the lease time in the database is accurate, we recommend that you enable and configure NTP. For
more information, see
Configuring Time and Date Manually, page 111
If NTP is configured, the switch writes binding changes to the binding file only when the switch system clock is
synchronized with NTP.
Packet Forwarding Address
If the DHCP server and the DHCP clients are on different networks or subnets, you must configure the switch with the
ip
helper-address
address
interface configuration command. The general rule is to configure the command on the Layer
3 interface closest to the client. The address used in the
ip helper-address
command can be a specific DHCP server IP
address, or it can be the network address if other DHCP servers are on the destination network segment. Using the
network address enables any DHCP server to respond to requests.
DHCP Server Port-Based Address Allocation
DHCP server port-based address allocation is a feature that enables DHCP to maintain the same IP address on an
Ethernet switch port regardless of the attached device client identifier or client hardware address.
When Ethernet switches are deployed in the network, they offer connectivity to the directly connected devices. In some
environments, such as on a factory floor, if a device fails, the replacement device must be working immediately in the
existing network. With the current DHCP implementation, there is no guarantee that DHCP would offer the same IP
address to the replacement device. Control, monitoring, and other software expect a stable IP address associated with
each device. If a device is replaced, the address assignment should remain stable even though the DHCP client has
changed.
When configured, the DHCP server port-based address allocation feature ensures that the same IP address is always
offered to the same connected port even as the client identifier or client hardware address changes in the DHCP
messages received on that port. The DHCP protocol recognizes DHCP clients by the client identifier option in the DHCP
packet. Clients that do not include the client identifier option are identified by the client hardware address. When you
configure this feature, the port name of the interface overrides the client identifier or hardware address and the actual
point of connection, the switch port, becomes the client identifier.
In all cases, by connecting the Ethernet cable to the same port, the same IP address is allocated through DHCP to the
attached device.
The DHCP server port-based address allocation feature is only supported on a Cisco IOS DHCP server and not a
third-party server.
By default, DHCP server port-based address allocation is disabled.
Port-Based Address Allocation Configuration Guidelines
These are the configuration guidelines for DHCP port-based address allocation:
Содержание 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 ...