Before you begin, you need to choose a vlan ID, an IP address that the switch can be managed on, and a switch port that will be connected to the management network.
In this example, our management port will be port 8 on switch 1. The management IP address will be 192.168.100.100 with a netmask of 255.255.255.0 and a default gateway of 192.168.100.1. We also set the vlan ID to 10.
console>en
console#conf
console(config)#vlan dat
console(config-vlan)#vlan 10
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#exi
console(config)#exi
console#conf
console(config)#interface ethernet 1/g8
console(config-if-1/g8)#switchport access vlan 10
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if-1/g8)#exi
console(config)#ip address vlan 10
console(config)#no ip default-gateway
console(config)#ip address 192.168.100.100 /24
console(config)#ip default-gateway 192.168.100.1
console(config)#end
console#copy running-config start
This operation may take a few minutes.
Management interfaces will not be available during this time.
Are you sure you want to save? (y/n) y
Configuration Saved!
console#
That's all there is.