CLI Guide

Table Of Contents
Switch Management Commands 2051
User Guidelines
This command is not available on the N1100-ON/N1500/N2000/N2100-
ON/N2200-ON Series switches.
Example
console(config)#interface out-of-band
console(config-if)#
ip address
Use the ip address command to configure an IP address on an in-band VLAN
or loopback interface. Also use this command to configure one or more
secondary IP addresses on the interface.
Syntax
ip address ip-address {{subnet-mask | prefix-length}
[secondary]|dhcp|none}
no ip address ip-address {subnet-mask | prefix-length} [secondary]
ip-address — IP address of the interface.
dhcp — Obtain the address from a DHCP server.
none — Clear the address assignment method.
subnet-mask — Subnet mask of the interface
prefix-length — Length of the prefix. Must be preceded by a forward slash
(/). (Range: 1-30 bits)
secondary — Indicates the IP address is a secondary address.
Default Configuration
The N1100/N1500/N2000/N2100-ON default IPv4 address assignment
method is DHCP on VLAN 1.
The N3000-ON/N3100 default IPv4 address assignment method on VLAN 1
is none, and the default address assignment on the out-of-band port is DHCP.
See the ip address (Out-of-band) command for more information.
Use the no interface vlan command to remove an IP routing interface, clear
any bound IP address and set the address assignment method to the default.