Cisco 2960 Switch Setup

Cisco 2960 Switch Setup Log - 2017-05-02


Reset to defaults: enable / write erase / reload

Skip the Wizard

 Would you like to enter the initial configuration dialog? [yes/no]: no
 Switch>
 *Mar  1 00:01:14.977: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down

Set a privileged-mode password

 Switch>enable
 Switch#configure terminal
 Enter configuration commands, one per line.  End with CNTL/Z.
 Switch(config)#enable secret 0 <some-password>

Set a console password

 Switch(config)#line console 0
 Switch(config-line)#password <some-password>
 Switch(config-line)#login
 Switch(config-line)#logging synchronous 
 Switch(config-line)#exec-timeout 30 0
 Switch(config-line)#exit

Set a vty password

 Switch(config)#line vty 0 4
 Switch(config-line)#password <some-password>
 Switch(config-line)#login
 Switch(config-line)#logging synchronous 
 Switch(config-line)#exec-timeout 30 0
 Switch(config-line)#exit

Encrypt console and vty passwords

 Switch(config)#service password-encryption 

Set a hostname

 Switch(config)#hostname 2960-01

Configure a banner message

 2960-01(config)#banner motd [
 Enter TEXT message.  End with the character '['.
 ***********************************
  UNAUTHORIZED ACCESS IS PROHIBITED
 ***********************************[

Configure VLAN interface

 2960-01(config)#interface vlan 1
 2960-01(config-if)#ip address 172.21.1.11 255.255.255.0
 2960-01(config-if)#no shutdown
 *Mar  1 00:07:59.165: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
 2960-01(config-if)#exit

Set a default gateway

 2960-01(config)#ip default-gateway 172.21.1.1
 2960-01(config)#exit
 2960-01#
 *Mar  1 00:08:39.724: %SYS-5-CONFIG_I: Configured from console by console

Save changes

 2960-01#copy running-config startup-config
 Destination filename [startup-config]? 
 Building configuration...
 [OK]

Reboot

 2960-01#reload
Page last modified on June 02, 2017
Powered by: PmWiki and Quick Wiki CMS