Ccna

593 views

Published on

Published in: Education
  • Be the first to comment

Ccna

  1. 1. CCNA Command Summary Cheat Sheet Basic Router CommandsTo get into Privilege Mode from User enablemodeTo exit out of Privilege mode disableTo exit the router Exit or logoffPrevious Command Up arrow or Ctrl-PNext Command Down arrow or Ctrl-NMove forward one character Right arrow or Ctrl-FMove back one character Left arrow or Ctrl-BBreak Key or Cancel <ctrl>“c”Auto Complete the command <tab> Setting PasswordsSet Password for Console Port line console 0 login password passwordSet Password for Telnet line vty 0 4 login password passwordSet Password for Privilege (Enabled) mode enable password passwordSet Encrypted password for Privilege mode enable password password Router Configuration CommandsTo go from Privilege mode to Global configure terminalConfiguration modeTo copy the running-configuration to the copy run startstart-up configuration 1 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  2. 2. To copy the startup-config to the running- copy start runconfigTo copy the startup-config to a TFTP copy start tftpserverTo copy the running-config to a TFTP copy run tftpserverSave a backup of the IOS to a TFTP server copy flash tftpUpgrade the IOS from a TFTP server copy tftp flashTell the router which IOS in flash to boot boot system flash {filename}fromTell the Router which IOS to request from boot system tftp {filename}a TFTP server (usually a fallback option) Viewing the Router’s InformationIOS Version info show versionCurrent config stored in RAM show running-configConfiguration stored in NVRAM show startup-configTo see IOS info stored in flash show flashTo see information on the interfaces show interfacesTo see a summary of the interfaces show ip int briefTo see processor utilization show processes cpu Configuring an InterfaceTo access an interface “From Global config” interface {type} {number} example : interface Ethernet 0To set Clock rate on a serial interface Clock rate {kbps} Example : clock rate 64000Enable the interface no shutdownDisable the interface shutdownAssign an IP address to an Interface ip address {Ip address} {subnet mask} Example: ip address 10.1.1.1 255.255.255.0 Configuring TCP/IPTo enable IP routing on a Router “From Global config” ip routingTo disable IP routing on a Router “From Global config” no ip routing 2 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  3. 3. Displays values about routing timers, show ip protocolsnetworks, and routing information.Displays contents of the routing table. show ip routeAssign an IP address to an Interface ip address {Ip address} {subnet mask} Example: ip address 10.1.1.1 255.255.255.0Manually setups up a host table mapping a ip host name “ ip” “addresss”hostname to an ip address.Displays the host table show hostsConfigure RIP router rip network “network address”Configure IGRP Router rip Network “network address”Displays RIP updates debug ip ripDisplays IGRP transactions debug ip igrp transactionsDisplays IGRP summary transactions Debug ip igrp eventsDisplays status and global parameters show ip interfacesassociated with an interfaceAllows remote management of a device telnet “ip address of host”Uses ICMP to verify hardware connection ping “network address”and logical address of the network layerTo setup a static route ip route “network” “mask” “next hop address” IPX configurationEnable IPX on a router ipx routingTo enable load balancing ipx maximum-paths “number”To assign a IPX network address to an ipx network “network number”interfaceTo set the encapsulation type on an encap novell-etherinterface encap sap encap arpa encap snapTo view the IPX routing table show ipx routeTo view an IPX address on an interface show ipx interfaceTo view the sap table show ipx serversTo view IPX traffic statistics show ipx trafficTo view the IPX rip updates debug ipx routing activityTo view the SAP packets coming and debug ipx sapgoing Cisco Discovery ProtocolSee info on directly connected neighbors show cdp neighborsAdd “detail” to the end for more infoTo see what interfaces are runnning CDP show cdp interfaceTo specify and particular neighbor and see show cdp entry “hostname”CDP information 3 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  4. 4. To turn off CDP for the entire router no cdp runTo turn off CDP for an interface No cdp enableTo change how often the router sends CDP cdp timer “seconds”updatesTo change how long the router will wait cdp holdtime “seconds”before it’s removes a CDP neighber fromit’s table Access-ListsIP Standard Access Lists 1-99 access-list access-list-number,Set parameters for this access list permit |deny, source, [source-mask]test statementEnable an interface to become part protocol access-group access-list-of a group that uses the specified number, in | outaccess list.IP Extended Access Lists 100-199 access-list Access-list-number,Set parameters for this access list permit |deny, protocol, source,entry source-mask, destination, destination-mask, [operator operand], [established]Enable an interface to become part protocol access-group access-of a group that uses the specified list-number, in | outaccess list.Assigns an alpha-numeric name ip access-list standard |string to an access list extended nameActivates the access list on an ip access-group name | 1-199,interface in | outCan be used to verify whether show ip interfacesaccess lists are setDisplays the contents of all access show access-listslistsIPX Standard Access Lists 800-899 access-list Access-list-number,Set parameters for this access list permit | deny, source-networkentry [.source-node], [source-node-mask], [destination- network], [.destination-node] [destination- node- mask]Enable an interface to become part ipx access-group access-list-of a group that uses the specified number, in | outaccess list.IPX Extended Access Lists 900-999 access-list Access-list-number,Set parameters for this access list permit |entry deny, protocol, source-network [[[.source-node]source-node-mask] | [.source-node source-network-mask.source-node- mask]], [source-socket], [destination- network],[[[. destination-node] destination-node- mask] | [destination-node destination-network- 4 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  5. 5. mask.destination-node-mask]], [destination-socket], [log]Enable an interface to become part ipx access-group access-list-of a group that uses the specified number, in | outaccess list.IPX SAP Filter Access Lists 1000- access-list Access-list-number,1099 permit |Creates an entry in a SAP filter deny, network [.node], [network-list mask node-mask], [service-type [server- name]]Activates the output SAP filter on ipx output-sap-filter access-the interface list-numberActivates the input SAP filter on ipx input-sap-filter access-the interface list-numberDisplays information about the show ipx interfaceconfig of the interface includingSAP filter numbers. WAN configurationPPP AuthenticationOn each router defines the username username name password secretand password toexpect from the remote routerConfigure the interface for ppp encapsulation pppencapsulationConfigure ppp authentication type PPP authentication chap | chap pap |pap chap | papEnables PAP on an interface ppp pap sent-username(disabled by default) username password passwordTo use the same host name on ppp chap hostname hostnamemultiple routersUse to authenticate to an unknown ppp chap password secrethost. This password isnot used when the routerauthenticates a remote device.Displays authentication sequence as debug ppp authenticationit occursConfiguring Frame Relay encapsulation frame-relaySpecifies encapsulation type. [cisco | ietf]Specifies LMI type used by the FR frame-relay lmi-type ansi |switch. (default cisco) cisco | q933iInverse ARP is enabled by default. frame-relay inverse-arpIf it has been disabled use this [protocol] [dlci]command to enable it.Used to define the address to DLCI frame-relay map protocol protocol-table statically. address dlci [broadcast] [ietf | cisco ] 5 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  6. 6. Displays the route maps (static or show frame-relay mapdynamic)Displays LMI information show frame-relay lmiSelects a subinterface to configure interface serial number.subinterface-number multipoint | point-to-pointDefines the local DLCI number being frame-relay interface-dlci dlci-linked to the interface mumber Misc. CommandsRemove 10 minute interval router no exec-timeout or exec-timeout 0 0waits for inputSet clock clock set 20:26:00 04 July 2001Change number of lines history will terminal history size “lines”record (max 256)Sets token ring speed to 16 Mbps ring-speed 16Enables early token release early-token releaseSpecifies a media independent media-type 10baseTinterface physical connectionset the configuration register config-register 0x2102(where to boot from) 0 forROM Monitor, 1 for ROM, 2 NVRAM. www.RouterPrep.com 6 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.

×