ip address Configuration Command
ip address CISCO Switch Command in Linux
Explanation
ip address command is used to set default IP address to switch in privileged mode.
Usage:
ip address
Example:
HSCRIPTS#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
HSCRIPTS(config)#interface vlan1
HSCRIPTS(config-if)#ip address 192.168.0.149 255.255.255.0
HSCRIPTS(config-if)#exit
From the above example, default ip address has been changed for the interface from 192.168.0.150 to 192.168.0.149.
Run "show running-config" command to know whether the configuration has been modified. Inorder to make the changes permanent, run "reload" command to reload the switch.
Note:To make any cofiguration changes, you need to log into 'configure terminal'.