The DHCP client is enabled by default. You can disable or re-enable DHCP client on a switch or a router.
- On a switch, enter the global configuration mode by issuing the configure terminal command.
device# configure terminal
- Enter the no ip dhcp-client enable command to disable the DHCP client.
device(config)# no ip dhcp-client enable
- On a router, enter the interface configuration mode.
device(config)# interface ethernet 2/1/1
- Enter the no ip dhcp-client enable command to disable the DHCP client.
device(config-if-e1000-2/1/1)# no ip dhcp-client enable
- On a switch, enter the ip dhcp-client enable command to re-enable the DHCP client.
device(config)# ip dhcp-client enable
- On a router, enter the ip dhcp-client enable command at the interface configuration level to re-enable the DHCP client.
device(config-if-e1000-2/1/1)# ip dhcp-client enable