Basic Cisco Switch Setup
Recently I fired up a Cisco 3750-24PS to play with as I was thinking of getting a couple of POE cameras and would prefer to use a POE switch over 802.3af injectors. I pulled together a number of the useful YouTube howto guides to get a Cisco switch up and running. Nothing comprehensive but will get the device going with the ability to use telnet to remote into the device.
I bought this device off eBay and the previous owner had cleared the configuration so I had a blank slate to work with. If you do need to clear a device you can use the following
write erase
Enter global configuration mode, set password and host name
Switch>configure terminal
Switch(config)#enable secret XXXXX
Switch(config)#hostname sw0
Switch(config)#ip default-gateway 192.168.0.253
Setup console port authentication:
Switch(config)#line console 0
Switch(config)#password XXXX
Switch(config)#login
Switch(config)#logging synchronous
Switch(config)#exec-timeout 30 0
Enable basic password encryption:
Switch(config)#service password-encryption
Setup vty port authentication + telnet:
Switch(config)#line vty 0 15
Switch(config-line)#password XXXX
Switch(config-line)#login
Switch(config-line)#logging synchronous
Switch(config-line)#exec-timeout 30 0
Switch(config-line)#transport input telnet
Configure the vLAN
Switch(config)#interface vlan 1
Switch(config)#ip address 192.168.0.250 255.255.255.0
Switch(config)#no shutdown
Copy the running configuration to start up
Switch#copy running-config startup-config
List interfaces
sw0#show up interface brief