From 16807e4e87ee9f507456d96e1481d3c17be00f79 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Tue, 31 Oct 2023 23:55:16 +0100
Subject: [PATCH] Add notes on solving Lab 2

---
 Networks/Main.pkt                             |  4 +-
 .../Lab 2 - Switch Configuration/README.md    | 57 +++++++++++++++++++
 2 files changed, 59 insertions(+), 2 deletions(-)

diff --git a/Networks/Main.pkt b/Networks/Main.pkt
index b20082f..70ddc2c 100644
--- a/Networks/Main.pkt
+++ b/Networks/Main.pkt
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:2e8c4481fe01931d1aa04cf25003fed8058e9173e8ea475943e181c2f5c3f527
-size 301966
+oid sha256:63090f96b620d678da0b0de1a25814e9470e29cd5ca22365a4d3d108d1d63ad3
+size 309544
diff --git a/Tutorials/Lab 2 - Switch Configuration/README.md b/Tutorials/Lab 2 - Switch Configuration/README.md
index d281248..ef8c007 100644
--- a/Tutorials/Lab 2 - Switch Configuration/README.md	
+++ b/Tutorials/Lab 2 - Switch Configuration/README.md	
@@ -17,3 +17,60 @@
 >   - Set `SW2` to be spanning-tree root primary for VLAN 10 and root secondary for VLAN 20
 >   - Set `SW3` to be spanning-tree root secondary for VLAN 20
 > - Configure static IP addresses for at least 3 computers per switch
+
+
+## Basic Configuration
+Run this configuration on each Switch replacing `{x}` with the switch number:
+
+```sh
+enable
+configure terminal
+hostname SW{x}
+
+interface range fastEthernet 0/1-10
+switchport mode access
+switchport access vlan 10
+
+interface range fastEthernet 0/11-20
+switchport mode access
+switchport access vlan 20
+
+interface range fastEthernet 0/1-20
+spanning-tree portfast
+
+interface range fastEthernet 0/22-24
+switchport mode trunk
+switchport trunk allowed vlan 10,20
+spanning-tree portfast trunk
+
+exit
+exit
+disable
+exit
+```
+
+## Configuration of `SW2`
+```sh
+enable
+configure terminal
+spanning-tree vlan 10 root primary
+spanning-tree vlan 20 root secondary
+
+exit
+exit
+disable
+exit
+```
+
+## Configuration of `SW3`
+```sh
+enable
+configure terminal
+spanning-tree vlan 10 root secondary
+spanning-tree vlan 20 root primary
+
+exit
+exit
+disable
+exit
+```