You are on page 1of 7

10/04/2016

RouterCommands

RouterCommands
CiscoRouterCommands
WANCommands
https://docs.google.com/document/d/1U9wX7q02sQPMsYYFSuXEOuPKIsJGulRjYRvfQrcnlE/pub
SwitchCommands
https://docs.google.com/document/d/1JAIculeWcy_vT2YfMsRE8FegpIMUNsi2ypm_sVah7c/pub

Chapter1BasicRouterConfig
BasicRouterConfiguration

Configuringaninterface

Hostname
router>en
router#conft
router(config)#hostnameR1
R1(config)#exit

SerialwithDCE
router>en
router#conft
router(config)#ints0/0/0
router(config)#description[description]
router(configif)#ipaddress[ip][subnet]
router(configif)#clockrate[#]
router(configif)#noshut

Telnet
R1(config)#linevty0
R1(configline)#password[password]
R1(configline)#login
R1(config)#exit
Console
R1(config)#linecon0
R1(configline)#password[password]
R1(configline)#login
R1(config)#exit
EnableandSecretCommands
R1(config)#enablepassword[password]
R1(config)#enablesecret[password]
R1(config)#exit
EncryptsThePasswords
R1(configline)#servicepasswordencryption

Gigabit
router>en
router#conft
router(config)#intg0/0
router(config)#description[description]
router(configif)#ipaddress[ip][subnet]
router(configif)#noshut

LoopbackAddressConfiguration
router(config)#intloopback[#]
router(configif)#ipaddress[ip][subnet]
router(config)#exit

ShowCommands

DisableIPLookup
router(config)#noipdomainlookup

router#showiproute
Codesandinfoabouttheinterfacesandroutes

EnableIPv6
router(config)#ipv6unicastrouting

router#showrun
Displaysrunningconfiguration

SaveYourConfiguration
router#copyrunstart

router#showipv6interfacebrief
Infoaboutipv6interfacesontherouter

ConfigureLinkLocalAddress
router(config)#int[interfaceid]
router(configif)#ipv6[linklocaladdress]linklocal

router#showipv6route
Codesandinfoabouttheipv6interfacesandroutes

FastEthernet
router>en
router#conft
router(config)#intfa0/0
router(config)#description[description]
router(configif)#ipaddress[ip][subnet]
router(configif)#noshut

router#showipinterfacebrief
Infoaboutinterfacesontherouter

router#showhistory
Previouslyenteredcommands

MOTDAndLoginBanner
R1(config)#bannerMOTD[bannertext]
R1(config)#bannerLogin[bannertext]

Chapter2StaticRouting
StaticRoutes
Recursiveroute
router(config)#iproute[networkaddress][subnetaddress][nexthop
ip]
DirectlyConnectedRoute
router(config)#iproute[networkaddress][subnet][nexthopinterface]

DefaultStaticRoute
router(config)#iproute0.0.0.00.0.0.0[iporexitinterface]
DefaultIPv6StaticRoute
router(config)#ipv6route::/0[iporexitinterface]

ShowCommands
router#showiproutestatic
ShowsthestaticIpv4routes
router#showipv6routestatic
ShowsthestaticIpv6routes

FullySpecifiedRoute
router(config)#iproute[networkaddress][subnet][nexthopip][next
hopinterface]
IPv6staticroutes
router(config)#ipv6route[ipv6/prefixnumber][iporexitinterface]

https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

1/7

10/04/2016

RouterCommands

Chapter3RIP
EnableRip
router>en
router#conft
router(config)#routerrip
EnableRipv2
router>en
router#conft
router(config)#routerrip
router(configrouter)#version2

DisableAutoSummary
router>en
router#conft
router(config)#routerrip
router(config)#noautosummary
router(config)#end

PropagatetheDefaultRoute
router(config)#iproute0.0.0.00.0.0.0[exitint][next
hopip]
router(config)#routerrip
router(configrouter)#defaultinformationoriginate
EnableRIPngonInterfaces

PassiveInterfacemode
router>en
router#conft
router(config)#routerrip
router(config)#passiveinterface[interfaceid]
router(config)#end

ShowCommands
router#showipprotocols
Displaysprotocolinformation
router#showipv6protocols
Displaysprotocolinformation

router(config)#in[interfaceid]
router(configif)#ipv6ripRIPASenable
router(configif)#exit
router(config)#in[interfaceid]
router(configif)#ipv6ripRIPASenable
router(configif)#exit

Chapter4EIGRP
ConfigureEIGRP
router>en
router#conft
router(config)#routereigrp[autonomous#]
ConfigureEIGRPIPv6
router>en
router#conft
router(config)#ipv6routereigrp[as#]
router(configrtr)#eigrprouterid1.1.1.1
router(configrtr)#noshut
RouterID
router>en
router#conft
router(config)#routereigrp[as#]
router(configrouter)#routerid1.1.1.1

SetNetworks
router>en
router#conft
router(config)#routereigrp[as#]
router(configrouter)#network[ipaddress][wildcard]
router(configrouter)#network192.168.16.0
0.0.0.255
router(configrouter)#network172.16.10.00.0.0.3
PassiveInterfaces
router>en
router#conft
router(config)#routereigrp[as#]
router(configrouter)#passiveinterfaceg0/0

ModifyBandwidth
router>en
router#conft
router(config)#int[interfaceid]
router(configif)#bandwidth[number]
ConfigureEIGRPIPv6onInterface
router(config)#int[interfaceid]
router(configif)#ipv6eigrp[as#]
router(configif)#exit

ShowCommands
router#Showipprotocols
Displaysprotocolinformation
router#showipeigrpneighbors
Viewneighbortable
router#showiprouter
DsareEIGRPlearnedroutes
router#showipeigrptopology
showFDs,FSs,andSs
router#showipv6protocols
Displaysprotocolinformation

Chapter5AdvancedEIGRP
SetAutoSummary
router>en
router#conft
router(config)#routereigrp[as#]
router(config)#autosummary
SummarizeRoutesIPv4
router(config)#int[interfaceid]
router(configif)#ipsummaryaddresseigrp[as#][ip]
[subnet]
router(configif)#end
SummarizeRoutesIPv6
router(config)#int[interfaceid]
router(configif)#ipv6summaryaddresseigrp[as#][ip]
router(configif)#end

LoopbackAddressIPv4
router(config)#intloopback[#]
router(configif)#ipadd[ip][subnet]
router(configif)#exit
router(config)#routereigrp[as#]
router(configrouter)#network
192.168.3.0
LoopbackAddressIPv6
router(config)#intloopback[#]
router(configif)#ipv6address[address]
router(configif)#ipv6eigrp[as#]
router(configif)#exit
LoadBalancingEIGRPIPv4
router(configrouter)#maximumpaths[#]

https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

DefaultRoutePropagationIPv4
router(config)#iproute0.0.0.00.0.0.0[exitinterface]
router(config)#routereigrp[as#]
router(configrouter)#redistributestatic
DefaultRoutePropagationIPv6
router(config)#ipv6route::/0[exitinterface]
router(config)#ipv6routereigrp[as#]
router(configrtr)#redistributestatic
ConfigureEIGRPbandwidth
router(config)#int[interfaceid]
router(configif)#ipbandwidthpercenteigrp[as#]
[%]
HelloHoldTimers
router(config)#int[interfaceid]
router(configif)#iphellointervaleigrp[as#]
[seconds]
router(configif)#ipholdtimeeigrp[as#][seconds]

EiGRPAuthentication
Createakeychainandkey
router(config)#keychain[nameofchain]
router(configkeychain)#key[keyid]
router(configkeychain)#keystring[keystringtext]
ConfigureauthenticationusingKeychain
router(config)#int[interfaceid]
router(configif)#ipauthenticationmodeeigrp[as#]md5
router(configif)#ipauthenticationkeychaineigrp[as#]
[nameofchain]
router#showipeigrpinterfacesdetail
ShowsthekeysenteredHelloandHoldTimes,and
bandwidth
EIGRPNotes

2/7

10/04/2016

RouterCommands

router(configif)#ipholdtimeeigrp[as#][seconds]

Chapter6SingleAreaOSPF
ConfigureOSPF
router(config)#routerospf[processid]
SetaRouterID
router(configrouter)#routerid[loopback]
SetupPassiveInterfaces
router(config)#routerospf[processid]
router(configrouter)#passiveinterfaceg0/0
router(configrouter)#passiveinterfacefa0/0
router(configrouter)#passiveinterface
s0/0/0
ConfigLoopbackAddresses
router(config)#intloopback[#]
router(configif)#ipadd[ip][subnet]
router(configif)#exit
HowdoestheRouterSelectRouterID?
1.TheRouterIDmanuallyconfigured.
2.ThehighestIPonaloopbackaddress.
3.TheHighestactiveIPaddressona
physicalinterface.

ConfigureNetworkInterfaces
router(config)#routerospf[processid]
router(configrouter)#network[ip][wildcard]area[id]
router(configrouter)#network172.16.1.00.0.255area
0
ConfigureNetworkInterfacesWithQuadZero
router(config)#routerospf[processid]
router(configrouter)#network[ip]0.0.0.0area[id]
router(configrouter)#network172.16.1.00.0.0.0area
0
AdjustingBandwidth
router(config)#int[interfaceid]
router(configif)#bandwidth[number]
AdjustingOSPFCost
router(config)#int[interfaceid]
router(configif)#nobandwidth[number]
router(configif)#ipospfcost[number]
DefaultRoutePropagation
router(config)#routerospf[processid]
router(configrouter)#defaultinformationoriginate

ConfigureOSPFv3forIPv6
router(config)#ipunicastrouting
router(config)#int[interfaceid]
router(configif)#ipv6addfe80::1linklocal
router(configif)#exit
router(config)#ipv6routerospf[processid]
router(configrtr)#routerid1.1.1.1
router(configrtr)#autocostreferencebandwidth[number]
router(configrtr)#end
AboveStepsInFurtherDetail
1.EnableIPv6unicastrouting:ipv6unicastrouting.
2.(Optional)Configurelinklocaladdresses.
3.Configurea32bitrouterIDinOSPFv3router
configurationmodeusingtherouteridridcommand.
4.Configureoptionalroutingspecificssuchas
adjustingthereferencebandwidth.
5.(Optional)ConfigureOSPFv3interfacespecific
settings.i.ebandwidth
6.EnableIPv6routingbyusingtheipv6ospfarea
command.
EnableOSPFv3onInterfaces
router(config)#ints0/0/0
router(configif)#ipv6ospf[processid]area[id]
router(configif)#exit
router(config)#intfa0/1
router(configif)#ipv6ospf[processid]area[id]
router(configif)#exit
router(config)#intg0/1
router(configif)#ipv6ospf[processid]area[id]
router(configif)#exit

ShowCommands
router#showospfinterfacebrief
Displaysinfoaboutthatparticularinterface.Displays
Cost
router#showipospfneighbor
DisplaysOSPFneighbors
router#showipv6ospfneighbor
DisplaysOSPFv3neighbors
router#showipospf
DisplaysOSPFconfigurationinformation
router#showiprouteospf
VerifyRoutes
router#showipprotocols
and
router#showipv6protocols
Displaysinfoabouttheprotocolentered
router#showipv6ospfinterfacebrief
Verifyospfv3interfacesettings
router#showipv6routeospf
VerifyRoutes
router#showospfdatabase
DisplaystheLSDBinfo

Chapter7AdjustandtroubleshootSingleAreaOSPF
ChangeInterfacePriority
router(config)#int[interfaceid]
router(configif)#ipospfpriority[number]
router(configif)#end
ClearallOSPFProcesses
router#clearipospfprocess
HowtotherouterchoosesDR/BDR?
1.TherouterwiththehighestinterfacepriorityisDR
andthesecondhighestistheBDR.
2.Ifallhavethesamepriority,default1,thenthe
routerwiththehighestRouterIDisDRandsecond
highestisBDR.
Note:Electionprocesshappensonce.Ifarouteris
addedthathasahigherRouterIDnothingwill
happen.IftheDRgoesdown.TheBDRwillstepup
asDRandanewBDRwillbeelected.

PropagatetheDefaultRouteforOSPFv2
router(config)#iproute0.0.0.00.0.0.0[IPorExit
int]
PropagatetheDefaultRouteforOSPFv3
router(config)#iproute::0/0[IPorExitint]
DefaultRoutePropagationOSPFv2or
OSPFv3
router(config)#routerospf[processid]
router(configrouter)#defaultinformationoriginate
HelloHoldTimersipv4
router(config)#int[interfaceid]
router(configif)#ipospfhellointerval[seconds]
router(configif)#ipospfdeadinterval[seconds]

EnableMD5EncryptionGlobally
router(config)#routerospf[processid]
router(configrouter)#ipospfmessagedigestkey[key#]
md5[password]
router(configrouter)#area[#]authenticationmessage
digest
EnableMD5EncryptiononanInterface
router(config)#int[interfaceid]
router(configif)#ipospfmessagedigestkey[key#]md5
[password]
router(configif)#ipospfauthenticationmessagedigest

RouterLinkStates:
1.DownNoHelloPacketsorissendingHello
Packets
2.InitReceiveHelloPacketwithRouterIDof
Sendingrouter
3.TwoWayElectDR/BDR
4.ExStartInitiatesDBDPacketExchange,
Master/Slave
5.ExchangeActuallyexchangeofDBD
Packets
6.LoadingLSR/LSUusedandSPFalgorithm
processed
7.FullRoutershaveconverged

HelloHoldTimersipv6
router(config)#int[interfaceid]
router(configif)#ipv6ospfhellointerval[seconds]
router(configif)#ipv6ospfdeadinterval[seconds]

https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

3/7

10/04/2016

RouterCommands

Chapter8MultiAreaOSPF
ConfigureMultiAreaOSPFv2
router(config)#routerospf[processid]
router(configrouter)#routerid[loopback]
router(configrouter)#network[ip]0.0.0.0area[id]
router(configrouter)#network172.16.1.00.0.0area0
router(configrouter)#network192.168.10.00.0.0area
1
router(configrouter)#network10.1.1.00.0.0area2
ConfigureMultiAreaOSPFv3
router(config)#ipv6routerospf[processid]
router(configrtr)#routerid[loopback]
router(configrtr)#exit
router(config)#int[interfaceid]
router(configif)#ipv6ospf[processid]area[id]
router(configif)#end

WhyUseMultiareaOSPF?
1.Smallerroutingtablesentriesasnetworkscan
besummarized.
2.Reducedlinkstateupdateoverheadbecause
therearefewerexchangingLSAs
3.ReducedfrequencyofSPFcalculationsafter
topologychanges.

TypesofRouters:
1.InternalRouters:AllinterfacesonsameArea.
2.BackboneRouter:Arouterinthebackbone,area0
3.AreaBorderRouters(ABR):Routersthatare
attachedtomorethanonearea.Theyaretaskedwith
movingtrafficfromoneareatoanother.
4.AutonomousSystemBoundaryRouter(ASBR):A
routerthathasoneinterfaceconnectedtoanexternal
network.(Internet).Itistaskedwithmovingnonospfinfo
TwolayerHierarchy:
1.Backbone(Transit):Endusersnothere,Area intotheOSPFnetwork.
0,Fastmovementofpacketsbecausealltraffic
crossesthisarea
RoutingTableEntries
2.Regular(nonbackbone):Connectsusersto OIntraareaOSPFroute.Type12
resources,Trafficfromanotherareadoesnotuse OIAInterareaOSPFroute.Learnedfromotherareas.
itslinks,alltrafficmustcrosstransitarea.
OE2orOE2ExternalOSPFroutes

SummaryRoutesforInterareaRoutes
router(config)#routerospf[processid]
router(configrouter)#area[id]range[summaryip]
[subnet]
SummaryRoutesforExternalRoutes
router(config)#routerospf[processid]
router(configrouter)#summaryaddress[ipadd]
[subnet]

OSPFLSATypes(Boldarecommon)
1.RouterLSA:RouterEntries,floodedinone
area,dontcrossABR,linkstateidisthe
originatingRouterID
2.NetworkLSA:OnlyDRcreatesthese,
floodedinmultiaccessnetwork,dontcrossthe
ABR,linkstateIDistheDR.
3.SummaryLSA:Describesnetworkaddress
learnedbytype1LSA,Requiredforeach
subnet,ABRsfloodtype3stootherareas,link
stateIDisnetworkaddress,routesarenot
summarizedbydefault.
4.SummaryASBRLSA:AdvertiseASBRto
otherareas,createdbyABRs,linkstateIDis
therouterIDoftheASBR,createdby
originatingABRandreplicatedbyotherABRs
5.ASExternalLSA:UsedfornonOSPF
addresses,generatedbyASBR,flooded
throughoutareas,linkstateIDisexternal
networkaddress.
6.MulticastOSPFLSA
7.DefinedforNSSAs
8.ExternalAttributesforBGP
9.10.and11.OpaqueLSAs

Chapter9AccessControlLists(ACLs)
ConfigureBasicAccessLists(ACLs)
router(config)#accesslist[acl#][variable][ip][wildcard]
router(config)#accesslist1deny192.168.10.00.0.0.255
router(config)#accesslist1permitany
Variable=deny,permit,remark

ConfigureStandardNamedACLs
router(config)#ipaccesslist[standard/extended][name]
router(configstdnacl)#[variable][sourceip][source
wildcard]
router(configstdnacl)#permitany

RemoveBasicACLs
router(config)#noaccesslist[acl#]

ExampleConfigureStandardNamedACLs
router(config)#ipaccessliststandardaccess_list
router(configstdnacl)#deny192.168.10.00.0.0.255
router(configstdnacl)#permitany

ACLsforSingleHosts
router(config)#accesslist[acl#][variable]host[ip]
LinkStandardACLstoInterfaces
router(config)#int[interfaceid]
router(configif)#ipaccessgroup[acl#][in/out]

ACLRemarksAwaytodocumentACLs
router(config)#accesslist[acl#]remark[remark
text]
or
router(config)#ipaccesslist[standard/extended]
[name]
router(configstdnacl)#remark[remarktext]

RestrictingVTYwithNumberedACLs
router(config)#linevty04
router(configline)#loginlocal
EditingStandardNamedACLs
router(configline)#transportinputssh
router(config)#ipaccessliststandard[acl#]or[name]
router(configline)#accessclass[acl#][in/out]
router(configstdnacl)#no[sequence#]
router(configline)#exit
router(configstdnacl)#[sequence#][variable][ip][wildcard] router(config)#accesslist[acl#][variable][ip]
[wildcard]
router(config)#accesslist1denyany
LinkStandardNamedACLstoInterfaces
router(config)#int[interfaceid]
router(configif)#ipaccessgroup[name][in/out]

ShowCommands
router#showaccesslists
displayscurrentaccesslists
router#showaccesslists[num/name]
displaysselectaccesslists
QuickACLNotes
Thereisanimplicitdenyanyany
attheendofeveryACL
StandardACLsshouldbeplaced
closetothesource
ExtendedACLsshouldbeplaced
closetothedestination
Filterunwantedtrafficbeforeit
consumesunwantedbandwidth
VTYrestrictingisimportant
StandardACL199&13001999
ExtendedACL100199&2000
2699
ExtendedACLscanfilterbasedon
Destinationandports

ExtendedACLs
ConfigureExtendedSequentialACLswithoutDestination
https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

ConfigureExtendedNamedACLswithoutDestination

4/7

10/04/2016

RouterCommands

ConfigureExtendedSequentialACLswithoutDestination
range
R1(config)#accesslist[acl#][variable][protocol][sourceip][sourcewildcard][operator][port/portname]
R1(config)#accesslist103permittcp192.168.10.00.0.0.255anyeq80
host
R1(config)#accesslist[acl#][variable][protocol]host[sourceip][operator][port/portname]
R1(config)#accesslist175denyudphost192.168.10.0anyeqwww

ConfigureExtendedNamedACLswithoutDestination
range
R1(config)#ipaccesslistextended[name]
R1(configextnacl)#[variable][protocol][sourceip][sourcewildcard][operator][port/portname]
host
R1(config)#ipaccesslistextended[name]
R1(configextnacl)#[variable][protocol]host[sourceip][operator][port/portname]

ConfigureExtendedSequentialACLswithDestination
rangetorange
R1(config)#accesslist[acl#][variable][protocol][sourceip][sourcewildcard][destip][destwildcard]
[operator][port/portname]
R1(config)#accesslist131denyudp172.31.1.00.0.0.255192.168.10.00.0.0.255eq443
hosttohost
R1(config)#accesslist[acl#][variable]host[sourceip]host[destip][operator][port/portname]
R1(config)#accesslist103denytcphost172.31.1.102host64.103.255.254eqftp
hosttorange
R1(config)#accesslist[acl#][variable]host[sourceip][destip][destwildcard][operator][port/port
name]
R1(config)#accesslist117permitudphost172.31.1.0192.168.10.00.0.0.255eqwww
rangetohost
R1(config)#accesslist[acl#][variable]host[sourceip][destip][destwildcard][operator][port/port
name]
R1(config)#accesslist131permitudphost172.31.1.0192.168.10.00.0.0.255eq80

ConfigureExtendedSequentialACLswithDestination
rangetorange
R1(config)#ipaccesslistextended[name]
R1(configextnacl)#[variable][protocol][sourceip][sourcewildcard][destip][destwildcard][operator]
[port/portname]
hosttohost
R1(config)#ipaccesslistextended[name]
R1(configextnacl)#[variable]host[sourceip]host[destip][operator][port/portname]
hosttorange
R1(config)#ipaccesslistextended[name]
R1(configextnacl)#[variable]host[sourceip][destip][destwildcard][operator][port/portname]
rangetohost
R1(config)#ipaccesslistextended[name]
R1(configextnacl)#[variable]host[sourceip][destip][destwildcard][operator][port/portname]

ACLVariableList
variable=deny,permit,remark
protocol=icmp,ip,tcp,udp
operator=any,lt(lessthan),gt(greaterthan),eq(equal),neq(notequal),range(inclusiverange)
EndACLVariableList

TroubleshootingExtendedACLPortNames
router(config)#accesslist101permittcpanyanyeq?

IPv6NamedACLs
ConfigureIPv6ACLwithoutDestination
range
router(config)#ipv6accesslist[name]
router(configipv6acl)#[deny/permit][protocol][sourceipv6][operator][port/portname]
host
router(config)#ipv6accesslist[name]
router(configipv6acl)#[deny/permit][protocol]host[sourceipv6][operator][port/portname]
ConfigureIPv6ACLwithDestination
rangetorange
router(config)#ipv6accesslist[name]
router(configipv6acl)#[deny/permit][protocol][sourceipv6][destipv6][operator][port/portname]
hosttohost
router(config)#ipv6accesslist[name]
router(configipv6acl)#[deny/permit][protocol]host[sourceipv6]host[destipv6][operator][port/portname]
rangetohost
router(config)#ipv6accesslist[name]
router(configipv6acl)#[deny/permit][protocol]any[sourceipv6]host[destipv6][operator][port/portname]
hosttorange
router(config)#ipv6accesslist[name]
router(configipv6acl)#[deny/permit][protocol]host[sourceipv6]any[destipv6][operator][port/portname]

ApplyIPv6ACLtoInterface
router(config)#int[interfaceid]
router(configif)#ipv6trafficfilter[name][in/out]
IPv6ACLNotes
1.TheonlyACLtypeisnamedextended
2.IPv6ACLsallowICMPNeighborSolicitationMessages
3.Nowildcardmasks
4.TwonewDefaultStatementsimpliedattheendofeveryACL
a.permiticmpanyanyndna
b.permiticmpanyanyndns
5.IPv6usestrafficfiltercommandinsteadofaccessgroupwhenapplyingACLstointerfaces

ACLVariableList
variable=deny,permit,remark
protocol=icmp,ipv6,tcp,udp
operator=any,lt(lessthan),gt(greaterthan),eq(equal),neq(notequal),range(inclusiverange)
EndACLVariableList

Chapter10IOSImagesandLicensing
BackupIOSImage
router#copy[sourceurl][desturl]
router#copyflash:tftp:

InstallaLicense
router#licenseinstall[licensenumber]
router#reload

RetrieveIOSImage

AcceptEULA

router#copy[sourceurl][desturl]
router(config)#licenseacceptenduseragreement
https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

DisableTechnologyPackage
router(config)#licensebootmodule[modulename]
technologypackage[packagename]disable
router(config)#exit
router#reload

ShowCommands
router#showflash0
Displaystheiosimageinformation
router#showlicenseudi
DisplaysthelicenseUDIinfo

5/7

10/04/2016

RouterCommands

router#copy[sourceurl][desturl]
router#copytftp:flash:
ManageBootSystems
router#conft
router(config)#bootsystemflash:/[filename]
router(config)#exit
router#copyrunstart
router#reload

router(config)#licenseacceptenduseragreement
router(config)#licensebootmodule[modulename]
technologypackage[packagename]
BackupLicense
router#licensesave[liclocation]

CleartheLicense
router#licenseclear[featurename]
router#conft
router(config)#nolicensebootmodule[module
name]technologypackage[packagename]disable
router(config)#exit
router#reload

DisplaysthelicenseUDIinfo
router#showversion
Displaysiflicensewascorrectlyinstalled
router#showlicense
DisplaysAdditionalLicenseinfo
router#showflash
Verifylicensesave

TheLegend
BracketedItems

[anythinginbrackets]VariableInputbyYou
[interfaceid]s0/0/0,g0/0,fa0/0.
[number]or[#]anynumber1towhateverisallowed
[ip]a.b.c.d172.168.10.2
[subnet]a.b.c.d255.255.255.0
[wildcard]a.b.c.d0.0.0.255
[networkaddress]a.b.c.d172.16.0.0
[as#]or[autonomous#]EIGRPAutonomousNumber
[processid]or[id]usuallyanumber
[acl#]AccessControlListNumber
[sequence#]NumberbeforeACLdisplayedwithshowaccesslist
[destipv6]or[destip]ShortforDestinationIP

WizardTricks

ShorthandItems

Hittingtabwhiletypingacommandwillfinishthatword

enable=en
configurationterminal=conft
ipaddress=ipadd
runningconfig=run
startupconfig=start

Ifyougetthedreadeddomainserver(255.255.255.255)
simplyhitthekeystrokeCTRL+Shift+6toexitoutofthatprocess
Example:
R1#afd
Translating"afd"...domainserver(255.255.255.255)
Typedobeforeashowcommandtoperformitinanymode
Normal:
R1#showipintbrief
Withdo:
R1(config)#doshowipintbrief

SubnetInfo
IPv4SubnetCheatSheet

IPv6SubnetCheatSheet

Addresses

Hosts

Netmask

#ofclassC

/30

255.255.255.252

1/64

/29

255.255.255.248

1/32

/28

16

14

255.255.255.240

1/16

/27

32

30

255.255.255.224

1/8

/26

64

62

255.255.255.192

1/4

/25

128

126

255.255.255.128

1/2

/24

256

254

255.255.255.0

/23

512

510

255.255.254.0

/22

1024

1022

255.255.252.0

/21

2048

2046

255.255.248.0

/20

4096

4094

255.255.240.0

16

/19

8192

8190

255.255.224.0

32

/18

16384

16382

255.255.192.0

64

/17

32768

32768

255.255.128.0

128

/16

65536

65534

255.255.0.0

256

https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

(ComingSoon)

6/7

10/04/2016

RouterCommands

BonusSection:
EnterasysRoutingCommands
Thesearelayer3switches.
DisableSpanningTreeonaperportbasis.

ErasetheConfig
clearconfigall

AreasIDsareformatted0.0.0.0notsingle
digitslikeCisco.

RenameSwitch
setpromptname

NatNetworkAddressTranslation.Publicto
privateIPconversion

DisableSpanningTree
setspantreedisable

FullConeNatOpeninboundandoutbound.
Norestrictions

CreateVlans
setvlancreate[#]

RestrictedConeNatonlyallowscertain
communication

Assignaporttoavlan
setportvlan[interface][vlanid]modify
egress

OnlyApplyACLtoinboundinterface
400linesperacl
80linespergroup

ChangingVlanPriority
interfacevlan[#]
ipospfpriority[0255]
AddingStaticRoutes
iproute[ip][subnet][nexthopip]

DefineStubNetworks
routerospf[processid]
area[#]stubnosummary

VRRP=VirtualRoutingRedundancy
Protocol
VRRPallowsredundantpaths

MD5Authentication
interfacevlan[#]
ipospfmessagedigestkey[#]md5
[password]

SetIPAddressestovlan
interfacevlan[#]
setipaddress[ip][subnet]
noshutdown

RedistributeStaticRoutes
redistributestaticsubnets

CseriesinboundACLonly
SseriesoutboundandInboundACLs

SimpleAuthentication
interfacevlan[#]
ipospfauthenticationkey[key]

EnterRouterMode
router
enable
config

StandardACL
ipaccessliststandard[name]
deny[ip]0.0.0.0
permitan
ApplyStandardACLtoVlan
interfacevlan[#]
ipaccessgroup[name]in

RemoveStandardACL
noipaccessgroup[name]in
RemoveExtendedACL
noipaccessgroupin

ExtendedACL
ipaccesslistextended[#]
deny[protocol][sourceip][destip]
permitipanyany

EnableRIP
routerrip
EnableRIPonaVlan
interfacevlan[#]
ipripenable
ipripsendversion2
ipriprecreceiveversion

ShowCommands
showipospfneighbor
showiproute
showipospf
showipospfinterface
showipospfdatabase
showaccesslists
showipvrrp
showipvrrp[vrrp#]

EnableOSPF
routerid[loopback]
routerospf[#]
AddingOSPFNetworks
routerospf[processid]
network[ip][subnet]area[0.0.0.0]
AddingOSPFtoVlan
interfacevlan[processid
ipospfenable
ipospfareaid[#]
exit

VRRPOwnerConfig
routervrrp
createvlan[#][vrrp#]
addressvlan[#][vrrp#][ip]1
enablevlan[#][vrrp#]
VRRPNonOwnerConfig
routervrrp
createvlan[#][vrrp#]
addressvlan[#][vrrp#][ip]0
priorityvlan[#][vrrp#]100
enablevlan[#][vrrp#]

ApplyExtendedACLtoVlan
interfacevlan[#]
ipaccessgroup[#]in
MoveACLEntry
ipaccesslistextended[#]
movebefore[#]from[#]to[#]

PublishedbyGoogleDrive ReportAbuse Updatedautomaticallyevery5minutes

https://docs.google.com/document/d/1MUlAjg_349ui1JHEpamEGlghSAUA4Uz9dGxyQ2ge0MQ/pub

7/7

You might also like