service password-encryption Enables password encryption
hostname [Switch-Name] Configure your switch's name enable secret [Some-Password] Set the enable secret aaa new-model enables aaa authentication model aaa authentication login default local Sets authentication mode aaa authorization exec default local
Basic Switch Configuration
ip http server Enables web server ip http authentication local Configures the web server to use the local authentication database line con 0 Configures the Console for local database authentication login authentication default logging synchronous Ensures that console messages don't overwrite your commands line vty 0 15 Configures the inbound Telnet lines for local database authentication login authentication default logging synchronous Ensures that console messages don't overwrite your commands ip domain-name [Domain-name] Set the switch's domain name ip domain-lookup Turn on switch DNS Resolution ip name-server [Resolver1] [Resolver2] Enter primary and secondary DNS servers (secondary is optional) clock timezone [Timezone] [Hours-from-UTC] Configure your timezone ntp server [NTP-Server-IP] Configures your switch to get its time from your NTP server service timestamps log datetime localtime show-timezone Configures your switch log to timestamp entries username [Your-username] privilege 15 password [Your-password] Sets username and password. Used for web and CLI access ip default-gateway [Gateway-1] Creates a default gateway for VLAN1 (switch administration) interface Vlan1 Enter Vlan1 Configuration mode ip address [IP-VLAN-1] [Subnet-mask-1] Configure the IP and Subnet mask for Switch management no shut Turn on Vlan1 interface Variable name User defined [Switch-Name] SomeSwitchName [Domain-name] YouDomain.com [Some-Password] YourPassword [Your-username] YourUserName [Your-password] YourPassword [Resolver1] 192.168.2.20 [Resolver2] [Gateway-1] 192.168.1.1 [IP-VLAN-1] 192.168.100.100 [Subnet-mask-1] 255.255.255.0 [Timezone] CST [Hours-from-UTC] -6 [NTP-Server-IP] 192.168.2.1 [Number-of-switchports] 24 Description Name of your Switch Replace Your domain name Your password For web and CLI access Reference Sheet Name: Cat2950 For web and CLI access You must enter a valid DNS server Optional second DNS server (may leave blank) Default gateway for VLAN1 IP address for VLAN1 administrative interface Subnet mask VLAN1 administrative interface Timezone using 3 letter abbreviation Number of hours from UTC (EST=-5, CST=-6, MST=-7, PST=-8) IP address of NTP time server The number of Ethernet ports on the switch