Configuring DHCP
DHCP Client Configuration
Configuration Guide
411
Switch(config)#interface gigabitEthernet
1/0/5
Switch(config-if)#no switchport
Switch(config-if)#ip address-alloc
dhcp
Switch(config-if)#show ip interface brief
Interface IP-Address Method Status Protocol Shutdown
--------- ---------- ------ ------ -------- --------
Gi1/0/5 192.168.0.100/24 DHCP up up no
Switch(config-if)#end
Switch#copy running-config startup-config