0% found this document useful (0 votes)
25 views

Configuration File

rrieioerierieeiwo

Uploaded by

armaangre
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Configuration File

rrieioerierieeiwo

Uploaded by

armaangre
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Configuration File

Switch> en
Switch>en
Switch# show int f0/1
Switch# config t
Switch (config) # int f0/1
Switch (config-if) # no shut
Switch (config-if) # exit
Switch (config)# hostname **
Switch (config)# int v 1
Switch (config)# ip address and subnet mask
Switch (config-if) # no shut
Switch (config-if) #exit
Switch (config)# banner motd warning
Switch (config-if) #line console 0
Switch (config-if) #password cisco
Switch (config-if) #login
Switch (config-if) #exit
Switch (config-if) #enable secret class
Switch (config-if) #service password-encyption
Switch (config-if) # ip default-gateway ***** either 10.10.10.1 or 198.168.1.1
Switch (config-if) #ip domain-name cisco.com
Switch (config-if) #crypto key generate rsa
Switch (config-if) # 1024 bits
Switch (config-if) #ip ssh version 2

Switch (config-if) # username admin secret ccna


Switch (config-if) #line vty 0 15
Switch (config-if) #transport input ssh
Switch (config-if) #login local
Switch (config-if) #exit
Switch (config-if) #interface range f0/2-24, g1/2
Switch (config-if) #shut
Switch (config-if) # switchport mode access
Switch (config-if) #interface range f0/2-24, g1/2
Switch (config-if) # exit
Switch (config-if) # int f0/1
Switch (config-if) # switchport mode trunk
Switch (config-if) # switchport port-security
Switch (config-if) #switchport port-security maximum 2
Switch (config-if) #switchport port-security mac-address sticky
Switch (config-if) #switchport port-security violation shutdown
Switch (config-if) #end

Command prompt
PC> ssh -1 admin ****
Three passwords
PC>ssh -1 admin***
Switch> en
Passwords 2

Switch> config t

You might also like