ip address

This topic explains the command that sets the IPv4 address and netmask for managing the switch.

Syntax

ip address a.b.c.d mask a.b.c.d

Parameter

address a.b.c.d: Set the IPv4 address for the switch. The IP address is represented by a.b.c.d.

mask a.b.c.d: Set the netmask address for the switch. The netmask is represented by a.b.c.d.

Default

The default IP address is 192.168.0.239 and default netmask is 255.255.255.0.

Mode

Global Configuration

Usage

Use this command to set the administration IPv4 address for access to the switch. When you use Telnet, SSH, HTTP, HTTPS, or SNMP to connect to the switch, you must use this IP address to access the switch.

Example

This example shows how to modify the IPv4 address of the switch:

CODE
Switch(config)# ip address 192.168.0.200 mask 255.255.255.0

This example shows how to show the current IPv4 address of the switch:

CODE
Switch# show ip
###### Config ######
IP Address: 192.168.0.239
Subnet Netmask: 255.255.255.0
Default Gateway: 192.168.0.254

###### Status ######
IP Address: 192.168.0.239
Subnet Netmask: 255.255.255.0
Default Gateway: 192.168.0.254