296 IP Addressing Commands
Command Mode
Privileged EXEC mode
User Guidelines
This command has no user guidelines.
Example
The following example deletes all entries from the host name-to-address cache.
console#clear host *
ip address
Use the ip address command in Global Configuration mode to set an IP address. To remove an
IP address, use the no form of this command.
Syntax
ip address {bootp|dhcp|none|
<ipaddress>
{
mask
|
prefix-length
}}
no ip address
•
bootp
--Sets protocol to bootp
•
dhcp
--Sets protocol to dhcp
•
none
--No protocol is set
•
ipaddress
— Specifies a valid IP address.
•
mask
— Specifies a valid subnet (network) mask IP address.
•
prefix-length
— The number of bits that comprise the IP address prefix. The prefix length
must be preceded by a forward slash (/). (Range: 1-30)
Default Configuration
The switch management interface is unconfigured by default.
Command Mode
Global Configuration mode
User Guidelines
DHCP cannot be enabled on the management interface and the out-of-band interface at the
same time.