mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-11-26 19:27:57 +00:00
New chapters protocols and internet
This commit is contained in:
parent
e87daeb572
commit
e1e3de96b8
106
main.tex
106
main.tex
|
@ -1,5 +1,5 @@
|
||||||
% Declare Document Class
|
% Declare Document Class
|
||||||
\documentclass{article}
|
\documentclass[a4paper,12pt,twoside]{book}
|
||||||
|
|
||||||
% Latex Packages
|
% Latex Packages
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
|
@ -10,6 +10,8 @@
|
||||||
\usepackage{color}
|
\usepackage{color}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage{float}
|
\usepackage{float}
|
||||||
|
\usepackage[english]{babel}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
|
||||||
% Define color
|
% Define color
|
||||||
\definecolor{codegreen}{rgb}{0,0.6,0}
|
\definecolor{codegreen}{rgb}{0,0.6,0}
|
||||||
|
@ -43,18 +45,22 @@
|
||||||
\graphicspath{{img/}}
|
\graphicspath{{img/}}
|
||||||
|
|
||||||
% Custom commands
|
% Custom commands
|
||||||
\newcommand{\insertoutput}[1]{
|
% Usage: \pic{ [<pct-of-testwidt>] }{ <path-to-file> }
|
||||||
\begin{center}
|
\newcommand{\pic}[2][25]{
|
||||||
\includegraphics[width=12cm]{#1}
|
|
||||||
\end{center}
|
|
||||||
}
|
|
||||||
\newcommand{\pic}[2]{
|
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\transparent{0.4}
|
\transparent{0.4}
|
||||||
\includegraphics[height=#1]{#2}
|
\includegraphics[width=0.#1\textwidth]{#2}
|
||||||
\end{center}
|
\end{center}
|
||||||
}
|
}
|
||||||
|
% Usage: \fig{ [<caption>] }{ <label> }{ <path-to-file> }
|
||||||
|
\newcommand{\fig}[3][]{
|
||||||
|
\begin{figure}[h]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.25\textwidth]{#3}
|
||||||
|
\caption{#1}
|
||||||
|
\label{fig:#2}
|
||||||
|
\end{figure}
|
||||||
|
}
|
||||||
|
|
||||||
% In which order to look after images in
|
% In which order to look after images in
|
||||||
% declared graphicspath{}'s
|
% declared graphicspath{}'s
|
||||||
|
@ -64,7 +70,18 @@
|
||||||
\DeclareGraphicsExtensions{.jpg,.png,.pdf}
|
\DeclareGraphicsExtensions{.jpg,.png,.pdf}
|
||||||
|
|
||||||
% Package Params
|
% Package Params
|
||||||
\geometry{a4paper,margin=2cm}
|
\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}
|
||||||
|
|
||||||
|
|
||||||
%
|
%
|
||||||
|
@ -73,22 +90,23 @@
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
% Which info to insert on the title page
|
% Which info to insert on the title page
|
||||||
\title{r17dinh409 Cisco Lab}
|
\title{r17dinh409}
|
||||||
\author{Christoffer Hansen <zbcchhan11 at zbc.dk>}
|
\author{Christoffer Hansen <zbcchhan11 at zbc.dk>}
|
||||||
\date{May 22 - June 30, 2017}
|
\date{May 22 - June 30, 2017}
|
||||||
% Make title page contents
|
% Make title page contents
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
% Page break before starting Table Of Contents
|
|
||||||
\newpage
|
|
||||||
% Table Of Contents
|
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% %
|
||||||
|
% BEGIN CHAPTER: Base Configuration %
|
||||||
|
% %
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
%
|
\chapter{Base Configuration}
|
||||||
% BEGIN SWITCH CONFIG
|
|
||||||
%
|
\section{Cisco Lab}
|
||||||
\section{Lab cfg}
|
|
||||||
|
|
||||||
% <!-- ROUTER -->
|
% <!-- ROUTER -->
|
||||||
|
|
||||||
|
@ -98,28 +116,66 @@
|
||||||
\subsubsection{File: reset.tcl}
|
\subsubsection{File: reset.tcl}
|
||||||
%\lstinputlisting[language=tcl]{code/router/reset.tcl}
|
%\lstinputlisting[language=tcl]{code/router/reset.tcl}
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
% <!-- LAYER 3 SWITCH -->
|
% <!-- LAYER 3 SWITCH -->
|
||||||
|
|
||||||
\subsection{Layer 3 Switch}
|
\subsection{Layer 3 Switch}
|
||||||
\subsubsection{File: base.cfg}
|
\subsubsection{FILE: base.cfg}
|
||||||
\lstinputlisting[language=tcl]{code/l3switch/base.cfg}
|
\lstinputlisting[language=tcl]{code/l3switch/base.cfg}
|
||||||
\subsubsection{File: reset.tcl}
|
\subsubsection{FILE: reset.tcl}
|
||||||
\lstinputlisting[language=tcl]{code/l3switch/reset-tcl.txt}
|
\lstinputlisting[language=tcl]{code/l3switch/reset-tcl.txt}
|
||||||
|
\subsubsection{FILE: resetvlans.tcl}
|
||||||
|
\lstinputlisting[language=tcl]{code/l3switch/resetvlans-tcl.txt}
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
% <!-- LAYER 2 SWITCH -->
|
% <!-- LAYER 2 SWITCH -->
|
||||||
|
|
||||||
\subsection{Layer 2 Switch}
|
\subsection{Layer 2 Switch}
|
||||||
\subsubsection{File: base.cfg}
|
\subsubsection{FILE: base.cfg}
|
||||||
\lstinputlisting[language=tcl]{code/l2switch/base.cfg}
|
\lstinputlisting[language=tcl]{code/l2switch/base.cfg}
|
||||||
\subsubsection{File: reset.tcl}
|
\subsubsection{FILE: reset.tcl}
|
||||||
\lstinputlisting[language=tcl]{code/l2switch/reset-tcl.txt}
|
\lstinputlisting[language=tcl]{code/l2switch/reset-tcl.txt}
|
||||||
|
\subsubsection{FILE: resetvlans.tcl}
|
||||||
|
\lstinputlisting[language=tcl]{code/l2switch/resetvlans-tcl.txt}
|
||||||
|
|
||||||
%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% END SWITCH CONFIG
|
% %
|
||||||
%
|
% BEGIN CHAPTER: Protocols %
|
||||||
|
% %
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\chapter{Protocols}
|
||||||
|
|
||||||
|
\section{Routing}
|
||||||
|
|
||||||
|
\subsection{OSPF}
|
||||||
|
\subsection{IS-IS}
|
||||||
|
\subsection{EIGRP}
|
||||||
|
\subsection{RIP}
|
||||||
|
\subsection{Static}
|
||||||
|
\subsection{BGP}
|
||||||
|
|
||||||
|
\section{Switching}
|
||||||
|
|
||||||
|
\subsection{Spanning Tree}
|
||||||
|
|
||||||
|
\subsubsection{STP}
|
||||||
|
\subsubsection{PVST}
|
||||||
|
\subsubsection{RPVST+}
|
||||||
|
\subsubsection{MTP}
|
||||||
|
\subsubsection{VTP}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% %
|
||||||
|
% BEGIN CHAPTER: Internet %
|
||||||
|
% %
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\chapter{Internet}
|
||||||
|
|
||||||
|
\section{BGP}
|
||||||
|
|
||||||
%
|
%
|
||||||
% END DOCUMENT
|
% END DOCUMENT
|
||||||
|
|
Loading…
Reference in a new issue