CISCO SWITCH CONFIGURAITON.
Modes of CISCO IOS SWITCH/ROUTER
LAB#1
Before you began any configuration check these commands.
show flash
show version
show run
show ip int breif
STEP1: Connect to the device via console
Switch# enable
Switch# configure terminal
Switch(config)#
TEP2: Set up a hostname for the particular switch to distinguish it in the network
Switch(config)# hostname access-switch1
STEP3: Assign default gateway to the switch
access-switch1(config)# ip default-gateway 10.1.1.254
STEP4: Assign passwords
core-switch(config)# enable secret alpha1
core-switch(config)# line con 0
core-switch(config)# password 123
core-switch(config)# login
core-switch(config)# exit
STEP5: enable remote login
core-switch(config)#line vty 0 4
core-switch(config-line)#password 123
core-switch(config-line)#login
core-switch(config-line)# exit
core-switch(config)# enable password 123
STEP5: Assign IP address to the switch for management
access-switch1(config)# interface vlan 1
access-switch1(config-if)# ip address 10.1.1.200 255.255.255.0
access-switch1(config-if)# exit
access-switch1(config)#
STEP6: Disable unneeded ports on the switch
! Assume that we have a 24 -port switch and we don’t need ports 18-24
access-switch1(config)# interface range fa 0/25-48
access-switch1(config-if-range)# shutdown
access-switch1(config-if-range)# exit
STEP7: Port renaming and speed change
core-switch(config)#interface fa 0/13
core-switch(config-if)#description billing-server
core-switch(config-if)#speed 100
core-switch(config-if)#duplex full