Basic Cisco Router Commands
Basic Cisco Router Commands
( Not All Commands May Be Available Without Enable Access Or Router Version ) User executable mode, view but cant make changes Router Name> Gets you to Privilege mode allowing you to make Router Name> changes to the router enable Router Name Privilege mode, changes can now be made to router # Router Name # To get back to user mode disable Router Name # exit To exit router Router Name # Break Key shft+ctrl+6 Router Name # write To clear all previous configurations erase Router Name # Reboot the router reload Router Name # Setup command brings up the configuration dialog box. setup
Router Name # sh diag Router Name # sh flash Router Name # sh run Router Name # wr t Router Name # sh env all
shows IOS file shows running configurations on router ( version 10.3 and above ) shows running configurations on router (version 10.3 below/above) shows current router temps, power supply
and general health of router Router Name # sh env table shows warning levels for shutdown to take place Router Name # sh startupshows saved config in NVRAM
config Router Name # sh controllers(int) Router Name # sh cdp neighbor Router Name # sh cdp neighbors detail Router Name # sh cdp int Router Name # sh arp Router Name # sh ip arp Router Name # sh protocol Router Name # sh ip protocol Router Name # sh ip route isis Router Name # sh isis spflog Router Name # sh isis database Router Name # sh isis database detail Router Name # sh isis topology Router Name # sh ip bgp Router Name # sh ip bgp <route> Router Name #sh ip bgp community-list Router Name # sh ip bgp filter-list Router Name # sh ip bgp neigh(address) Router Name # sh ip bgp sum Router Name # sh routemap (name) Router Name # sh adjacency detail Router Name # sh ip cef Router Name # sh ip cef summary Router Name # sh cef not-
shows serial line configurations. Make sure a space is used for int. ie: s 0
shows directly connected neighbors shows detail of directly connected devices: (router, bridge, switch) shows which interfaces are running CDP shows lan devices and mac address' ( arp table ) shows the arp table in the router shows which protocols are configured shows routing protocol configured and parameters displays all routes in the route table that originated in ISIS displays information on the duration/cause of recent SPF runs
cef-switched Router Name # sh standby Router Name # sh standby brief Router Name # sh standby (interface) R# sh mpls traffic-eng tunnels tunnel #
being CEF switched displays the information on the operation of HSRP displays a summary of interfaces running HSRP displays state of the port, hello intervals, MAC address, config displays tunnels between hops in a route masked by MPLS
Router Name# int (+ interface you are designating, token ring must put in ring speed 16 or 4) Router Name# ip address _._._._ (mask) Router Name# no shut
To Disable A Port Router Name# int (interface or port) Router Name# shut
To Enable A Protocol Different protocols will have different instructions below is a generic example: Router Name# config t Router Name# router instructions) (protocol type + any extensions needed in
To Disable A Protocol Router Name# config t Router Name# no router (+ protocol type)
To Change Router Name Router Name# config t Router Name# hostname Jim (global command) Router Name# ctrl z
From Config T settings: Router Name# ctrl z (to save settings and execute the command) Router Name# ctrl c (starts over, abort)
Router Name# write t (shows running configurations, also can use show run) Router Name# telnet (to telnet into another router)
Router Name# ip host name (name & address - To Build Host Table Global Command) Router Name# no host (to remove a host name)
* On a 4000 series router you must specify what type of media is being used: Router Name# config t
Router Name# int (+ interface you plan to configure, ie: e0, s0, ... screen changes, major command) Router Name# media-type 10baseT (or whichever media is being used, sub command) To Enable RIP Router Name# config t Router Name# router rip Router Name# network (+ network address, ie: 150.111.0.0 )
Router Name# int (+ interface you plan to configure, ie: e0, s0, ... screen changes) Config-if# ip address 150.11.1.1 255.255.255.0 (full statement with subnet mask, sub command) Config-if# no shut (this logically activates the interface, required at every interface configuration) To Enable SNMP Router Name# config t Router Name# snmp server community public (RO, RW)
Router Name# int (+ interface you plan to configure, ie: e0, s0, ... screen changes) Router Name# ipx network (ipx address) shows ipx servers on the network shows ipx networks seen by the routers shows ipx related protocols view ipx address on an
Router Name # sh ipx servers Router Name # sh ipx route Router Name # sh ipx traffic Router Name # sh ipx int interface To Enable VTY
Router Name# config t enable password cisco enter command) Router Name# line vty 0 4 Router Name# login Router Name# password cisco
(global