393
Configuring DHCP
Information About Configuring DHCP
Figure 62
User-Configured Suboption Packet Formats
Cisco IOS DHCP Server Database
During the DHCP-based autoconfiguration process, the designated DHCP server uses the Cisco IOS DHCP server
database. It has IP addresses,
address bindings
, and configuration parameters, such as the boot file.
An address binding is a mapping between an IP address and a MAC address of a host in the Cisco IOS DHCP server
database. You can manually assign the client IP address, or the DHCP server can allocate an IP address from a DHCP
address pool.
DHCP Snooping Binding Database
When DHCP snooping is enabled, the switch uses the DHCP snooping binding database to store information about
untrusted interfaces. The database can have up to 8192 bindings.
Each database entry (
binding
) has an IP address, an associated MAC address, the lease time (in hexadecimal format),
the interface to which the binding applies, and the VLAN to which the interface belongs. The database agent stores the
bindings in a file at a configured location. At the end of each entry is a checksum that accounts for all the bytes from the
start of the file through all the bytes associated with the entry. Each entry is 72 bytes, followed by a space and then the
checksum value.
To keep the bindings when the switch reloads, you must use the DHCP snooping database agent. If the agent is disabled,
dynamic ARP inspection or IP source guard is enabled, and the DHCP snooping binding database has dynamic bindings,
the switch loses its connectivity. If the agent is disabled and only DHCP snooping is enabled, the switch does not lose
its connectivity, but DHCP snooping might not prevent DHCP spoofing attacks.
When reloading, the switch reads the binding file to build the DHCP snooping binding database. The switch updates the
file when the database changes.
When a switch learns of new bindings or when it loses bindings, the switch immediately updates the entries in the
database. The switch also updates the entries in the binding file. The frequency at which the file is updated is based on
a configurable delay, and the updates are batched. If the file is not updated in a specified time (set by the write-delay
and abort-timeout values), the update stops.
Length
Length
Circuit
ID type
Suboption
type
Circuit ID Suboption Frame Format (for u
s
er-configured
s
tring):
Remote ID Suboption Frame Format (for u
s
er-configured
s
tring):
Suboption
type
Length
Length
Remote
ID type
145774
N
1
N+2
1
N
1
N+2
2
ASCII Circuit ID string
1 byte 1 byte 1 byte
N bytes (
N = 3-63)
ASCII Remote ID string or hostname
N bytes (
N = 1-63)
1 byte
1 byte 1 byte 1 byte
1 byte
Содержание 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 ...