45
Switch(config-dhcp)#default-router 192.168.17.254
Lease time configure Switch(config-dhcp)#lease 300 (300 sec)
DHCP Relay Agent
Enable DHCP Relay Agent
Switch#
Switch# configure terminal
Switch(config)# router dhcp
Switch(config-dhcp)# service dhcp
Switch(config-dhcp)# ip dhcp relay information option
Enable DHCP Relay policy
Switch(config-dhcp)# ip dhcp relay information policy
replace
drop Relay Policy
keep Drop/Keep/Replace option82 field
replace
Show DHCP server
information
Switch# show ip dhcp server statistics
Switch# show ip dhcp server statistics
DHCP Server ON
Address Pool 1
network:192.168.17.0/24
default-router:192.168.17.254
lease time:300
Excluded Address List
IP Address
---------------
(list excluded address)
Manual Binding List
IP Address MAC Address
--------------- --------------
(list IP & MAC binding entry)
Leased Address List
IP Address MAC Address Leased Time Remains
--------------- -------------- --------------------
(list leased Time remain information for each entry)
Backup and Restore
Backup Startup
Configuration file
Switch# copy startup-config tftp:
192.168.2.33/default.conf
Writing Configuration [OK]