1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-11-29 19:37:53 +00:00
NetworkLabNotes/main.tex

203 lines
5.3 KiB
TeX
Raw Normal View History

2017-05-22 10:12:53 +00:00
% Declare Document Class
2017-05-22 13:08:28 +00:00
\documentclass[a4paper,12pt,twoside]{book}
2017-05-22 10:12:53 +00:00
% Latex Packages
\usepackage[T1]{fontenc}
2017-05-22 09:53:21 +00:00
\usepackage[utf8]{inputenc}
2017-05-22 10:12:53 +00:00
\usepackage{lmodern}
\usepackage{geometry}
2017-05-22 10:52:13 +00:00
\usepackage{listings}
\usepackage{color}
2017-05-22 10:12:53 +00:00
\usepackage{graphicx}
\usepackage{float}
2017-05-22 13:08:28 +00:00
\usepackage[english]{babel}
\usepackage{fancyhdr}
2017-05-22 14:02:02 +00:00
\usepackage{wrapfig}
2017-05-22 10:12:53 +00:00
2017-05-22 10:52:13 +00:00
% Define color
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=4
}
\lstset{style=mystyle}
2017-05-22 10:12:53 +00:00
% Path where images are located relative
% to the file main.tex
2017-05-22 14:02:02 +00:00
\graphicspath{{img/}{figures/}}
2017-05-22 10:12:53 +00:00
2017-05-22 10:22:33 +00:00
% Custom commands
2017-05-22 14:02:02 +00:00
% Usage: \pic[<pct-of-testwidt>]{<path-to-file>}
2017-05-22 13:08:28 +00:00
\newcommand{\pic}[2][25]{
2017-05-22 14:02:02 +00:00
\begin{center}
\transparent{0.4}
\includegraphics[width=0.#1\textwidth]{#2}
\end{center}
}
% Usage: \rfig{<path-to-file>}{<label>}
\newcommand{\rfig}[2]{
\begin{wrapfigure}{r}{0.60\textwidth}
2017-05-22 10:22:33 +00:00
\begin{center}
2017-05-22 14:02:02 +00:00
\includegraphics[width=0.58\textwidth]{#1}
2017-05-22 10:22:33 +00:00
\end{center}
2017-05-22 14:02:02 +00:00
\caption{#2}
\end{wrapfigure}
2017-05-22 13:08:28 +00:00
}
2017-05-22 10:12:53 +00:00
% In which order to look after images in
% declared graphicspath{}'s
% 1. Low-quality JPG
% 2. Med-quality PNG
% 3. High-quality PDF
\DeclareGraphicsExtensions{.jpg,.png,.pdf}
% Package Params
2017-05-22 13:08:28 +00:00
\geometry{a4paper,margin=1in}
% Define fancy header and footer
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{ZBC}
\fancyhead[RE,LO]{\rightmark}
\fancyfoot[CE,CO]{\leftmark}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{1pt}
2017-05-22 10:52:52 +00:00
2017-05-22 13:14:02 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% BEGIN DOCUMENT %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2017-05-22 10:12:53 +00:00
2017-05-22 09:53:21 +00:00
\begin{document}
2017-05-22 10:12:53 +00:00
% Which info to insert on the title page
2017-05-22 13:08:28 +00:00
\title{r17dinh409}
2017-05-22 10:12:53 +00:00
\author{Christoffer Hansen <zbcchhan11 at zbc.dk>}
\date{May 22 - June 30, 2017}
% Make title page contents
\maketitle
\tableofcontents
2017-05-22 13:08:28 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% BEGIN CHAPTER: Base Configuration %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2017-05-22 10:12:53 +00:00
2017-05-22 13:08:28 +00:00
\chapter{Base Configuration}
\section{Cisco Lab}
2017-05-22 10:12:53 +00:00
2017-05-22 10:19:53 +00:00
% <!-- ROUTER -->
2017-05-22 10:12:53 +00:00
\subsection{Router}
2017-05-22 10:19:53 +00:00
\subsubsection{File: base.cfg}
2017-05-22 10:52:13 +00:00
%\lstinputlisting[language=tcl]{code/router/base.cfg}
2017-05-22 10:19:53 +00:00
\subsubsection{File: reset.tcl}
2017-05-22 10:52:13 +00:00
%\lstinputlisting[language=tcl]{code/router/reset.tcl}
2017-05-22 10:44:49 +00:00
2017-05-22 13:08:28 +00:00
\newpage
2017-05-22 10:44:49 +00:00
% <!-- LAYER 3 SWITCH -->
2017-05-22 10:12:53 +00:00
2017-05-22 10:44:49 +00:00
\subsection{Layer 3 Switch}
2017-05-22 13:08:28 +00:00
\subsubsection{FILE: base.cfg}
2017-05-22 10:52:13 +00:00
\lstinputlisting[language=tcl]{code/l3switch/base.cfg}
2017-05-22 13:08:28 +00:00
\subsubsection{FILE: reset.tcl}
2017-05-22 10:52:13 +00:00
\lstinputlisting[language=tcl]{code/l3switch/reset-tcl.txt}
2017-05-22 13:08:28 +00:00
\subsubsection{FILE: resetvlans.tcl}
\lstinputlisting[language=tcl]{code/l3switch/resetvlans-tcl.txt}
\newpage
2017-05-22 10:12:53 +00:00
2017-05-22 10:44:49 +00:00
% <!-- LAYER 2 SWITCH -->
2017-05-22 10:12:53 +00:00
2017-05-22 10:44:49 +00:00
\subsection{Layer 2 Switch}
2017-05-22 13:08:28 +00:00
\subsubsection{FILE: base.cfg}
2017-05-22 10:52:13 +00:00
\lstinputlisting[language=tcl]{code/l2switch/base.cfg}
2017-05-22 13:08:28 +00:00
\subsubsection{FILE: reset.tcl}
2017-05-22 10:52:13 +00:00
\lstinputlisting[language=tcl]{code/l2switch/reset-tcl.txt}
2017-05-22 13:08:28 +00:00
\subsubsection{FILE: resetvlans.tcl}
\lstinputlisting[language=tcl]{code/l2switch/resetvlans-tcl.txt}
2017-05-22 10:12:53 +00:00
2017-05-22 13:08:28 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% BEGIN CHAPTER: Protocols %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Protocols}
\section{Routing}
\subsection{OSPF}
\subsection{IS-IS}
\subsection{EIGRP}
\subsection{RIP}
\subsection{Static}
\subsection{BGP}
2017-05-22 13:14:02 +00:00
\section{VLAN}
2017-05-22 14:02:02 +00:00
\subsection{VTP}
\rfig{vtp/implementing-vtp}{VTP}\cite{vtpchap4}
2017-05-22 13:14:02 +00:00
\section{Spanning Tree}
2017-05-22 13:08:28 +00:00
2017-05-22 13:14:02 +00:00
\subsection{STP}
\subsection{PVST}
\subsection{RPVST+}
\subsection{MTP}
2017-05-22 13:08:28 +00:00
2017-05-22 10:12:53 +00:00
2017-05-22 13:08:28 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% BEGIN CHAPTER: Internet %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2017-05-22 10:12:53 +00:00
2017-05-22 13:08:28 +00:00
\chapter{Internet}
2017-05-22 10:12:53 +00:00
2017-05-22 13:08:28 +00:00
\section{BGP}
2017-05-22 10:12:53 +00:00
2017-05-22 14:02:02 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% BEGIN REFERENCES %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{unsrt}
\bibliography{unsrt}
2017-05-22 13:14:02 +00:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% END DOCUMENT %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2017-05-22 09:53:21 +00:00
\end{document}