Vous êtes sur la page 1sur 6
Basic Cisco Router Commands (Not All Commands May Be Available Without Enable Access Or Router Version ) Router Name> [ser executable mode, view but can’t make changes Router Name> jets you to Privilege mode allowing you to make enable hanges to the router Router Name Privilege mode, changes can now be made to router # Router Name # lfo get back to user mode disable Router Name # exit [fo exit router Router Name # Break Key shft+ctrl+6 Router Name # write [lo clear all previous configurations erase Router Name # ‘eboot the router reload Router Name # Betup command brings up the configuration dialog box. setup Some Router Show Commands Router Name # sh? hows parameters supported by the router Router Name # sh int hows status of all interfaces Router Name # sh int so hows status of interface you selected, ie: sO, 1, 0, el, ... Router Name # sh Ip jew ip parameters int Router Name # sh ip prief summary of all interfaces and status brief Router Name # sh Ip hows networks available to Interface and route outing table Router Name # sh proc cpu hows CPU utilization on router Router Name # sh mem hows memory utilization Router Name # sh mem big fo see the largest blocks of memory Router Name # sh log fo check recent history of router Router Name # sh version ows summary of hardware and reason for jast reload Router Name # sh diag hows more detailed hardware information Router Name # sh flash bhows 10S file Router Name # sh run hows running configurations on router version 10.3 and above ) Router Name # wrt hows running configurations on router (version 10.3 below/above) Router Name # sh env all hows current router temps, power supply fand general health of router Router Name # sh env table lace Router Name # sh startup- config Bice warning levels for shutdown to take hows Saved config in NVRAM Router Name # sh controllers(int) hows serial line configurations. Make sure b space is used for int. ie: s 0 Router Name # sh cdp neighbor hows directly connected neighbors Router Name # sh cdp neighbors detail hows detail of directly connected devices: frouter. bridge, switch) Router Name # sh cdp int hows which interfaces are running CDP Router Name # sh arp hows lan devices and mac address’ ( arp table Router Name # sh ip arp hows the arp table in the router Router Name # sh protocol hows which protocols are configured Router Name # sh ip | protocol hows routing protocol configured and arameters Router Name # sh Ip route is splays all routes in the route table that riginated in ISIS Router Name # sh isis spf log isplays information on the duration/cause of ecent SPF runs Router Name # sh isis database Hisplays all information known by ISIS Router Name # sh database detail . is isplays contents of entire LSP (add router info r1.1ga2.00-00) Router Name # sh isis topology summary of best path from router to every ther router Router Name # sh ip bgp Jists all routes leamed from bap Router Name # sh ip bgp hows BGP information for that particular oute, use w/ sh ip rou Router Name #sh ip bgp community-list \dd list # to end of string. Bgp routes that atch a given list Router Name # sh ip bgp filter-list Pap routes that match a given AS path filter Tis Router Name # sh ip bgp neigh(address) hows the details on a route in the route table Router Name # sh ip bgp sum ised to view the status of a BGP session Router Name # sh route- map (name) how the details of a specific route-map Router Name # sh adjacency detail idjacency table used by CEF. Verify fouter/device is discovered Router Name # sh ip cef ‘0 view the CEF cache or FIB (forwarding information base) table Router Name # sh ip cef summary ives an overview of the cet entries Router Name # sh cef not- jf CEF is enabled, this will show packets not cef-switched eing CEF switched Router Name # sh standby fisplays the information on the operation of ISRP_ Router Name # sh standby [lisplays a summary of interfaces running HSRP| brief Router Name # sh standby lisplays state of the port, hello intervals, MAC (interface) \ddress, config R# sh mpls traffic-eng isplays tunnels between hops in a route tunnels tunnel # asked by MPLS. Some Basic Switch Commands (Not All Commands May Be Available Without Enable Access ) Switchi> ? Fesponds with main help menu Switchi> hist Fo view a listing of previous commands used SwitchI> show ? Fesponds with various show commands SwitchI> show ver |nformation about 10S and hardware components Switch1> show module huick view of status on all modules ‘Switch1> show port rovides general summary of all ports: errors, collisions, speed, duplex SwitchI> show port fpecific information for a individual port (#) ‘Switchl> show port __ provides Single line general summary of all ports status SwitchI> show mac fummary information on what has been sent and (port#) Feceived ona given port ‘Switchi> show test if a module is in failed status, show test will show (module#) specifics Switchl> show log hows history of switch on a per module basis ‘Switch1> show config _ hows configurations on switch Switch1> show system hows uptime and levels of utilization Switch1> show vlan __ fists the VLAN's that are resident on the switch Switchl> show cam fists the LAN switch transparent bridging table SwitchI> sh cam (mac_ fo locate a single MAC address address) SwitchI> show cam |ists all dynamically learned MAC addresses dynamic ‘Switchl> show span ists info on a port listening/diagnostics feature switched port analyzer) Switchi> show lows you to see the spantree status of a specific spantree (port#) ort Switchi> show trunk provides a summary of the ports in trunking mode Some Router Enable Commands To Enable A Port * Router Name# config t * 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 examp * Router Name# config t * Router Name# router (protocol type + any extensions needed in instructions) * Router Name# network (+ IP address) To Di: le A Prote It * 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 setting: * Router Name# ctrl z (to save settings and execute the command) * Router Name# ctrl c (starts over, abort) * Router Name# write mem (saves everything to NV Ram) * 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, sO, ... 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, sO, ... 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) To Enable IPX (Novell) * Router Name# config t * Router Name# ipx routing + Router Name# int (+ interface you plan to configure, ie: €0, sO, ... screen changes) * Router Name# ipx network (ipx address) Router Name # sh ipx shows ipx servers on the network servers Router Name # sh ipx shows ipx networks seen by the routers route Router Name # sh ipx shows ipx related protocols traffic Router Name # sh ipx int view ipx address on an interface ‘To Enable VTY * Router Name# config t enable password cisco enter (global command) + Router Name# line vty 0 4 * Router Name# login * Router Name# password cisco

Vous aimerez peut-être aussi