My Cisco Switch and Router Setup Document
Entering Privileged EXEC Mode
Switch> enable
Switch#
Changing the Hostname of the Switch
Switch# configure terminal
Switch(config)# hostname S1
S1(config)# exit
Adding a Password to the Console Line
S1# configure terminal
S1(config)# line console 0
S1(config-line)# password cisco
S1(config-line)# login
S1(config-line)# exit
S1(config)# exit
Adding a Password to the Privileged EXEC Mode
S1# configure terminal
S1(config)# enable secret itsasecret
S1(config)# exit
Configure a MOTD Banner
S1# config t
S1(config)# banner motd “This is a secure system. Authorized Access Only!”
S1(config)# exit
Adding a Password to the VTY line
S1# config t
S1(config)# line vty 0 15
S1(config-line)# password class
S1(config-line)# exit
S1(config)# exit
Encrypt the Enable and Console Passwords
S1# config t
S1(config)# service password-encryption
S1(config)# exit
Disable DNS Lookups
S1# config t
S1(config)# no ip domain-lookup
S1(config)# exit
Configure Switch with an IP Address
S1# configure terminal
S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.0.1 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
S1(config)# exit
Adding Default Gateway to Switch
S1# config t
S1(config)# ip default-gateway 192.168.1.1
S1(config)# exit
Saving the Running Config to Startup Config
S2# copy running-config startup-config
|enter|
Building configuration...
[OK]