From 4df7b39e1eff88a23f7296d879f1d434fb191c34 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 30 May 2017 21:50:54 +0200 Subject: [PATCH 1/7] commands.tex: New lstenvironment txt --- commands.tex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands.tex b/commands.tex index 6e1e5ff..e61588b 100644 --- a/commands.tex +++ b/commands.tex @@ -47,4 +47,9 @@ } \newcommand{\itemtitle}[2]{\textbf{#1:}\\% - {\footnotesize #2}} \ No newline at end of file + {\footnotesize #2}} + + +% Enviroment @var txt +% changes code styling to: in frame, white bg. +\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} \ No newline at end of file From c4f56f840c8d02f46aafabb72409d20e1b5cd1d4 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 30 May 2017 21:51:17 +0200 Subject: [PATCH 2/7] structure.tex: New lst style plaintxt --- structure.tex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/structure.tex b/structure.tex index aedc184..c1aeb45 100644 --- a/structure.tex +++ b/structure.tex @@ -106,6 +106,13 @@ numbersep=8pt, rulecolor=\color{black}, } +\lstdefinestyle{plaintxt}{ + language=TeX, + numbers=none, + frame=trBL, + frameround=fttt, + backgroundcolor=\color{white}, +} \geometry{a4paper,margin=2cm} From 39d48fee6cbcd19410e0f9ee6a7f477ce57db6e3 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 30 May 2017 22:25:51 +0200 Subject: [PATCH 3/7] New lst custom language cisco --- commands.tex | 6 +++++- structure.tex | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/commands.tex b/commands.tex index e61588b..b97f2fb 100644 --- a/commands.tex +++ b/commands.tex @@ -52,4 +52,8 @@ % Enviroment @var txt % changes code styling to: in frame, white bg. -\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} \ No newline at end of file +\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} + + +% Enviroment @var cisco +\lstnewenvironment{cisco}{\lstset{style=cisco}}{} \ No newline at end of file diff --git a/structure.tex b/structure.tex index c1aeb45..8239d6c 100644 --- a/structure.tex +++ b/structure.tex @@ -34,6 +34,9 @@ \usepackage{fourier} \usepackage{array} \usepackage{makecell} +\usepackage{inconsolata} +\usepackage{blindtext} +\usepackage{expdlist} \bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles @@ -106,12 +109,62 @@ numbersep=8pt, rulecolor=\color{black}, } + + \lstdefinestyle{plaintxt}{ language=TeX, numbers=none, frame=trBL, frameround=fttt, backgroundcolor=\color{white}, + boxpos=c, +} + + +\lstdefinelanguage{cisco}{ + keywords={ + end, + hostname, + Interface int, + ip, + line, + login, + network, + no, + router, + sh, + show, + shut, + shutdown, + version, + vlan, + vrf, + }, + keywordstyle=\color{blue}\bfseries, + ndkeywords={ + addr, + address, + aux, + bgp, + con, + console, + dhcp, + eigrp, + g, + GigabitEthernet, + isis, + ospf, + ospfv3, + pool, + rip, + vty, + }, + ndkeywordstyle=\color{darkgray}\bfseries, + identifierstyle=\color{black}, + sensitive=false, + comment=[l]{!}, + commentstyle=\color{purple}\ttfamily, + stringstyle=\color{red}\ttfamily, } From f67e57a8cd971db3c7f26f59d1edcb6d6fc0177c Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 30 May 2017 22:30:27 +0200 Subject: [PATCH 4/7] Updated chapter/section/spanningtree.tex --- chapter/section/spanningtree.tex | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/chapter/section/spanningtree.tex b/chapter/section/spanningtree.tex index 7dc40dc..24c0fde 100644 --- a/chapter/section/spanningtree.tex +++ b/chapter/section/spanningtree.tex @@ -377,9 +377,16 @@ It is the network admins job to propagate an even configuration to all switches \fig{spanningtree/mstregions2}{mstregions2}{MST Regions vlans mapped to different instances.} -\begin{lstlisting}[language=TeX,numbers=none,frame=trBL,frameround=fttt,backgroundcolor=\color{white}] +\begin{txt} +|<-------- bridge id ----------->| + +----------+-----------+---------+ | Bridge | Extended | MAC | | priority | system ID | Address | +----------+-----------+---------+ -\end{lstlisting} \ No newline at end of file + + /\ + || + MST inst. no. carried in + Ext. Syst. ID Area +\end{txt} From 0bb2712aa9bedfa9d86a33edba6a90ce930e8c42 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Wed, 31 May 2017 15:02:18 +0200 Subject: [PATCH 5/7] spanningtree.tex: Common Troubleshooting --- chapter/section/spanningtree.tex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/chapter/section/spanningtree.tex b/chapter/section/spanningtree.tex index 24c0fde..87e0c26 100644 --- a/chapter/section/spanningtree.tex +++ b/chapter/section/spanningtree.tex @@ -377,6 +377,8 @@ It is the network admins job to propagate an even configuration to all switches \fig{spanningtree/mstregions2}{mstregions2}{MST Regions vlans mapped to different instances.} +\pagebreak % avoids column break for the following text + \begin{txt} |<-------- bridge id ----------->| @@ -390,3 +392,13 @@ It is the network admins job to propagate an even configuration to all switches MST inst. no. carried in Ext. Syst. ID Area \end{txt} + +\subsection{Common Troubleshooting} + +\begin{itemize} + \item Wrong duplex settings: Mismatch half/full duplex. + \item Failure on uni-directional links + \item Frame corruption + \item Resource errors + \item Wrong/Error with PortFast configuration +\end{itemize} \ No newline at end of file From 606299dcfa7e890ec94a40d7b13f59bfd5c82f86 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Wed, 31 May 2017 15:23:06 +0200 Subject: [PATCH 6/7] Added content to CHANGELOG.md --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..9faed70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +# Change Log +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased] +### Added + +### Changed + +## [0.1.0-lw] - 2017-05-30 +### Added +- Initial version +- Section: Spanning Tree + +[Unreleased]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.1.0-lw...HEAD \ No newline at end of file From 47eeaf6fd05ddfe30ff54aed4f275bebbfaa3ebd Mon Sep 17 00:00:00 2001 From: chhan11 Date: Wed, 31 May 2017 15:23:46 +0200 Subject: [PATCH 7/7] Finished up on spanning tree. Continueing with Inter Vlan routing --- chapter/layer3protocols.tex | 7 ++++--- chapter/section/intervlanrouting.tex | 1 + chapter/section/spanningtree.tex | 12 ++++++------ 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 chapter/section/intervlanrouting.tex diff --git a/chapter/layer3protocols.tex b/chapter/layer3protocols.tex index 3227f5d..71a2db9 100644 --- a/chapter/layer3protocols.tex +++ b/chapter/layer3protocols.tex @@ -1,6 +1,7 @@ +\chapter{Layer-2-to-Layer-3} + +\input{chapter/section/intervlanrouting} + \chapter{Protocols Layer 3} \input{chapter/section/routednetwork} - -\newpage - diff --git a/chapter/section/intervlanrouting.tex b/chapter/section/intervlanrouting.tex new file mode 100644 index 0000000..7eed6ba --- /dev/null +++ b/chapter/section/intervlanrouting.tex @@ -0,0 +1 @@ +\section{Vlan-to-vlan routing} \ No newline at end of file diff --git a/chapter/section/spanningtree.tex b/chapter/section/spanningtree.tex index 87e0c26..7746964 100644 --- a/chapter/section/spanningtree.tex +++ b/chapter/section/spanningtree.tex @@ -396,9 +396,9 @@ It is the network admins job to propagate an even configuration to all switches \subsection{Common Troubleshooting} \begin{itemize} - \item Wrong duplex settings: Mismatch half/full duplex. - \item Failure on uni-directional links - \item Frame corruption - \item Resource errors - \item Wrong/Error with PortFast configuration -\end{itemize} \ No newline at end of file + \item Duplex mismatch: Mismatch half/full duplex. + \item Unidirectional link failure + \item Frame corruption: Physical interfaces can be defective/with errors. + \item Resource errors: High compute usage in the Control Plane. {\scriptsize Remember the Spanning Tree Process in fx. Cisco Catalyst switches is handled in software.} + \item PortFast configuration error: Can lead to bridging loops when mis-wiring happens together with logical port configuration errors. +\end{itemize}