show ip

This topic explains the command that displays the IPv4 address, netmask, and default gateway of the switch.

Syntax

show ip

Parameter

None.

Default

No default value.

Mode

  • User EXEC
  • Privileged EXEC

Usage

Use this command to show the system IPv4 address, netmask, and default gateway.

Example

This example shows how to display the current IPv4 address settings 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