Cisco switch commands cheat sheet
Upcoming SlideShare
Loading in...5
×
 

Cisco switch commands cheat sheet

on

  • 838 views

Cisco switch commands cheat sheet

Cisco switch commands cheat sheet

Statistics

Views

Total Views
838
Views on SlideShare
790
Embed Views
48

Actions

Likes
0
Downloads
39
Comments
0

1 Embed 48

http://www.slideee.com 48

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Cisco switch commands cheat sheet Cisco switch commands cheat sheet Document Transcript

  • Cisco switch commands cheat sheet Cisco commands cheat sheet for switch: 1Setting hostname based on the IOS switches: Switch (config hostname hostname) # Setting system name based on the CLI switches: Switch (enable) set system name name-string 2 Setting password based on the IOS switches: Switch (config) enable password level 1 password # Setting password based on the CLI switches: Switch (enable) set password Switch (enable) set enalbepass 3 Setting the remote access based on the IOS switch: Switch (config) interface VLAN 1 # Switch (config-if) IP address IP-address netmask # Switch (config-if) IP default-gateway IP-address # Setting the remote access based on the CLI switch: Switch (enable) set interface sc0 IP-address netmask broadcast-address Switch (enable) set interface sc0 VLAN Switch (enable) set IP route default gateway 4 Enabled and browsing information of CDP based on the IOS switch : Switch (config-if CDP enable) # Switch (config-if) no CDP enable # In order to view the Cisco CDP announcement adjacent equipment: Switch# show CDP interface Switch# show cdp neighbors Enabled and browsing information of CDP based on the CLI switch : Switch (enable) set CDP {enable|disable} module/port In order to view the Cisco CDP announcement adjacent equipment: Switch (enable) show cdp neighbors 5 Port description based on the IOS switch: 1
  • Switch (config-if description description-string) # Port description based on the CLI switch: Switch (enable) set port name module/number description-string 6 Setting port speed based on the IOS switches: Switch (config-if) # speed{10|100|auto} Setting port speed based on the CLI switches: Switch (enable) set port speed moudle/number {10|100|auto} Switch (enable) set port speed moudle/number {4|16|auto} 7 Setting the ethernet link pattern based on the IOS switch: Switch (config-if duplex {auto|full|half}) # Setting the ethernet link pattern based on the CLI switch: Switch (enable) set port duplex module/number {full|half} 8 Configuring the static VLAN based on IOS switch: Switch# VLAN database Switch (VLAN) VLAN vlan-num name VLA # Switch (VLAN) # exit Switch# configure teriminal Switch (config) interface interface module/number # Switch (config-if) switchport mode access # Switch (config-if) switchport access VLAN vlan-num # Switch (config-if) # end Configuring the static VLAN based on CLI switch: Switch (enable) set VLAN vlan-num Switch (enable) set VLAN vlan-num mod-num/port-list 9 Configuring the VLAN relay line based on IOS switch: Switch (config) interface interface mod/port # Switch (config-if) switchport mode trunk # Switch (config-if) switchport trunk encapsulation {isl|dotlq} # Switch (config-if) switchport trunk allowed VLAN remove vlan-list # Switch (config-if) switchport trunk allowed VLAN add vlan-list # 2
  • Configuring the VLAN relay line based on CLI switch: Switch (enable) set trunk module/port Vlan-range 10 Configuring VTP management domain based on the IOS switch: Switch# VLAN database Switch (VLAN) VTP domain domain-name # Configuring VTP management domain based on the CLI switch: Switch (enable) set VTP 11 Configuring VTP mode based on the IOS switch: Switch# VLAN database Switch (VLAN) VTP domain domain-name # Switch (VLAN VTP {sever|cilent|transparent}) # Switch (VLAN) VTP password password # Configuring VTP mode based on the CLI switch: Switch (enable) set VTP 12 Configuring the VTP version based on the IOS switch: Switch# VLAN database Switch (VLAN VTP v2-mode) # Configuring the VTP version based on the CLI switch: Switch (enable) set VTP V2 enable 13 Starting the VTP tailoring based on the IOS switch: Switch# VLAN database Switch (VLAN VTP pruning) # Starting the VTP tailoring based on the CLI switch: Switch (enable) set VTP pruning enable 14 Configuring Ethernet channel based on the IOS switch : Switch (config-if) port group group-number # Configuring Ethernet channel based on the CLI switch : Switch (enable) set port channel moudle/port-range mode{on|off|desirable|auto} 3
  • 15 Adjusting the root path cost based on the IOS switches: Switch (config-if) spanning-tree cost cost # Adjusting the root path cost based on the CLI switches: Switch (enable) set spantree portcost moudle/port cost Switch (enable) set spantree portvlancost moudle/port 16 Adjusting the port ID based on the IOS switches: Switch (config-if spanning-treeport-priority port-priority) # Adjusting the port ID based on the CLI switches: Switch (enable) set spantree portpri {mldule/port}priority Switch (enable) set spantree portvlanpri {module/port}priority 17 Setting the STP clock based on IOS switch: Switch (config) spanning-tree hello-time seconds # Switch (config) spanning-tree forward-time seconds # Switch (config) spanning-tree max-age seconds # Setting the STP clock based on CLI switch: Switch (enable) set spantree Hello interval Switch (enable) set spantree fwddelay delay Switch (enable) set spantree maxage agingtiame 18 Enable or disable the Port Fast feature based on the IOS switch port: Switch (config-if) #spanning-tree portfast Enable or disable the Port Fast feature based on the CLI switch port: Switch (enable) set spantree portfast {module/port}{enable|disable} 19 Enable or disable the UplinkFast feature based on the IOS switch port: Switch (config spanning-tree uplinkfast) # Enable or disable the UplinkFast feature based on the CLI switch port: Switch (enable) set spantree uplinkfast {enable|disable} More related: 4
  • How To Recover Cisco Router Password The Difference of The Cisco Catalyst 2900 and Cisco Catalyst 1900 More Cisco products and Reviews you can visit: http://www.3anetwork.com/blog 3Anetwork.com is a world leading Cisco networking products wholesaler, we wholesale original new Cisco networking equipments, including Cisco Catalyst switches, Cisco routers, Cisco firewalls, Cisco wireless products, Cisco modules and interface cards products at competitive price and ship to worldwide. Our website: http://www.3anetwork.com Telephone: +852-3069-7733 Email: info@3Anetwork.com Address: 23/F Lucky Plaza, 315-321 Lockhart Road, Wanchai, Hongkong 5
  • How To Recover Cisco Router Password The Difference of The Cisco Catalyst 2900 and Cisco Catalyst 1900 More Cisco products and Reviews you can visit: http://www.3anetwork.com/blog 3Anetwork.com is a world leading Cisco networking products wholesaler, we wholesale original new Cisco networking equipments, including Cisco Catalyst switches, Cisco routers, Cisco firewalls, Cisco wireless products, Cisco modules and interface cards products at competitive price and ship to worldwide. Our website: http://www.3anetwork.com Telephone: +852-3069-7733 Email: info@3Anetwork.com Address: 23/F Lucky Plaza, 315-321 Lockhart Road, Wanchai, Hongkong 5