From 4df7b39e1eff88a23f7296d879f1d434fb191c34 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 30 May 2017 21:50:54 +0200 Subject: [PATCH 01/11] 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 02/11] 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 03/11] 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 04/11] 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 05/11] 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 06/11] 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 07/11] 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} From 2c95239685a3dc2e8093138ca7d89655cf832ee0 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Wed, 31 May 2017 16:04:39 +0000 Subject: [PATCH 08/11] Add new file --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..46ec939 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# TODO + +## Write about +[ ] NTP +[ ] SNTP +[ ] TACACS+ +[ ] RADIUS +[ ] INTER VLAN ROUTING +[ ] BGP +[ ] ISIS +[ ] EIGRP +[ ] OSPF +[ ] RIP +[ ] PREFIX FILTERS +[ ] ASN's From ec8dfb57b5e3893a21f4f21bb58623a06a050bd5 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Wed, 31 May 2017 16:05:23 +0000 Subject: [PATCH 09/11] Update README.md --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 46ec939..6497009 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ # TODO ## Write about -[ ] NTP -[ ] SNTP -[ ] TACACS+ -[ ] RADIUS -[ ] INTER VLAN ROUTING -[ ] BGP -[ ] ISIS -[ ] EIGRP -[ ] OSPF -[ ] RIP -[ ] PREFIX FILTERS -[ ] ASN's +- [ ] NTP +- [ ] SNTP +- [ ] TACACS+ +- [ ] RADIUS +- [ ] INTER VLAN ROUTING +- [ ] BGP +- [ ] ISIS +- [ ] EIGRP +- [ ] OSPF +- [ ] RIP +- [ ] PREFIX FILTERS +- [ ] ASN's From 5553ed4bb0ac5cf8a209e2b3cf85d9e584195907 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Wed, 31 May 2017 16:06:42 +0000 Subject: [PATCH 10/11] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6497009..2ed0fbd 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,9 @@ - [ ] RIP - [ ] PREFIX FILTERS - [ ] ASN's + +## _Mostly_ done +- [X] Spanning tree + +## Considered done +- [ ] ... \ No newline at end of file From 4a789e94e36725b77bc182f2700057ac23926a23 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Wed, 31 May 2017 18:36:13 +0200 Subject: [PATCH 11/11] Added BID frame to spanningtree --- chapter/section/spanningtree.tex | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chapter/section/spanningtree.tex b/chapter/section/spanningtree.tex index 7746964..c062f68 100644 --- a/chapter/section/spanningtree.tex +++ b/chapter/section/spanningtree.tex @@ -119,6 +119,16 @@ Any network node with switchports and STP + BPDU enabled sends out BPDU packets \subsubsection{Root Bridge} Using a \textbf{R}oot \textbf{B}rigde as the reference point for the STP instance and calculation of root/designated/non-designated ports.\\This election process uses a pre-configured bridge priority (ranges from $0$ to $2^{16}$) (defaults to $2^{15}$). If a tie in priority is found the switch in possession of the lowest mac address wins the root bridge election. +\begin{txt} +|<-------- bridge id 8 bytes --->| + ++----------+---------------------+ +| Bridge | MAC | +| priority | Address | ++----------+---------------------+ + +|< 2 byte >|<----- 6 bytes ----->| +\end{txt} \subsubsection{Port Cost}