Tuesday 9 November 2010

Cisco Command Summary

Summary: Cisco Router Configuration Commands - Lists how to enable and disable interfaces, add IP addresses to interfaces, enable RIP or IGRP and set passwords. Cisco Router Show Commands - Handy show commands to check on the status of interfaces. Cisco Router Basic Operations - Covers getting into and out of different modes. Also, some handy shortcut keys are included. Cisco Router Copy Commands - How to save and backup your router configuration and IOS file. Cisco Router Debug Commands - Some useful debug commands.

Keywords: 467, Cisco Command Summary
Description: a description goes here

Cisco Router Configuration Commands

Requirement Cisco Command
Set a console password to cisco Router(config)#line con 0
Router(config-line)#login
Router(config-line)#password cisco
Set a telnet password Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password cisco
Stop console timing out Router(config)#line con 0
Router(config-line)#exec-timeout 0 0
Set the enable password to cisco Router(config)#enable password cisco
Set the enable secret password to peter. This password overrides the enable password and is encypted within the config file
Router(config)#enable secret peter
Enable an interface Router(config-if)#no shutdown
To disable an interface Router(config-if)#shutdown
Set the clock rate for a router with a DCE cable to 64K Router(config-if)clock rate 64000
Set a logical bandwidth assignment of 64K to the serial interface Router(config-if)bandwidth 64
Note that the zeroes are not missing
To add an IP address to a interface Router(config-if)#ip addr 10.1.1.1 255.255.255.0
To enable RIP on all 172.16.x.y interfaces Router(config)#router rip
Router(config-router)#network 172.16.0.0
Disable RIP Router(config)#no router rip
To enable IRGP with a AS of 200, to all interfaces Router(config)#router igrp 200
Router(config-router)#network 172.16.0.0
Disable IGRP Router(config)#no router igrp 200
Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hops Router(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5
Disable CDP for the whole router Router(config)#no cdp run
Enable CDP for he whole router Router(config)#cdp run
Disable CDP on an interface Router(config-if)#no cdp enable

Cisco Router Show Commands

Requirement Cisco Command
View version information show version
View current configuration (DRAM) show running-config
View startup configuration (NVRAM) show startup-config
Show IOS file and flash space show flash
Shows all logs that the router has in its memory show log
View the interface status of interface e0 show interface e0
Overview all interfaces on the router show ip interfaces brief
View type of serial cable on s0 show controllers 0 (note the space between the 's' and the '0')
Display a summary of connected cdp devices show cdp neighbor
Display detailed information on all devices show cdp entry *
Display current routing protocols show ip protocols
Display IP routing table show ip route
Display access lists, this includes the number of displayed matches show access-lists
Check the router can see the ISDN switch show isdn status
Check a Frame Relay PVC connections show frame-relay pvc
show lmi traffic stats show frame-relay lmi
Display the frame inverse ARP table show frame-relay map

Cisco Router Basic Operations

Requirement Cisco Command
Enable Enter privileged mode
Return to user mode from privileged disable
Exit Router Logout or exit or quit
Recall last command up arrow or
Recall next command down arrow or
Suspend or abort and and 6 then x
Refresh screen output
Compleat Command TAB

Cisco Router Copy Commands

Requirement Cisco Command
Save the current configuration from DRAM to NVRAM copy running-config startup-config
Merge NVRAM configuration to DRAM copy startup-config running-config
Copy DRAM configuration to a TFTP server copy runing-config tftp
Merge TFTP configuration with current router configuration held in DRAM copy tftp runing-config
Backup the IOS onto a TFTP server copy flash tftp
Upgrade the router IOS from a TFTP server copy tftp flash

Cisco Router Debug Commands

Requirement Cisco Command
Enable debug for RIP debug ip rip
Enable summary IGRP debug information debug ip igrp events
Enable detailed IGRP debug information debug ip igrp transactions
Debug IPX RIP debug ipx routing activity
Debug IPX SAP debug IPX SAP
Enable debug for CHAP or PAP debug ppp authentication
Switch all debugging off no debug all undebug all

Disclaimer:
The customer acknowledges that the examples provided in this document are solely for illustrative purposes. Further, the customer both understands and agrees that the information in the examples may need to be modified to assure proper functioning on his/her own computer system(s). Verio is not liable for any negative consequences arising from the improper use or modification of the provided examples

How To Configure a Switch

How to Configure a Switch

Catalyst Switch
 
Catalyst Switch
How to Configure a Switch
User-Submitted Article
This article talks about the basic configuration of a Cisco Catalyst switch. Use these commands when you get a new or used Cisco switch that you want to configure. These commands will work on pretty much any Cisco catalyst switch. When you get a new or used switch, the first thing you will have to do is connect to it. Normally, this is done by using a laptop and a console cable. I assume if you are looking for these type of instructions that you can do already do that. Once you are able to connect into the switch, you can begin configuring it.
Difficulty: Moderately Easy

Instructions

Things You'll Need:

  • Cisco switch (e.g. 2950, 3550, 3560, 3750)
  • laptop or PC with a console cable
  1. 1
     
    The first step is to connect to your switch. The easiest way is to attach a console cable using a laptop. The defaul cisco login and password is "cisco"
  2. 2
    If you have a used switch, you can erase any previous configuration information. The command to erase any previous configuration information is:

    (switch)# write erase
  3. 3
    After you erase the previous configuration, you can reboot the switch with this command: (switch)# reload
  4. 4
    You can set the switch name with this command: (switch)# host yourswitchnamehere

    For example: (switch)# Cisco-Switch
  5. 5
    You can set the enable password: (switch)# enable password mysecretpassword
  6. 6
    You can set the enable secret password: (switch)# enable secret mysecretpassword
  7. 7
    You can set up the console login password with these commmands. (switch)# line con 0
    (switch)# password myloginpassword
    (switch)# logging synchronous
    (switch)# login
  8. 8
    You set up the telent login line like this:
    (switch)# line vty 0 15
    (switch)# password myloginpassword
    (switch)# login
  9. 9
    You can hide your passwords like this:
    (switch)# service password-encryption
  10. 10
    You can save your configuration with this command:
    (switch)# write
    Or you can use this command: (switch)# copy run start
  11. 11
    You set up the clock: (switch)# clock set 12:00:00 Month Day Year
  12. 12
    You can set the default gateway like this: (switch)# ip default-gateway x.x.x.x

    For example: (switch)# ip default-gateway 192.168.1.1
  13. 13
    You can set the daylight saving time using this command: (switch)# clock summer-time EST recurring first Sunday March 2:00 first Sunday November 2:00