\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{Iam Phasm (iamphasm)} \pdfinfo{ /Title (cisco-router-config.pdf) /Creator (Cheatography) /Author (Iam Phasm (iamphasm)) /Subject (Cisco Router Config 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}{080D09} \definecolor{LightBackground}{HTML}{F7F7F7} \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 Router Config Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Iam Phasm (iamphasm)} via \textcolor{DarkBackground}{\uline{cheatography.com/217167/cs/47632/}}} \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}Iam Phasm (iamphasm) \\ \uline{cheatography.com/iamphasm} \\ \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 29th January, 2026.\\ 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*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Cisco Basic Router commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.23579 cm} x{1.69349 cm} x{1.64772 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Initial Setup Commands}} \tn % Row 0 \SetRowColor{LightBackground} \{\{ac\}\}\{\{bb\}\}{\bf{Prompt / Mode:}} & \{\{ac\}\}\{\{bb\}\}{\bf{Command:}} & \{\{ac\}\}\{\{bb\}\}{\bf{Description:}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{ac\}\}R(config)\# & \{\{ac\}\}hostname \textless{}hostname\textgreater{} & \{\{ac\}\}Set hostname for the device. \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \{\{ac\}\}R(config)\# & \{\{ac\}\}no ip domain-lookup & \{\{ac\}\}Disable ip \seqsplit{domain-lookup;} no timeout when incorrect cmd typed. \tn % Row Count 11 (+ 5) % Row 3 \SetRowColor{white} \{\{ac\}\}R(config)\# & \{\{ac\}\}banner motd \$ \textless{}motd msg\textgreater{} \$ & \{\{ac\}\}Set MOTD. Use \$ to end the MOTD when multiple lines typed. \tn % Row Count 16 (+ 5) % Row 4 \SetRowColor{LightBackground} \{\{ac\}\}R(config)\# & \{\{ac\}\}line console 0 & \tn % Row Count 18 (+ 2) % Row 5 \SetRowColor{white} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}logging synchronous & \{\{ac\}\}Prevents logging output from immediately interrupting console session. \tn % Row Count 24 (+ 6) % Row 6 \SetRowColor{LightBackground} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}password \textless{}pwd\textgreater{} & \{\{ac\}\}Sets an unsecure password for the console port. \tn % Row Count 28 (+ 4) % Row 7 \SetRowColor{white} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}login & \{\{ac\}\}Enable required console port login password. \tn % Row Count 32 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.23579 cm} x{1.69349 cm} x{1.64772 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Initial Setup Commands (cont)}} \tn % Row 8 \SetRowColor{LightBackground} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}no login & \{\{ac\}\}Disables login. \tn % Row Count 3 (+ 3) % Row 9 \SetRowColor{white} \{\{ac\}\}R(config)\# & \{\{ac\}\}line vty 0 4 & \{\{ac\}\}Enter telnet/ssh config mode. \tn % Row Count 6 (+ 3) % Row 10 \SetRowColor{LightBackground} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}password \textless{}pwd\textgreater{} & \{\{ac\}\}Sets a password for telnet/ssh. \tn % Row Count 9 (+ 3) % Row 11 \SetRowColor{white} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}login & \{\{ac\}\}Enable required console port login password. \tn % Row Count 13 (+ 4) % Row 12 \SetRowColor{LightBackground} \{\{ac\}\}R(config)\# & \{\{ac\}\}interface vlan1 & \{\{ac\}\}Enter VLAN1 interface config mode. \tn % Row Count 16 (+ 3) % Row 13 \SetRowColor{white} \{\{ac\}\}R(config-if)\# & \{\{ac\}\}ip address \textless{}ip ad\textgreater{} \textless{}subnet mask\textgreater{} & \{\{ac\}\}Configure VLAN ip address and subnet. (used for telnet) \tn % Row Count 21 (+ 5) % Row 14 \SetRowColor{LightBackground} \{\{ac\}\}R(config-if)\# & \{\{ac\}\}no shutdown & \{\{ac\}\}Manually enable the interface. \tn % Row Count 24 (+ 3) % Row 15 \SetRowColor{white} \{\{ac\}\}R(config)\# & \{\{ac\}\}enable secret \textless{}pwd\textgreater{} & \{\{ac\}\}Enable a secure password for privileged mode. \tn % Row Count 28 (+ 4) % Row 16 \SetRowColor{LightBackground} \{\{ac\}\}R(config)\# & \{\{ac\}\}service \seqsplit{password-encryption} & \{\{ac\}\}Manually encrypt passwords. \tn % Row Count 31 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.23579 cm} x{1.69349 cm} x{1.64772 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Initial Setup Commands (cont)}} \tn % Row 17 \SetRowColor{LightBackground} \{\{ac\}\}R\# & \{\{ac\}\}copy \seqsplit{running-config} \seqsplit{startup-config} & \{\{ac\}\}Copies running config to startup config. Saves all changes. \tn % Row Count 5 (+ 5) % Row 18 \SetRowColor{white} \{\{ac\}\}Router\textgreater{} & \{\{ac\}\}enable (or ena) & \{\{ac\}\}To enter privileged EXEC mode (enable mode) \tn % Row Count 9 (+ 4) % Row 19 \SetRowColor{LightBackground} \{\{ac\}\}Router\# & \{\{ac\}\}configure terminal & \{\{ac\}\}enter global configuration mode from privileged EXEC mode (Router\#). \tn % Row Count 15 (+ 6) % Row 20 \SetRowColor{white} \{\{ac\}\}R(config)\# & \{\{ac\}\}hostname \textless{}hostname\textgreater{} & \{\{ac\}\}change the hostname on a Cisco router \tn % Row Count 19 (+ 4) % Row 21 \SetRowColor{LightBackground} \{\{ac\}\}R(config)\# & \{\{ac\}\}enable secret\textless{}password\textgreater{} & \{\{ac\}\}secures privileged EXEC mode by setting an MD5, SHA256, or higher hashed password. \tn % Row Count 26 (+ 7) % Row 22 \SetRowColor{white} \{\{ac\}\}R(config)\# & \{\{ac\}\}line console 0 & \{\{ac\}\}enters configuration mode for the physical console port (tty line 0) \tn % Row Count 32 (+ 6) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.23579 cm} x{1.69349 cm} x{1.64772 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Initial Setup Commands (cont)}} \tn % Row 23 \SetRowColor{LightBackground} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}password \textless{}password\textgreater{} & \{\{ac\}\}secures direct console access, requiring a password to enter user exec mode. \tn % Row Count 6 (+ 6) % Row 24 \SetRowColor{white} \{\{ac\}\}R(config-line)\# & \{\{ac\}\}login & \{\{ac\}\}Activates password \seqsplit{authentication} \tn % Row Count 9 (+ 3) % Row 25 \SetRowColor{LightBackground} \{\{ac\}\}R(config)\# & \{\{ac\}\}service \seqsplit{password-encryption} & \{\{ac\}\}Encrypts all plain-text passwords in the configuration file. \tn % Row Count 14 (+ 5) % Row 26 \SetRowColor{white} \{\{ac\}\}R\# & \{\{ac\}\}write memory & \{\{ac\}\}Saves the configuration to NVRAM, ensuring it persists after a reboot. \tn % Row Count 20 (+ 6) % Row 27 \SetRowColor{LightBackground} \{\{ac\}\}R\# & \{\{ac\}\}show \seqsplit{running-config} & \{\{ac\}\}This command shows current interface, routing, and system settings. \tn % Row Count 26 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}