Tuesday, January 21, 2014

Basic Cisco Commands

Information about Basic Cisco Admin Tasks 
This document describes many of the common and very basic Cisco tasks an admin will perform.  
 
Some Basic Tasks 
  • Configuring interface/port 
  • Enable port/int 
  • Configure Wireless LAN Controller AP speed and duplex  
Very Basic Cisco Commands  
  • To show status of interface and other info  
    • show int status mod X (where X=module or blade number)  
  • show int status module 4 | inc 41  (to show port 41) 
    • show int gX/XX (where X=module, XX=port number)  
  • int g7/2 
    • show run int int 
  • Check interface status with "sh int g#/#" where the letter is the interface type (g=gigabit, f=fastethernet) and the #'s are the module/port  
  • Change port/interface configuration  
  • To change description:  
    • switch#configure terminal switch(config)#interface fa0/1 switch(config-if)#description “This is 1st Port of My Switch” switch(config-if)#end switch#  
    • To remove: no description  
  • select range of ports to configure  
    • switch# config t  
    • switch(config)#int range gi1/1 - 24 
  • To change speed,etc..  
    • switch# config t switch(config) int gx/x switch(config) speed 100 switch(config) duplex full switch(config) end 
  • to enable port  
    • switch# config t switch(config) interface gX/XX switch(config) no shutdown switch(config) end 
  • to disable port  
    • switch# config t switch(config) interface gX/XX switch(config-if) no description switch(config-if) switchport access vlan 1 switch(config-if) shutdown switch(config-if) end 
  • to set vlan on interface  
    • Enter configuration commands, one per line.  End with CNTL/Z. site1_CORE_6509_2(config)#int g4/40 site1_CORE_6509_2(config-if)#switchport access vlan 850 site1_CORE_6509_2(config-if)#end site1_CORE_6509_2#show int status mod 4 | inc 40 Gi4/40       "site1_ilbl_e45 connected    850        a-full  a-100 10/100/1000BaseT 
  • To save backup and write current  
    • [optional] Backup your old configuration switch#copy startup-config startup-config.241207 
    • Save your running configuration (so that it will start at boot) switch#copy running-config startup-config 
  • To resest module or 'blade'  
    • type hw-module module 12 reset 
  • To see other cisco devices attached to specific equipment use "sh cdp neigh"  
    • for additional details on a specific device you see use "sh cdp neigh g#/# detail" where the g#/# is the interface of the device you are logged onto for the deive you want to look at. 
  • Check your root bridge for vlans with "sh spanning-tree root"  
  • Check the HSRP state of your sup engines with "sh redundancy"  
  • Check how your traffic is routing with "sh ip route", use the "| inc 10.xx." to check for specific routes  
  • Check the active HSRP route for specific vlans with "sh standby brief"  
  • Find the port a specific mac address is on, use "sh mac-add | inc xxxx" where xxxx is the last 4 of the mac address.  
  • Find what mac addresses are on a specific port, use "sh mac-add int Gx/xx" where gx/x if the interface you want to look at (g1/14 would be a gig port on module 1, interface 14)  
  • To restart a module and bring it back online use "hw-module module # reset".  
  • Tell the switch to restart at a later time  
    • switch# reload at mmm or hhh:mmm or switch# reload in mmm 
  • To Configure a Wireless LAN Controller Access Point speed and duplex.  
    • Login to the WLC through Putty and issue the command "config ap ethernet duplex full speed 100 site1-WAP_Name_1" 

No comments:

Post a Comment