1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-11-26 19:27:57 +00:00

Merge branch 'develop' into 'master'

Develop

See merge request !3
This commit is contained in:
netravnen 2017-06-01 12:52:35 +00:00
commit 2f7785dc51
46 changed files with 228 additions and 33 deletions

View file

@ -6,12 +6,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] ## [Unreleased]
### Added ### Added
- Section: RADIUS
- Section: TACACS+
### Changed ### Changed
## [0.2.0-lw] - 2017-06-01
### Added
- Section: DHCP
- Section: Inter Vlan Routing
## [0.1.0-lw] - 2017-05-30 ## [0.1.0-lw] - 2017-05-30
### Added ### Added
- Initial version - Initial version
- Section: Spanning Tree - Section: Spanning Tree
[Unreleased]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.1.0-lw...HEAD [Unreleased]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.2.0-lw...HEAD
[0.2.0-lw]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.1.0-lw...v0.2.0-lw
[0.1.0-lw]: https://gitlab.com/netravnen/CiscoLabNotes/compare/2ca23bdd5a942ca1af0bb4e568bb97b1be12ab88...v0.1.0-lw

1
chapter/aaa/radius.tex Normal file
View file

@ -0,0 +1 @@
\section{RADIUS}

View file

@ -0,0 +1 @@
\section{TACACS+}

View file

@ -1,11 +0,0 @@
\chapter{The Internet {\footnotesize "Post cold-war modern times"}}
\section{Service Providers}
\section{IXP}
\section{MPLS}
\section{BGP}
\section{eVPN}

View file

@ -1,7 +0,0 @@
\chapter{Protocols Layer 2}
\input{chapter/section/switchednetwork}
\newpage
\input{chapter/section/spanningtree}

View file

@ -1,7 +0,0 @@
\chapter{Layer-2-to-Layer-3}
\input{chapter/section/intervlanrouting}
\chapter{Protocols Layer 3}
\input{chapter/section/routednetwork}

42
chapter/section/dhcp.tex Normal file
View file

@ -0,0 +1,42 @@
\section{DHCP Process}
\fig{dhcp/dhcpdiscoverprocess}{dhcpdiscoverprocess}{DHCP Discover Process}
\subsection{DHCP Messages}
\begin{itemize}
\item \textbf{DHCPDECLINE:} Message sent from the client to the server that the address is already in use.
\item \textbf{DHCPNAK:} The server sends a refusal to the client for request for configuration.
\item \textbf{DHCPRELEASE:} Client tells a server that it is giving up a lease.
\item \textbf{DHCPINFORM:} A client already has an IP address but is requesting other configuration parameters that the DHCP server is configured to deliver such as DNS address.
\end{itemize}
\section{DHCP Options}
\begin{itemize}
\item \textbf{43} Vendor-encapsulated option that enables vendors to have their own list of options on the server.
\item \textbf{69} SMTP server, if you want to specify available SMTP servers to the client.
\item \textbf{70} POP3 server, if you want to specify available POP3 servers to the client.
\item \textbf{150} TFTP server that enables your phones to access a list of TFTP servers.
\end{itemize}
\section{DHCP Example Configuration}
\subsection{Cisco}
\begin{txt}
ip dhcp excluded-address 192.168.0.254
!
ip dhcp pool LAN-1-POOL-DHCP
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
lease 2 ! set in days
\end{txt}
When configuring a Layer 3 interface as a relay port for DHCP request for a subnet. Set the ip helper command on the interface with one \textit{or} more ip addresses.
\begin{txt}
interface GigabitEthernet 0/3
ip helper-address 192.168.220.220
ip helper-address 192.168.222.222
\end{txt}

View file

@ -1 +1,93 @@
\section{Vlan-to-vlan routing} \section{Vlan-to-vlan routing}
\myquote{}{Guidance and Understanding of the art of Layer 3 networks. Routing between different slash 24\tsq{s}.\\ \textit{Aka. Inter-vlan routing.}}
There are different ways to go \tsq{bout} Inter-vlan routing and doing it.
\begin{itemize}
\item \textbf{Some are using:}
\begin{enumerate}
\item external router,
\item switch virtual interfaces\footnote{\texttt{Switches interface -> Vlan interfaces}},
\item routed ports\footnote{\texttt{Routed interface -> Subinterfaces}},
\item bridge virtual interface\footnote{\texttt{L3 bridging interface}}
\end{enumerate}
\item \textbf{Ways to do it:}
\begin{enumerate}
\item router-on-a-stick if the network is running collapsed core or not have a distribution switch in the middle.
\item (...)
\end{enumerate}
\end{itemize}
\pagebreak
\subsection{Interface configs}
\subsubsection{Routed interfaces}
\begin{txt}
interface GigabitEthernet 0/1.10
encapsulation dot1q 10
ip address 192.168.0.1 255.255.255.128
!
interface GigabitEthernet 0/1.20
encapsulation dot1q 20
ip address 192.168.0.129 255.255.255.128
\end{txt}
\subsubsection{Switches interfaces}
\begin{txt}
Vlan10
name VLAN10
Vlan20
name VLAN20
!
interface Vlan10
ip address 192.168.1.1 255.255.255.128
interface Vlan20
ip address 192.168.1.129 255.255.255.128
!
interface GigabitEthernet 0/2
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10,20
\end{txt}
\pagebreak
\fig{network/routeronastick}{routeronastick}{\bsq{Router on a Stick} concept.}
\pagebreak
\subsection{? Troubleshooting ?}
\begin{enumerate}
\item \textbf{Missing VLAN:}
\begin{itemize}
\item VLAN might not be defined across all the switches.
\item VLAN might not be enabled on the trunk ports.
\item Ports might not be in the right VLANs.
\end{itemize}
\item \textbf{Layer 3 interface misconfiguration:}
\begin{itemize}
\item Virtual interface might have the wrong IP address or subnet mask.
\item Virtual interface might not be up.
\item Virtual interface number might not match with the VLAN number.
\item Routing has to be enabled to route frames between VLAN.
\item Routing might not be enabled.
\end{itemize}
\item \textbf{Routing protocol misconfiguration:}
\begin{itemize}
\item Eyery interface or network needs to be added in the routing protocol.
\item The new interface might not be added to the routing protocol.
\item Routing protocol configuration is needed only if VLAN subnets need to communicate to the other routers, as previously
mentioned in this chapter.
\end{itemize}
\item \textbf{Host misconfiguration:}
\begin{itemize}
\item Host might not have the right IP address or subnet mask.
\item Each host has to have the default gateway that is the SVI or Layer 3 interface to communicate with other networks and VLAN.
\item Host might not be configured with the default gateway.
\end{itemize}
\end{enumerate}

View file

@ -16,6 +16,9 @@
\end{figure} \end{figure}
} }
\newcommand{\xkcd}[2]{\fig{xkcd/#1}{#1}{#2\\%
{\tiny\MakeUppercase{https://imgs.xkcd.com/comics/#1.png}}}}
% Usage: \svg{<path-to-file>}{<label>}{<caption>} % Usage: \svg{<path-to-file>}{<label>}{<caption>}
\newcommand{\svg}[3]{ \newcommand{\svg}[3]{
\begin{figure}[h] \begin{figure}[h]
@ -50,6 +53,16 @@
{\footnotesize #2}} {\footnotesize #2}}
\newcommand{\myquote}[2]{%
\sbox0{#1}%
\ifdim\wd0=0pt
{\epigraph{#2}{\textit{{\tiny \theauthor}}}} %if #1 is empty
\else
{\epigraph{#2}{\textit{#1}}} %if quote is cited
\fi
}
% Enviroment @var txt % Enviroment @var txt
% changes code styling to: in frame, white bg. % changes code styling to: in frame, white bg.
\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} \lstnewenvironment{txt}{\lstset{style=plaintxt}}{}

BIN
img/coffee.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
img/coffee2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/coffee3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
img/coffee4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
img/coffee5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
img/coffee6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
img/coffee7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
img/coffee8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
img/coffeereligion.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
img/starbucks.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
img/xkcd/11th_grade.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
img/xkcd/api.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
img/xkcd/brakes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
img/xkcd/depth.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

BIN
img/xkcd/frustration.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
img/xkcd/hard_reboot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
img/xkcd/hats.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/xkcd/insurance.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
img/xkcd/latitude.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
img/xkcd/legal_hacks.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
img/xkcd/packages.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
img/xkcd/parking.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
img/xkcd/simultaneous.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/xkcd/smfw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8 KiB

BIN
img/xkcd/terminology.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
img/xkcd/twitter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
img/xkcd/typewriter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -27,11 +27,67 @@
\include{chapter/baseconf} \include{chapter/baseconf}
\include{chapter/layer2protocols} \chapter{Layer 2}
\include{chapter/layer3protocols} \input{chapter/section/switchednetwork}
\include{chapter/internet} \newpage
\input{chapter/section/spanningtree}
\chapter{L2 to L3}
\input{chapter/section/intervlanrouting}
\chapter{DHCP}
\input{chapter/section/dhcp}
\chapter{Triple A\tsq{s}}
\myquote{}{Remember to log the details, too.}
\xkcd{latitude}{Remember logging when necessary}
\input{chapter/aaa/radius}
\input{chapter/aaa/tacacsplus}
\chapter{Network Time Protocol}
\section{The old NTP from \tsq{85}}
\section{Secure NTP}
\chapter{Managemnt}
\section{Network management}
\subsection{Routers}
\subsection{Switches}
\subsection{Firewall}
\section{Out-of-band management}
\subsection{Console server}
\chapter{Protocols Layer 3}
\input{chapter/section/routednetwork}
\chapter{The Internet {\footnotesize "Post cold-war modern times"}}
\section{Service Providers}
\section{IXP}
\section{MPLS}
\section{BGP}
\section{eVPN}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % % %

View file

@ -37,6 +37,8 @@
\usepackage{inconsolata} \usepackage{inconsolata}
\usepackage{blindtext} \usepackage{blindtext}
\usepackage{expdlist} \usepackage{expdlist}
\usepackage{epigraph} % used to style quotes
\usepackage{titling} % makes available \thetitle \theauthor \thedate
\bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles \bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles
@ -101,8 +103,8 @@
showstringspaces=false, showstringspaces=false,
showtabs=false, showtabs=false,
tabsize=4, tabsize=4,
abovecaptionskip=5em, abovecaptionskip=3em,
aboveskip=3em, aboveskip=1em,
belowcaptionskip=5em, belowcaptionskip=5em,
belowskip=3em, belowskip=3em,
upquote=true, upquote=true,
@ -207,3 +209,7 @@
\renewcommand\theadfont{\bfseries} \renewcommand\theadfont{\bfseries}
\renewcommand\theadgape{\Gape[4pt]} \renewcommand\theadgape{\Gape[4pt]}
\renewcommand\cellgape{\Gape[4pt]} \renewcommand\cellgape{\Gape[4pt]}
\def\tsq#1{\textquotesingle{#1}}
\def\bsq#1{%both single quotes
\lq{#1}\rq}