2.1.10. ip address

Syntax

ip address A.B.C.D [mask A.B.C.D]

Parameter


address A.B.C.D Specify IPv4 address for switch

mask A.B.C.D Specify net mask address for switch


Default

Default IP address is 192.168.1.1 and default net mask is 255.255.255.0.

Mode

Global Configuration

Usage

Use ip address command to modify administration ipv4 address. This address is very important. When we try to use telnet, ssh, http, https, snmp… to connect to the switch, we need to use this ip address to access it.

Example

This example shows how to modify the ipv4 address of the switch.

Switch(config)# ip address 192.168.1.200 mask 255.255.255.0

This example shows how to show current ipv4 address of the switch.

Switch# show ip
IP Address: 192.168.1.200
Subnet Netmask: 255.255.255.0
Default Gateway: 192.168.1.254