search the web

Wednesday, March 2, 2016

Initial configuration of Switch

Initial configuration of Switch



!Would you like to setup this switch [yes/no]:no
!Press enter
!We are now in User EXEC Mode
Switch> enable
!By typing enable we will come down to Privilidge mode

Switch#disable
!We exit out of priviledge mode

Switch#logout
!we will logout from this mode

Switch#exit
!takes us one step up

Switch#configure terminal
!it takes us to global configuration

Switch#exit
!it takes us one step up

--------------------------------------------------------------
Configuring Cisco Switch
--------------------------------------------------------------
enable
conf t
!shortcut for configure-termnial
!for shortcuts we must make the command unique
!for example if i write c terminal, now the there may be many words starting with c
!so my command is not unique, it will prompt me with the error ambigous command
!means there are many options for the device for commands

hostname 2ndFL_WC_S1
!this command sets our switch name to 2ndFL_WC_S1

interface vlan 1
!This will take us to the logical interface of Cisco Switch for configurin the IP Address
!Vlan one is only a logical interface for configuring cisco switch remotely

ip address 192.168.4.3 255.255.255.0

no shutdown
!this command makes our interface adminsitratively up
shut
!it will shutdown the interface
exit
exit

!i am now in privilidge mode
show ip interface brief
!This command will show us the details of our interfaces

show mac-address-table
!shows the CAM table of my switch

show post
!shows info about power on self test that was carried out when switch was power on

show version
!it will show us the details about our switch, the model, the ios and other details

show interface fastethernet 0/1
!shows the details about interface fa 0/1 0 is the module number and 1 is the interface !number

conf t
interface fa 0/1
!this command takes us to interface 0/1 now we can apply any configuration on fa 0/1
description CONNECTION TO FINANCE
!we can set any description to the interface
exit
exit

show flash:
!this shows us any files in the flash

dir nvram:
!shows files inside Nvram

conf t
ip default-gateway 192.168.4.1
!this command sets default gateway on your switch
exit

!Lets configure console password

conf t
line console 0
password cisco
login
logging synchronous

!loggin synch commands manages thelogs coming to console


!password cisco will enable cisco as consol password and login command will ask user for !login
exit

enable password cisco
!This sets a password for coming from user mode to privildge mode
enable secret ecisco
!enables the secret MD5 encrypted password

!Configuring LINE VTY for enabling switch to accept telnet for remote adminsitration
line vty 0 15
password cisco
login

!Erasing the startup configuration
erase startup-configuration

reload
!reloads the switch

!Copying running-configuratio to startup configuration
!copy run star

dir system:
!shows what is inside our ram-------shows our running storage area

No comments: