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.
  1. On a switch, enter global configuration mode.
    switch# configure terminal
  2. Enter the no ip dhcp-client enable command to disable the DHCP client.
    switch(config)# no ip dhcp-client enable
  3. Enter the ip dhcp-client enable command to re-enable the DHCP client.
    switch(config)# ip dhcp-client enable
  4. On a router, enter the ip dhcp-client disable command to disable the DHCP client service on all physical interface and virtual interface level.
    router(config)# ip dhcp-client disable
  5. Enter the no ip dhcp-client disable command to re-enable the DHCP client service on all physical interface and virtual interface level.
    router(config)# no ip dhcp-client disable
  6. Enter interface configuration mode.
    router(config)# interface ethernet 2/1/1
  7. Enter the no ip dhcp-client enable command to disable the DHCP client.
    router(config-if-e1000-2/1/1)# no ip dhcp-client enable 
  8. Enter the ip dhcp-client enable command at the interface configuration level to re-enable the DHCP client.
    router(config-if-e1000-2/1/1)# ip dhcp-client enable
  9. Enter the ip dhcp-client enable command at the virtual interface level to re-enable the DHCP client.
    router(config-if-ve1)# ip dhcp-client enable

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
Refer to the RUCKUS FastIron Command Reference for more information on the commands used in this task.