Uploaded by anwar alzaid

CM4040 Midterm Cheat Sheet

advertisement
Cisco IOS Commands
Switch(config)# hostname Sw-Floor-1
R1(config-line)# transport input ssh
SW1(config-if)# switchport port-security violation restrict
Sw-Floor-1(config)# enable secret mypass
S1(config-if)# switchport trunk allowed vlan 10,28,75
SW1(config-if)# switchport port-security maximum 1
S1(config)# service password-encryption
S1# copy running-config startup-config
SW1(config-if)# switchport port-security mac-address sticky
S1(config-if)# switchport mode trunk
R1(config)# crypt key generate rsa
Sw-Floor-1(config-line)# login
R1(config)# username anwar secret alzaid
SW1(config-if)# switchport mode access
Sw-Floor-1(config)# line console 0
S1(config)# interface range fa0/1 – 15 , G0/1 - 2
Sw-Floor-1(config-line)# password cisco
S1(config-if-range)# shutdown
S1(config-vlan)# name STAFF
S1(config-if)# switchport mode access
Sw-Floor-1(config)# line vty 0 15
S1(config-if)# switchport access vlan 10
R1(config)# ip domain-name alzaid.com
Sw-Floor-1(config)# enable password class
SW1(config-if)# switchport port-security
S1(config)# vlan 10
R1(config-line)# login local
Download