Purpose
Command or Action
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).
ip dhcp snooping database write-delay seconds
Example:
Switch(config)#
ip dhcp snooping database
write-delay 15
Step 4
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 5
(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.
ip dhcp snooping binding mac-address vlan vlan-id
ip-address interface interface-id expiry seconds
Example:
Switch#
ip dhcp snooping binding
Step 6
Enter this command for each entry that you add.
Use this command when you are testing or debugging the switch.
0001.1234.1234 vlan 1 172.20.50.5 interface
gi1/1 expiry 1000
Enabling DHCP Server Port-Based Address Allocation
Beginning in privileged EXEC mode, follow these steps to globally enable port-based address allocation and
to automatically generate a subscriber identifier on an interface.
SUMMARY STEPS
1.
configure terminal
2.
ip dhcp use subscriber-id client-id
3.
ip dhcp subscriber-id interface-name
4.
interface interface-id
5.
ip dhcp server use subscriber-id client-id
6.
end
DETAILED STEPS
Purpose
Command or Action
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 1
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29434-01
183
Configuring DHCP
Enabling DHCP Server Port-Based Address Allocation