0% found this document useful (0 votes)
51 views2 pages

Cisco Command#1 BY Kanisthaw Cheat Sheet

This cheat sheet summarizes Cisco commands for configuring routers and switches. It describes router modes including user, privileged, global configuration, subinterface, and line modes. It also provides instructions for configuring switch settings like the hostname, passwords, default gateway, securing terminal lines, banners, interfaces, and verifying the configuration. The cheat sheet is a concise guide to common Cisco commands.

Uploaded by

Regis Beibei
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views2 pages

Cisco Command#1 BY Kanisthaw Cheat Sheet

This cheat sheet summarizes Cisco commands for configuring routers and switches. It describes router modes including user, privileged, global configuration, subinterface, and line modes. It also provides instructions for configuring switch settings like the hostname, passwords, default gateway, securing terminal lines, banners, interfaces, and verifying the configuration. The cheat sheet is a concise guide to common Cisco commands.

Uploaded by

Regis Beibei
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Cisco Command#1 BY kanisthaw Cheat Sheet

by kanisthaw via cheatography.com/28442/cs/8364/

Router Modes Descri​ption, speed and duplex (cont) Config​uring switch to use SSH

Rout​er>: User mode = Limited to basic SW1(co​nfig)# interface range fastEt​hernet 0/5  Configure DNS domain name :
monitoring commands – 10 SW1(co​nfig)# ip domain​-name exampl​e.com
SW1(co​nfi​g-i​f-r​ange)# duplex full (options: half,  Configure a username and password :
Rout​er#: Privileged mode (exec-​level mode) =
full, auto) SW1(co​nfig)# user​name admin pass​word
Provides access to all other router commands
cisco
Rout​er(​con​fig​)#: global config​uration mode =
Setting the default gateway  Generate encryption keys :
Commands that affect the entire system
! The size of the key modulus in the range of
SW1(co​nfig)# ip defaul​t-g​ate​way 172.16.1.1
Rout​er(​con​fig​-su​bif​)#: subint​erface mode = 360 to 2048
Commands that affect subint​erfaces SW1(co​nfig)# crypto key generate rsa
Securing console port
Rout​er(​con​fig​-li​ne)#: line mode = Commands How many bits in the modulus [512]: 1024
that affect in lines modes (console, vty, aux…) SW1(co​nfig)# line con 0  Define SSH version to use :
SW1(co​nfi​g-l​ine)# pass​word cisco SW1(co​nfi​g)# ip ssh version 2
Rout​er(​con​fig​-ro​ute​r)#: router config​uration
SW1(co​nfi​g-l​ine)# login  Enable vty lines to use SSH :
mode
SW1(co​nfig)# line vty 0 4
Aliases SW1(co​nfi​g-l​ine)# login local
Changing switch hostname
! You can set vty lines to use only telnet or only
Switch​(co​nfig)# host​name SW1 ! Used to create shortcuts for long commands. ssh or both as in the example.
SW1(co​nfig)# alias exec c configure terminal SW1(co​nfi​g-l​ine)# transport input telnet ssh

Config​uring passwords
Securing terminal lines Verify Basic Config​uration
SW1(co​nfig)# enable secret nutty !MD5 hash
SW1(co​nfig)# enable password 1234 SW1(co​nfig)# line vty 0 4  Shows inform​ation about the switch and its
SW1(co​nfi​g-l​ine)# pass​word cisco interf​aces, RAM, NVRAM, flash, IOS, etc

SW1(co​nfi​g-l​ine)# login SW1# show version


Encrypting passwords
 Shows the current config​uration file stored in
SW1(co​nfig)# service passwo​rd-​enc​ryp​tion DRAM.
Config​uring banners
SW1# show runnin​g-c​onfig
Working enviro​nment SW1(co​nfig)# banner motd $  Shows the config​uration file stored in
NVRAM which is used at first boot process.
SW1(co​nfig)# no ip domain​-lookup
Giving the switch an IP address SW1# show startu​p-c​onfig
SW1(co​nfig)# line vty 0 4
 Lists the commands currently held in the
SW1(co​nfi​g-l​ine)# history size 15 SW1(co​nfig)# inte​rface vlan 1
history buffer.
SW1(co​nfi​g-l​ine)# exec-t​imeout 10 30 SW1(co​nfi​g-if)# ip address 172.16.1.11
SW1(co​nfi​g-l​ine)# logging synchr​onous 255.25​5.255.0 ! or DHCP
SW1(co​nfi​g-if)# no shutdown
Saving config​uration

SW1# copy runnin​g-c​onfig nutty


! Destin​ation filename [nutty]
SW1# wr

Descri​ption, speed and duplex

SW1(co​nfig)# interface fastEt​hernet 0/1


SW1(co​nfi​g-if)# descri​ption LINK TO
INTERNET ROUTER
SW1(co​nfi​g-if)# speed 100 ! Options: 10, 100,
auto
! The range keyword used to set a group of
interfaces at once.

By kanisthaw Published 7th June, 2016. Sponsored by CrosswordCheats.com


cheatography.com/kanisthaw/ Last updated 7th June, 2016. Learn to solve cryptic crosswords!
Page 1 of 2. http://crosswordcheats.com
Cisco Command#1 BY kanisthaw Cheat Sheet
by kanisthaw via cheatography.com/28442/cs/8364/

Verify Basic Config​uration (cont)

SW1# show history


 Shows an overview of all interf​aces, their physical status, protocol
status and ip address if assigned.
SW1# show ip interface brief
 Shows detailed inform​ation about the specified interface, its status,
protocol, duplex, speed, encaps​ula​tion, last 5 min traffic.
SW1# show interface vlan 1
 Shows the descri​ption of all interfaces
SW1# show interfaces descri​ption
 Shows the status of all interfaces like connected or not, speed,
duplex, trunk or access vlan.
SW1# show interfaces status
 Shows the public encryption key used for SSH.
SW1# show crypto key mypubkey rsa
 Shows inform​ation about the leased IP address (when an interface is
configured to get IP address via a dhcp server)
SW1# show dhcp lease

By kanisthaw Published 7th June, 2016. Sponsored by CrosswordCheats.com


cheatography.com/kanisthaw/ Last updated 7th June, 2016. Learn to solve cryptic crosswords!
Page 2 of 2. http://crosswordcheats.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy