Basic Configuration on cisco Switch Series
### Set hostname on switch###
SW(config)#hostname SW
### show IP and interface###
SW#show ip int brief
### Set IP on switch###
(IP on switch is set on interface VLAN 1)
SW(config)#int vlan 1
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#description IT Dep
Switch(config-if)#no sh
#### Enable password to telnet on switch#####
(Mean that we enable to login to switch by telnet)
Switch(config)#line vty 0 15
Switch(config-line)#password cisco
Switch(config-line)#login
Switch(config-line)#privilege level 15
#### Enable password to console####
(Mean that we enable to login to switch by console)
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#privilege level 15
#### Save configuration####
R1(config)#copy running-config startup-config
Or
R1(config)#write memory
Or
R1(config)#wr