To access the switch remotely through Telnet or SSH over the network, an IP address and a subnet mask must be configured on the Switch Virtual Interface (SVI).
To configure an SVI on a switch:
Enter the interface vlan 1 command in global configuration mode.
Next assign an IPv4 address using the ip address ip-address subnet-mask command.
Finally, enable the virtual interface using the no shutdown command.
Switch>
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up