IP Addressing Commands
599
FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\CLI Folders\Dell Contax
CLI\files\IP_Addressing.fm
D E L L CO N F I D E N T I A L – P R E L I MI N A RY 5/ 1 5 /1 2 - F O R PR O O F O N LY
38
IP Addressing Commands
address
Use the
ip address
Interface Configuration (Ethernet, VLAN, Port-channel)
mode command to define an IP address for an interface. Use the
no
form of
this command
to remove an IP address definition.
Syntax
If the product is a switch router.
ip address
ip-address
{
mask
|
prefix-length
}
no ip address
[
ip-address
]
If the product is a switch only.
ip address
ip-address
{
mask
|
prefix-length
} [
default-gateway
ip-address
]
no ip address
[
ip-address
]
If the product is switch only and supports a single IP address:
ip address
ip-address
{
mask
|
prefix-length
} [
default-gateway
ip-address
]
no ip address
Parameters
•
ip-address
—Specifies the IP address.
•
mask
—Specifies the network mask of the IP address.
•
prefix-length
—Specifies the number of bits that comprise the IP address
prefix.The prefix length must be preceded by a forward slash (/). (Range:
8–30)
•
default-gateway ip-address
—Specifies the default gateway IP address.