\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{carter.fendley} \pdfinfo{ /Title (packet-tracer.pdf) /Creator (Cheatography) /Author (carter.fendley) /Subject (Packet Tracer 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}{2E39A3} \definecolor{LightBackground}{HTML}{F1F2F9} \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{Packet Tracer Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{carter.fendley} via \textcolor{DarkBackground}{\uline{cheatography.com/25327/cs/9802/}}} \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}carter.fendley \\ \uline{cheatography.com/carter-fendley} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 12th November, 2016.\\ Updated 9th December, 2016.\\ 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} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Notes}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{How to use this cheat sheet}} \newline % Row Count 1 (+ 1) In order to use the commands you {\emph{MUST}} be in the mode that that command is listed under. The sections are listed in order progression. "User EXEC Mode" is the default mode and thus has no command to enter it. \newline % Row Count 6 (+ 5) {\emph{Example}}: In order to use the `hostname` command I must be in "Global Config Mode" so I look one section before to look up the command to enter "Global Config Mode". I then see that in order to use the `configure terminal` command I must be in "Privileged EXEC Mode" and to enter "Privileged EXEC Mode" I must use the command `enable` in "User EXEC Mode". This would give this string of commands: `enable` \textgreater{} `configure terminal` \textgreater{} `hostname \textless{}hostname\textgreater{}` \newline % Row Count 16 (+ 10) {\bf{When in doubt google}} \newline % Row Count 17 (+ 1) If you are asked to do something that is not on this cheat sheet google it. For example if you are asked to deny all incoming information from a IP google "How to deny incoming IP cisco packet tracer" \newline % Row Count 22 (+ 5) {\bf{Command conventions}} \newline % Row Count 23 (+ 1) When you see a command like `ip address \textless{}ip\textgreater{} \textless{}subnet\textgreater{}`, the `\textless{}ip\textgreater{}` and `\textless{}subnet\textgreater{}` part mean that in order to use this command you need to substitute information into those places. \newline % Row Count 27 (+ 4) {\emph{Example}}: If I wanted to set the IP to `192.168.1.1` with a subnet mask of `255.255.255.0` I would fully replace both the `\textless{}ip\textgreater{}` and `\textless{}subnet\textgreater{}` sections with that information. I would end up with a command that looks like: `ip address 192.168.1.1 255.255.255.0`% Row Count 33 (+ 6) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Desktops}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Overview}} \newline % Row Count 1 (+ 1) Desktops do not have a router or switch like CLI. In order to configure settings on desktops you must click on them and then navigate to the "Desktop" tab. Here you can use the different apps to preform different operations. See below for specific operations help. \newline % Row Count 7 (+ 6) {\bf{Setting an IP}} \newline % Row Count 8 (+ 1) Click on the "Configure IP" desktop app. Here you can input IPv4 and IPv6 addresses as well as other networking information. When you are done you can simply exit out and it will be saved. \newline % Row Count 12 (+ 4) {\bf{Navigating to a web page}} \newline % Row Count 13 (+ 1) Use the "Web Browser" app as you would a normal web brouser \newline % Row Count 15 (+ 2) {\bf{Pinging IPs}} \newline % Row Count 16 (+ 1) Use the "Command Prompt" app and use the command `ping \textless{}ip\textgreater{}` in order to see if a host is up.% Row Count 18 (+ 2) } \tn \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}{How to tell what mode you are in}} \tn % Row 0 \SetRowColor{LightBackground} User EXEC Mode & `Router\textgreater{}` \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Privileged EXEC Mode & `Router\#` \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Global Config Mode & `Router (config)\#` \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} Iterface Config Mode & `Router (config-if)\#` \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} Line Config Mode & `Router (config-line)\#` \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{6.24 cm} p{1.76 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Universal Commands}} \tn % Row 0 \SetRowColor{LightBackground} Exit the current mode & `exit` \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{6.08 cm} x{1.92 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{User EXEC Mode Commands}} \tn % Row 0 \SetRowColor{LightBackground} Enter Privileged EXEC Mode & `enable` \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.6 cm} x{4.4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Privileged EXEC Mode}} \tn % Row 0 \SetRowColor{LightBackground} Enter Global Config Mode & `configure terminal` \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Save current config & `copy running-config startup-config` \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Save current config & `write memory` \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Show running config & `show running-config` \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} List all interfaces & `show ip interface brief` \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} List all interface information & `show interface` \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} List all `show` parameters & `show ?` \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} List all `debug` parameters & `debug ?` \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.52 cm} x{4.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Global Config Mode}} \tn % Row 0 \SetRowColor{LightBackground} Enter Interface Config Mode & `interface \textless{}interface\textgreater{} \textless{}port\textgreater{}` \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Enable IPv6 & `ipv6 unicast-routing` \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} Set Defualt Gateway & `ip default-gateway \textless{}gateway\textgreater{}` \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} Set Hostname & `hostname \textless{}hostname\textgreater{}` \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} Enter Line Config Mode & `line \textless{}line\textgreater{} \textless{}startport\textgreater{} \textless{}endport\textgreater{}` (lines: console, vty) \tn % Row Count 9 (+ 3) % Row 5 \SetRowColor{white} Enable Secret Password & `enable secret \textless{}password\textgreater{}` \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} MOTD & `banner motd \#\textless{}motd\textgreater{}\#` \tn % Row Count 12 (+ 1) % Row 7 \SetRowColor{white} Enable Password Encryption & `service password-encryption` \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} Add new user & `username \textless{}username\textgreater{} secret \textless{}password\textgreater{}` \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} Enable AAA & `aaa new-model` \tn % Row Count 17 (+ 1) % Row 10 \SetRowColor{LightBackground} Populate defualt AAA method list & `aaa authentication login defualt \textless{}method\textgreater{} \textless{}method1\textgreater{} \textless{}methodN\textgreater{}` (see methods below) \tn % Row Count 21 (+ 4) % Row 11 \SetRowColor{white} Populate new AAA method list & `aaa authentication login \textless{}list-name\textgreater{} \textless{}method\textgreater{} \textless{}method1\textgreater{} \textless{}methodN\textgreater{}` (see methods below) \tn % Row Count 25 (+ 4) % Row 12 \SetRowColor{LightBackground} Set max fails AAA & `aaa local authentication maxfail \textless{}maxfail\textgreater{}` \tn % Row Count 27 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{AAA Auth Methods}} \newline `enable` - uses enable password \newline `krb5` - uses Kerberos 5 \newline `krb5-telnet` - uses Kerberos 5 Telnet protocol \newline `line` - uses line password \newline `local` - uses local username database \newline `local-case` - uses local username database (case-sensitive) \newline `none` - no authentication (don't do this) \newline `cache \textless{}group name\textgreater{}` - uses cache server group \newline `group radius` - uses list of all RADIUS servers \newline `group tacacs+` - uses list of all TACACS+ servers} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.96 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Interface Config Mode}} \tn % Row 0 \SetRowColor{LightBackground} Set Static IPv4 & `ip address \textless{}ip\textgreater{} \textless{}subnet\textgreater{}` \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Set Static IPv6 & `ipv6 address \textless{}ipv6\textgreater{}` \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Set IPv6 Link Local & `ipv6 address \textless{}ipv6\textgreater{} link-local` \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Set duplex to auto & `duplex auto` \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{NOTE:}} When exiting Interface Config Mode you must issue the command `no shutdown` before `exit` if you wish for the interface to remain up.} \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}{Line Config Mode}} \tn % Row 0 \SetRowColor{LightBackground} Set password (user EXEC) & `password \textless{}password\textgreater{}` \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Enable password checking at login & `login` \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Enable defualt AAA list & `login authentication default` \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Enable AAA list & `login authentication \textless{}list name\textgreater{}` \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}