IP Addressing Commands
clear host dhcp
The clear host dhcp Privileged EXEC mode command deletes entries from the host name-to-
address mapping received from Dynamic Host Configuration Protocol (DHCP).
Syntax
clear host dhcp {name | *}
•
name — Particular host entry to remove. (Range: 1 - 158 characters.)
•
* — Removes all entries.
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC mode
User Guidelines
•
This command would delete the host name-to-address mapping temporarily until the next
renew of the IP address.
Examples
The following example deletes all entries from the host name-to-address mapping.
console# clear host dhcp *
ip address
The ip address Interface Configuration (Ethernet, VLAN, port-channel) mode command sets an
IP address. To remove an IP address, use the no form of this command.
Syntax
ip address ip-address {mask | prefix-length}
no ip address [ip-address]
•
ip-address — IP address
•
mask — Specifies the network mask of the IP address. (Range: Valid Subnet mask)
11
IP Addressing Commands
137