From cfee941cff1d057bcad5ed9ea85e6e53b921484a Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 23 May 2017 08:18:56 +0200 Subject: [PATCH 01/23] Added table Channel bundling mechanisms --- main.tex | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/main.tex b/main.tex index fdd6fa0..123373b 100644 --- a/main.tex +++ b/main.tex @@ -315,6 +315,27 @@ Channel bundling spreads out the in and egress flows based upon one of several m \end{itemize} Keep in mind this will by no means archive true load balancing. Where all links are equally used based upon number of flows \textit{or} in terms of used bandwidth. +\begin{table}[h] + \centering + \caption{Channel bundling mechanisms} + \label{chbundmech1} + \resizebox{\columnwidth}{!}{% + \begin{tabular}{|l|l|l|} + \hline + Hash Input Code & Hash Input Detecision & Switch Model \\ \hline + dst-ip & Dest IP addr & All models \\ \hline + dst-mac & Dest MAC addr & All models \\ \hline + src-dst-ip & Src and dest IP addr & All models \\ \hline + src-dst-mac & Src and dest MAC addr & All models \\ \hline + src-ip & Src IP addr & All models \\ \hline + src-mac & Src MAC addr & All models \\ \hline + src-port & Src port no & 4500,6500 \\ \hline + dst-port & Dest port no & 4500,6500 \\ \hline + src-dst-port & Src and dest port no & 4500,6500 \\ \hline + \end{tabular}% + } +\end{table} + \fig{channelbundling/network-with-channelbundling}{withethernetchannel}% {Channelbundling present} @@ -356,8 +377,6 @@ Spanning Tree exists for the \textbf{sole} reason to save "your" network and all STP comes from the above desire where redundancy was wanted but no protocol existed before STP to help in this regard. -% Please add the following required packages to your document preamble: -% \usepackage{graphicx} \begin{table}[h] \centering \caption{Spanning Tree standrds} From ece2df93e8e680ffefbcd87552ddef0b3f3a4465 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 23 May 2017 09:41:02 +0200 Subject: [PATCH 02/23] Added config for vlan 666, lldp, cdp to base.cfg --- code/l2switch/base.cfg | 74 +++++++++++++++++++++++++++++------------- code/l3switch/base.cfg | 56 +++++++++++++++++++++++++------- 2 files changed, 96 insertions(+), 34 deletions(-) diff --git a/code/l2switch/base.cfg b/code/l2switch/base.cfg index db9a5c0..178c367 100644 --- a/code/l2switch/base.cfg +++ b/code/l2switch/base.cfg @@ -11,41 +11,37 @@ no aaa new-model clock timezone MET 1 0 clock summer-time MET-DST recurring last Sun Mar 2:00 last Sun Oct 3:00 system mtu routing 1500 +vtp mode transparent no ip domain-lookup ip domain-name cisco.tld password encryption aes spanning-tree mode pvst spanning-tree extend system-id vlan internal allocation policy ascending +vlan 666 + name VLAN-BLACKHOLE +exit +lldp timer 12 +lldp holdtime 100 +lldp reinit 5 +lldp tlv-select mac-phy-cfg +lldp tlv-select management-address +lldp tlv-select port-vlan +lldp tlv-select power-management +lldp tlv-select system-name +lldp run ip tcp synwait-time 5 ip ssh logging events ip ssh version 2 ip ssh dh min size 2048 ip ssh dscp 56 -no ip http server -no ip http secure-server -line con 0 - exec-timeout 60 0 - privilege level 15 - logging synchronous - stopbits 1 -line vty 0 4 - exec-timeout 60 0 - privilege level 15 - logging synchronous - login - length 0 - stopbits 1 -line vty 5 15 - exec-timeout 60 0 - logging synchronous - login - stopbits 1 interface range f0/1-24 , g0/1-2 shutdown -exit -interface range f0/1-18 + switchport mode access + switchport access vlan 666 no cdp enable + no lldp transmit + lldp recieve exit interface range f0/19-24 switchport mode trunk @@ -53,7 +49,41 @@ interface range f0/19-24 switchport trunk native vlan 1 no shutdown exit -vtp mode transparent +interface Vlan1 + no ip address + shutdown +exit +interface Vlan666 + no ip address + shutdown +exit +no ip http server +no ip http secure-server +cdp advertise-v2 +cdp holdtime 100 +cdp timer 12 +cdp tlv app +cdp tlv location +cdp run +line con 0 + exec-timeout 60 0 + privilege level 15 + logging synchronous + stopbits 1 +exit +line vty 0 4 + exec-timeout 60 0 + privilege level 15 + logging synchronous + login + length 0 + stopbits 1 +exit +line vty 5 15 + exec-timeout 60 0 + logging synchronous + login + stopbits 1 exit end } diff --git a/code/l3switch/base.cfg b/code/l3switch/base.cfg index 7c6b708..88a56ef 100644 --- a/code/l3switch/base.cfg +++ b/code/l3switch/base.cfg @@ -4,32 +4,73 @@ service timestamps debug datetime msec localtime show-timezone service timestamps log datetime msec localtime show-timezone service password-encryption service counters max age 10 -hostname distribution-switch-1 +hostname __HOSTNAME__ logging buffered notifications no logging console no aaa new-model clock timezone MET 1 0 clock summer-time MET-DST recurring last Sun Mar 2:00 last Sun Oct 3:00 system mtu routing 1500 +vtp mode transparent no ip domain-lookup ip domain-name cisco.tld password encryption aes spanning-tree mode pvst spanning-tree extend system-id vlan internal allocation policy ascending +vlan 666 + name VLAN-BLACKHOLE +exit +lldp timer 15 +lldp holdtime 180 +lldp reinit 5 +lldp run +lldp tlv-select mac-phy-cfg +lldp tlv-select management-address +lldp tlv-select port-vlan +lldp tlv-select power-management +lldp tlv-select system-name ip tcp synwait-time 5 ip ssh logging events ip ssh version 2 ip ssh dh min size 2048 ip ssh dscp 56 -ip classless +interface range f0/1-24 , g0/1-2 + shutdown + switchport mode access + switchport access vlan 666 + no cdp enable + no lldp transmit + lldp recieve +exit +interface range f0/19-24 + switchport mode trunk + switchport trunk allowed vlan 1 + switchport trunk native vlan 1 + no shutdown +exit +interface Vlan1 + no ip address + shutdown +exit +interface Vlan666 + no ip address + shutdown +exit no ip http server no ip http secure-server +cdp advertise-v2 +cdp holdtime 100 +cdp timer 12 +cdp tlv app +cdp tlv location +cdp run line con 0 exec-timeout 60 0 privilege level 15 logging synchronous stopbits 1 +exit line vty 0 4 exec-timeout 60 0 privilege level 15 @@ -37,21 +78,12 @@ line vty 0 4 login length 0 stopbits 1 +exit line vty 5 15 exec-timeout 60 0 logging synchronous login stopbits 1 -interface range f0/1-24 , g0/1-2 - shutdown -exit -interface range f0/1-18 - no cdp enable -exit -interface range f0/19-24 - no shutdown -exit -vtp mode transparent exit end } From c8b4282badbe2fff55d017555c0fa06ed79af4d3 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Tue, 23 May 2017 10:00:36 +0200 Subject: [PATCH 03/23] updated main.tex --- main.tex | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/main.tex b/main.tex index 123373b..6dd2ece 100644 --- a/main.tex +++ b/main.tex @@ -21,6 +21,7 @@ \usepackage{varwidth} \usepackage{enumitem} +\geometry{a4paper,margin=4em} % Define color \definecolor{codegreen}{rgb}{0,0.6,0} @@ -53,7 +54,6 @@ % to the file main.tex \graphicspath{{img/}{figures/}} -% Custom commands % Usage: \pic[]{} \newcommand{\pic}[2][50]{ \begin{center} @@ -61,8 +61,9 @@ \includegraphics[width=0.#1\columnwidth]{#2} \end{center} } + % Usage: \fig{}{