IOS
The switch in-band management,
management vlan
Switch(config)#interface
vlan 1
Switch(config-if)#ip address ip-address netmask
Switch(config-if)#ip default-gateway ip-address
Switch#show ip interface
CLI
The switch in-band management,
management vlan
Switch> (enable) set interface
sc0 up
Switch> (enable) set interface sc0 ip-address netmask broad
Switch> (enable) set interface sc0 vlan
Switch> (enable) set ip route default gateway-address
Switch> (enable) show interface