Show Menu
Cheatography

CCNA Commands List Cheat Sheet (DRAFT) by

CCNA 200-301 Cheat Sheet for configuring different IOS devices

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Day 4 - Basic Device Security / Commands

SW1(co­nfig)#banner motd $"­enter welcome messag­e"$
sets message of the day banner when entering an IOS device.
SW1(co­nfig)#enable password "­pas­swo­rd"
unencr­ypted password text will be applied and can be viewed in runnin­g-c­onfig.
R1(con­fig)#service passwo­rd-­enc­ryption
encrypts the current unencr­ypted passwords and featured inserted passwords with Type 7 encryp­tion.
SW1(co­nfig)#enable secret "­pas­swo­rd"
encrypted password using MD5 hash. will take priority over unencr­ypted passwords.
R1(con­fig)#no ip domain­-lookup
disables DNS lookup from host and prevents miss-typed commands from being "­tra­nsl­ate­d". (CTRL+S­HIFT+6)
R1(con­f-l­ine)#logging synchr­onous
prevents logging output from interr­upting your command input.
Router­(co­nfig)#line vty 0 15
select ports 0-15 for SSH/Telnet virtual line.
R1(con­fig)#line console 0
selects the console port on the IOS device to make config­uration changes.
R1(con­fig)#login
activates a configured password that has been set for a remote connection such as Telnet or SSH.
R1(con­fig)#login local
asks the user logging in to enter a username & password stored on the router.
 
R1(con­fig)#username username privilege 1-15 secret password
STEP 1# sets up a username and password.
R1(con­fig)#line console 0
STEP 2# sets up a username and password.
R1(con­fig)#login local
STEP 3# sets up a username and password.
R1(con­fig)#end
STEP 4# sets up a username and password.
 
SW1(co­nfi­g-if)#default interface g0/1
restores the default settings of the interface selected.

Day 6 - Ethernet LAN Switching

SW1(co­nfig)#clear mac addres­s-table dynamic
manually removes the MAC address from the table.
SW1(co­nfig)#clear mac addres­s-table dynamic address MAC Address
deletes specific entered mac address.
SW1(co­nfig)#clear mac addres­s-table dynamic interface interface
deletes all mac address on an interface.

Day 8 - IPv4 Addressing

R1(con­fig­-if)#ip address 192.16­8.1.1 255.25­5.255.0
sets the chosen interface with an IP address and Subnet Mask
R1(con­fig­-if)#no shutdown
enables the interface
R1(con­fig)#hostname R1
sets a hostname to a chosen network device.

Day 9 - Switch Interfaces

SW1(co­nfi­g-if)#speed 10,100­,1000 or auto
sets the chosen interface speed settings.
SW1(co­nfig)#duplex half,full or auto
sets the chosen interface duplex settings.

Day 11 - Static Routing

R1(con­fig)#ip route | destin­ation of the network's ip address | destin­ation of the network's Subnet Mask | next hop router
sets a static configured route of the next hop address with destin­ation and subnet­mask.
R1(con­fig)#ip route 0.0.0.0 0.0.0.0 next hop router
sets a default route

Day 16 - VLANs (1)

SW1(co­nfi­g-if)#vlan vlan number
creates the VLAN.
SW1(co­nfi­g-vlan)name name a vlan
names the VLAN.
SW1(co­nfi­g-if)#switchport mode access
enables the VLAN on the selected interface.
SW1(co­nfi­g-if)#switchport access vlan vlan number
lets the configured VLAN number to access the selected interface.

Day 17 - VLANs (2)

SW1(co­nfi­g-if)#switchport mode trunk
sets the switchport to trunking mode.
SW1(co­nfi­g-if)#switchport trunk encaps­ulation dot1q
manually sets the encaps­ulation protocol to IEEE 802.1Q
SW1(co­nfi­g-if)#switchport trunk allowed vlan vlan number
adds VLANs to the config­ure­d/s­elected trunk
SW1(co­nfi­g-if)#switchport trunk native vlan native vlan number
changes the default native VLAN from "­1" to the configured native VLAN.
SW1#show interfaces trunk
displays the native VLAN number and the allowed VLAN on a trunk

Day 17 - ROAS (3)

R1(con­fig­-if)#interface g0/1
STEP #1- select a sub-in­ter­face.
R1(con­fig­-su­bif)#encaps­ulation dot1q vlan id
STEP #2 - encaps­ulate the VLAN with IEEE802.1Q frames.
R1(con­fig­-su­bif)#ip address 192.16­8.1.62 255.25­5.2­55.192
STEP #3 - configure the sub-in­terface with an IP address and subnet­mask.
R1#show ip interface brief
we can view those sub-in­ter­faces with these commands
R1#show ip route
we can view those sub-in­ter­faces with these commands

Day 18 - Multilayer Switch L3

MLSW1(­con­fig)#ip routing
enables Layer 3 routing on the MLSW.
MLSW1(­con­fig­-if)#no switchport
disables L2 switchport and makes it L3 capable switch­port.

Day 18 - Multilayer Switch SVI's

SW1(co­nfi­g-if)#interface vlan vlan number*
STEP 1# select a VLAN to configure an SVI on.
SW1(co­nfi­g-if)#ip address 192.16­8.1.62 255.25­5.2­55.192
STEP 2# set the SVI with an IP address
SW1(co­nfi­g-if)#no shutdown
STEP 3# enable the SVI interface.

Day 19 - DTP

SW2(co­nfi­g-if)#switchport mode dynamic auto/d­esi­rable
this is DTP. automa­tically determ­ining if the switchport needs to be access­-access or trunk-­trunk.
SW2(co­nfi­g-if)#switchport nonego­tiate
disables DTP. recomm­ended to disable it for security purposes. *note: switchport mode access also disables DTP, since it's a manual config­ura­tion.
SW2#show interfaces g0/1 switchport
displays the following; interface name, admini­str­ative mode (desir­abl­e/a­uto), operat­ional mode (trunk­/ac­cess).

Day 19 - VTP

SW1(co­nfig)#vtp domain domain name
changes domain name from "­NUL­L" to a configured domain name. *note: can't delete vtp domain name. only change to a diffreenet VTP domain name or delete the .dat file on the Switch.
SW1(co­nfig)#vtp mode client | server | transp­arent
selects one of the following VTP modes
SW1(co­nfig)#vtp version version number 1,2,3
selects the version number. *note: for a server switch to share VTP advert­ise­ments and copy it's VLANs and revision number and domain name to other client switches. they both need to be set to the same version number.
SW1#show vtp status
shows VTP version running, domain name, pruning mode, number of existing VLANs, revision number.

Day 23 - EtherC­hannel (PAgP / LACP / Static)

MLSW(c­onfig)#interface po1
#STEP 1 - creates port channel interface
MLSW(c­onf­ig-if)#switchport trunk encaps­ulation dot1q
#STEP 2 - sets the port channel to IEEE 802.1Q VLAN trunking standard
MLSW(c­onf­ig-if)#switchport mode trunk
#STEP 3 - sets the port channel to trunk mode

Day 23 - EtherC­hannel (PAgP / LACP / Static)

SW(con­fig)#interface po1
#STEP 1 - creates port channel interface
SW(con­fig­-if)#switchport trunk encaps­ulation dot1q
#STEP 2 - sets the port channel to IEEE 802.1Q VLAN trunking standard
SW(con­fig­-if)#switchport mode trunk
#STEP 3 - sets the port channel to trunk mode
לערוך עם פאקט טרייסר את הפקודות ^
MLSW(c­onfig)#interface range g0/1-5
STEP #1 - select interfaces
MLSW(c­onfig)#no switchport
STEP #2 - disable L2 switchport and make switchport L3 capable.
MLSW(c­onfig)#channe­l-group 1,2,3 mode active / desirable / on*
STEP #3 - *creates the po1 interface and sets the channel group and EtherC­hannel Protocol.
 
 
 
SW1#show etherc­hannel summary
displays the flags | (SU) (SD) (RU) etc...
SW1#show etherc­hannel load-b­alance
displays the load-b­alance of dst-ip dst-mac-ip etc...
SW1#show etherc­hannel port-c­hannel
לא בטוח שצריך את הפקודה הזו, לבדוק כנגד SUMMARY
SW1#show ip interface brief
checks for po1/2/3 interfaces to make sure they've been created..