Disabling or re-enabling the DHCP client
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 global configuration mode.
- Enter the
no ip dhcp-client enablecommand to disable the DHCP client. - Enter the
ip dhcp-client enablecommand to re-enable the DHCP client. - On a router, enter the
ip dhcp-client disablecommand to disable the DHCP client service on all physical interface and virtual interface level. - Enter the
no ip dhcp-client disablecommand to re-enable the DHCP client service on all physical interface and virtual interface level. - Enter interface configuration mode.
- Enter the
no ip dhcp-client enablecommand to disable the DHCP client. - Enter the
ip dhcp-client enablecommand at the interface configuration level to re-enable the DHCP client. - Enter the
ip dhcp-client enablecommand at the virtual interface level to re-enable the DHCP client.
The DHCP client is enabled by default. The following example disables the DHCP client for a switch.
switch# configure terminal switch(config)# no ip dhcp-client enable switch(config)# ip dhcp-client enable
The following example re-enables the DHCP
client for a switch if it has been
disabled.
switch# configure terminal switch(config)# ip dhcp-client enable
The following example disables the DHCP client service on all physical interface and virtual interface levels for a router.
router# configure terminal router(config)# ip dhcp-client disable
The following example re-enables the DHCP client service on all physical interface and virtual interface level for a router.
router# configure terminal router(config)# no ip dhcp-client disable