\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Mary F. Smith (boogie)} \pdfinfo{ /Title (cisco-cli-comprehensive-commands.pdf) /Creator (Cheatography) /Author (Mary F. Smith (boogie)) /Subject (Cisco CLI Comprehensive Commands Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{1C59FF} \definecolor{LightBackground}{HTML}{F0F4FF} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Cisco CLI Comprehensive Commands Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Mary F. Smith (boogie)} via \textcolor{DarkBackground}{\uline{cheatography.com/86236/cs/21148/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Mary F. Smith (boogie) \\ \uline{cheatography.com/boogie} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 22nd December, 2019.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{2.32 cm} x{5.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{User Levels | Routers \& Switches}} \tn % Row 0 \SetRowColor{LightBackground} User Exec & Router Name\textgreater{} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Privileged Exec & Router Name\# `{[}where network devices are configured{]}` \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Global Exec & Router Name(config)\# `{[}configuration impact the entire device{]}` \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} Interface Config & Router Name(config-if)\# `{[}impacts a particular interface{]}` \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} Line Config & Router Name(config-line) \tn % Row Count 10 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Basic Config | Routers \& Switches}} \tn % Row 0 \SetRowColor{LightBackground} router\textgreater{} {\bf{ {\emph{enable}} }} | {\bf{ {\emph{disable}} }} & logs the user into/out of privileged exec \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} router\# {\bf{ {\emph{configure terminal}} }} & logs user into global config \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} router(config)\#\textgreater{} {\bf{ {\emph{hostname}} }} & re/name current device \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} \{\{ac\}\}{\bf{ {\emph{no hostname}} }} & removes name \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} router(config)\# {\bf{ {\emph{exit}} }} & backs out one level to a previous levvel \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} router\textgreater{} {\bf{ {\emph{reload}} }} & reboots the device \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} router(config)\# {\bf{ {\emph{end}} }} & `Drops back to user exec mode` \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Basic Commands | Routers \& Switches}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Router(config)\# {\bf{ {\emph{ interface f0/0}} }} \textasciicircum{}int f0/0\textasciicircum{}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`Enter interface config`} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{`{\bf{or}}`} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Router(config)\# {\bf{ {\emph{ line console 0}} }}} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{`{\bf{or}}`} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Router(config)\# {\bf{ {\emph{interface gigabitethernet 0/0}} }} \textasciicircum{}int g0/0\textasciicircum{}} \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Router(config-line)\#{\bf{ {\emph{exit}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`back up one step from any level`} \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Router(config-line)\#{\bf{ {\emph{end}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`straight to user exec mode`} \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{New Column Break}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Page Break}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Basic Security}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{Securing privileged EXEC}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config)\# {\bf{ {\emph{enable secret Cisc0}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`pw protects the privileged exec line`} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{Securing console port}}} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config)\# {\bf{ {\emph{line console 0}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`moves into line configuration mode`} \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{S1(config-line)\# {\bf{ {\emph{passsword Cisc0}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`sets console access password to "Cisc0"`} \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config-line)\# {\bf{ {\emph{login}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`turns on the password requirement`} \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{Securing the Virtual Ports `{[}ssh \& telnet{]}}}`} \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config)\# {\bf{ {\emph{line vty 0 15}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`moves into line configuration mode`} \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{S1(config-line)\# {\bf{ {\emph{Password Cisc0}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`sets virtual terminal access password to "Cisc0"`} \tn % Row Count 17 (+ 3) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config-line)@ {\bf{ {\emph{login}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`turns on the password requirement``turns on the password requirement`} \tn % Row Count 20 (+ 3) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{ {\emph{Encrypting all Passwords}} }}} \tn % Row Count 21 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config)\# {\bf{ {\emph{service password-encryption}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`encrypts all passwords`} \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{Message of the Day}}} \tn % Row Count 24 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{S1(config)\# {\bf{ {\emph{banner motd \# }} }}Authorized Access Only{\emph{ }}*\#} \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{S1\# {\bf{ {\emph{copy run start}} }}} \tn % Row Count 27 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} x{7.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{adding Pipe Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{ {\emph{R1\# do show run |}} }}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} & {\bf{ {\emph{include interface}} }} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} & {\bf{ {\emph{ exclude interface}} }} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} & {\bf{ {\emph{begin hostname}} }} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{{\bf{`NOTES`}}}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{`{\bf{{\emph{Commands are only case sensitive after the pipe}}}}`} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Startup-Config} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`regardless of current config; router will start up with this`} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`until the current config is saved`} \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Vocabulary}} \tn % Row 0 \SetRowColor{LightBackground} rommon & read only memory \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Hints}} \tn % Row 0 \SetRowColor{LightBackground} R1\textgreater{}\# {\bf{ {\emph{no ip domain-lookup}} }} & `{[}turns off auto dns query{]}` \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} R1(config-if)\# {\bf{ {\emph{no ip address}} }} & `{[}Removes IP Address{]}` \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{ {\emph{ctl+a }} }} & `{[}cursor moved to the beginning of the line{]}` \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} {\bf{ {\emph{ctl+e}} }} & `{[}cursor moved to the end of the line{]}` \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{ {\emph{copy run start}} }} & `{[}copys running config to startup config{]}` \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} {\bf{ {\emph{show run start}} }} & `{[}displays startup config{]}` \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} {\emph{* }}ctl+shift+6 & STOP SEARCH \tn % Row Count 14 (+ 1) % Row 7 \SetRowColor{white} ip host switch1 1.1.1.1 & Assigns the listed ip address {[}1.1.1.1{]} to Switch1 \tn % Row Count 17 (+ 3) % Row 8 \SetRowColor{LightBackground} ? & Open help documentation \tn % Row Count 19 (+ 2) % Row 9 \SetRowColor{white} {\bf{ {\emph{enable secret abc123}} }} & Enables secret password and sets to abc123 \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{vty - virtual telnet line} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.2 cm} x{4.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Remote Access}} \tn % Row 0 \SetRowColor{LightBackground} R2\# {\bf{ {\emph{telnet 10.1.1.1}} }} & `with PW \& access allowed; you will enter the remote router{\emph{ }}* \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{CONFIGURE SERIAL PORT}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{R1(config)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{ interface serial 0/0/0}} }}\textasciicircum{}int f0/0\textasciicircum{} `{[}moves into config for s0/0/0{]}`} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{R1(config-if)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{ip address 192.168.1.254 255.255.255.0}} }} `{[}sets ip \& subnet{]}`} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{R1(config-if)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{no shut}} }} `{[}powers on interface{]}`} \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{shut}} }} `{[}powers off interface{]}`} \tn % Row Count 9 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{R1(config-if)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{copy run start}} }}} \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{CONFIGURE FAST ETHERNET PORT}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{R1(config)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{ interface f0/0}} }}\textasciicircum{}int f0/0\textasciicircum{}`{[}moves into config for f0/0{]}`} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{R1(config-if)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{ip address 192.168.1.254 255.255.255.0}} }} `{[}sets ip \& subnet{]}`} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{R1(config-if)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{no shut}} }} `{[}powers on interface{]}`} \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{shut}} }} `{[}powers off interface{]}`} \tn % Row Count 9 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{R1(config-if)\#} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}{\bf{ {\emph{copy run start}} }}} \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Configure VLAN}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{Create and Name VLANs}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Switch(config)\#{\bf{ {\emph{vlan 10}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`moves to vlan 10 config`} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Switch(config-vlan)\#{\bf{ {\emph{name Support}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`names vlan 10, "support"`} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Switch(config)\#{\bf{ {\emph{vlan 20}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`moves into vlan 20 from vlan 10`} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Switch(config)\#{\bf{ {\emph{name Development}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`names vlan 20, "development"`} \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{ar\}\} {\bf{Assign switchport access}}} \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Switch(config)\#{\bf{ {\emph{int f0/1}} }}} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`enters config for f0/1`} \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Switch(config-if)\#{\bf{ {\emph{switchport access vlan 10}} }}`{\emph{ }}*} \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Switch(config)\#{\bf{ {\emph{int f0/2}} }}} \tn % Row Count 15 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Switch(config-if)\#{\bf{ {\emph{switchport access vlan 20}} }}`{\emph{ }}*} \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.12 cm} x{4.88 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Routing Configuration}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Gateway of Last Resort}} & \textasciicircum{}{[}restricted to edge {[}stub{]} routers only{]}\textasciicircum{} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{R1(config)\# {\bf{ {\emph{ip route 0.0.0.0 0.0.0.0 s0/0/0}} }}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{} \tn % Row Count 4 (+ 0) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{{\bf{Static Route}} `administrative distance = 150`} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{R1(config)\# {\bf{ {\emph{ip route 192.168.2.0 255.255.255.0 s0/0/0 150}} }}} \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{`{\bf{routers only "know" what they are connected too}}` \newline `s* - default static route` \newline `c - direct connect`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.64 cm} x{5.36 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{"Advanced" Show Commands}} \tn % Row 0 \SetRowColor{LightBackground} show access-list & Displays the access-lists located on the device; including every line of the access-list {[}not which interface the list is list is applied to \tn % Row Count 6 (+ 6) % Row 1 \SetRowColor{white} show vlan & Displays info and status of VLANs {[}on the device{]} i.e. VLAN names, numbers, and the interfaces on which each VLAN can be found \tn % Row Count 11 (+ 5) % Row 2 \SetRowColor{LightBackground} show ip protocols & Displays info about Layer 3 protocols; RIP, OSPF and EIGRP {[}high level overview each protocol has its own show command{]} \tn % Row Count 16 (+ 5) % Row 3 \SetRowColor{white} show interface trunk & Displays all trunk ports on the device; which VLANs are allowed on which trunk, what the native VLAN is. \tn % Row Count 20 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Verification Commands}} \tn % Row 0 \SetRowColor{LightBackground} R1\# {\bf{ {\emph{show ip route}} }} & displays routing table \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{R1\# {\bf{ {\emph{show ip interface}} }}} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} R1\# {\bf{ {\emph{show ip interface brief}} }} & displays the interface configurations \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{R1\# {\bf{ {\emph{show running-config}} }}} \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} & R1\#{\bf{ {\emph{show interface s0/0/0}} }} \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} & R1\#{\bf{ {\emph{show interface f0/0}} }} \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} & R1\#{\bf{ {\emph{show interface g0/0}} }} \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} R1\#{\bf{ {\emph{show version}} }} & displays IOS info and previous method of restart \tn % Row Count 15 (+ 3) % Row 8 \SetRowColor{LightBackground} R1\#{\bf{ {\emph{show mac address-table}} }} & dispalys contents of MAC Address Table \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} R1\# {\bf{ *int g0/0 }} & displays the listed interface info \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{R1\# {\bf{ {\emph{show clock}} }}} \tn % Row Count 20 (+ 1) % Row 11 \SetRowColor{white} R1\# {\bf{ {\emph{clock set}} }} & `09:10:01 11 December 2019` \tn % Row Count 22 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{** 'Do' - in front of a command will run the command at any level i.e. my device \newline (config)\# do show ip interface brief -OR- my device (config)\# do reload \newline Add a Ne} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Managing IOS Files}} \tn % Row 0 \SetRowColor{LightBackground} R1\# {\bf{ {\emph{copy run flash:my config}} }} & `copies running config\textbackslash{}saves to flash; names it my config` \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} R1\# {\bf{ {\emph{erase start}} }} & `erases startup config` \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} R1\# {\bf{ {\emph{copy flash:my config start}} }} & `copies my config and overwrites start up config` \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{R1\# {\bf{ {\emph{copy run tftp}} }}} \tn % Row Count 9 (+ 1) % Row 4 \SetRowColor{LightBackground} \{\{ar\}\} requests a remote host & `add ip address of remote router` \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} \{\{ar\}\} requests a file name & `add unique file name w/ data` \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} R1\# {\bf{ {\emph{more flash:my config}} }} & `allows you to view the config file \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{ {\emph{Storage for Operating System}} }} \newline `IOS - Flash` \newline `startup Config - NVRAM` \newline ` Running config - RAM`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Error Messages}} \tn % Row 0 \SetRowColor{LightBackground} \% Invalid input detected at '\textasciicircum{}' marker & You are at the wrong level to run command \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{\% Incomplete command} \tn % Row Count 4 (+ 1) % Row 2 \SetRowColor{LightBackground} {[}command brings a null response{]} & This is not a bad command, there is just no results to display \tn % Row Count 8 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Your CLI command fails - are you in the right mode | level \newline - are you on the right device} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.64 cm} x{5.36 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Shortcuts}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ {\emph{ctl+shift+6}} }} & stop current activity \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{ {\emph{ctl+k}} }} & erases from cursor to end of line \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{ {\emph{ctl+x}} }} & erases from cursor to beginning of line \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{ {\emph{tab}} }} & completes the command \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.84 cm} x{4.16 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Misc}} \tn % Row 0 \SetRowColor{LightBackground} mydevice (config)\# sdm pre dual def & used if switch won't take IPv6 address \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Execute Commands}} \tn % Row 0 \SetRowColor{LightBackground} Build a server w/IP & {\bf{ {\emph{ip host Server1 1.1.1.1}} }} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Rename the router "My Router" & {\bf{ {\emph{hostname MyRouter}} }} \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}