Håvard Ose Nordstrand 3 anos atrás
pai
commit
9f9f57b0de

+ 31 - 2
config/network/fs-fsos-switches.md

@@ -9,17 +9,43 @@ breadcrumbs:
 ### Using
 {:.no_toc}
 
-- FS S3700-24T4F
+- FS S5860-20SQ (core switch)
+- FS S3700-24T4F (access switch)
 
-## Info
+## Basics
 
 - Default credentials: Username `admin` and password `admin`.
 - Default mgmt. IP address: `192.168.1.1/24`
 - By default, SSH, Telnet and HTTP servers are accessible using the default mgmt. address and credentials.
+- Serial config: RS-232 w/ RJ45, baud 115200, 8 data bits, no parity bits, 1 stop bit, no flow control.
 - The default VLAN is VLAN1.
 
 ## Initial Setup
 
+### Core Switch
+
+Using an FS S5860-20SQ.
+
+**TODO**
+
+Random notes (**TODO**):
+
+1. (Optional) Split 40G-interface (QSFP+) into 4x 10G (SFP+): `split interface <if>`
+1. Configure RSTP:
+    - Set protocol: `spanning-tree mode rstp` (default MSTP)
+    - Set priority: `spanning-tree priority <priority>` (default 32768, should be a multiple of 4096, use e.g. 32768 for access, 16384 for distro and 8192 for core)
+    - Set hello time: `spanning-tree hello-time <seconds>` (default 2s)
+    - Set maximum age: `spanning-tree max-age <seconds>` (default 20s)
+    - Set forward delay: `spanning-tree forward-time <seconds>` (default 15s)
+    - Enable: `spanning-tree`
+    - **TODO** Enabled on all interfaces and VLANs by default?
+    - **TODO** Portfast for access ports? `spanning-treelink-type ...`
+    - **TODO** Guards.
+
+### Access Switch
+
+Using an FS S3700-24T4F.
+
 1. Connect to the switch using serial.
     - Using RS-232 w/ RJ45, baud 115200, 8 data bits, no parity bits, 1 stop bit, no flow control.
     - Use `Ctrl+H` for backspace.
@@ -125,6 +151,9 @@ breadcrumbs:
 - Interfaces:
     - Show L2 brief: `show int brief`
     - Show L3 brief: `show ip int brief`
+- STP:
+    - Show details: `show spanning-tree`
+    - Show overview and interfaces: `show spanning-tree summary`
 - LACP:
     - Show semi-detailed overview: `show aggregator-group [n] brief`
     - Show member ports: `show aggregator-group [n] summary`

+ 1 - 0
config/network/juniper-junos-general.md

@@ -48,6 +48,7 @@ breadcrumbs:
     - Change context to container statement: `edit <path>`
     - Go up in context: `up` or `top`
     - Show configuration for current level: `show`
+- Perform operation on multiple interfaces or similar: `wildcard range set int ge-0/0/[0-47] unit 0 family ethernet-switching` (example)
 - Commit config changes: `commit [comment <comment>] [confirmed] [and-quit]`
     - `confirmed` automatically rolls back the commit if it is not confirmed within a time limit.
     - `and-quit` will quit configuration mode after a successful commit.

+ 25 - 11
config/network/juniper-junos-switches.md

@@ -23,6 +23,13 @@ breadcrumbs:
 
 - [Juniper EX3300 Fan Mod](/guides/network/juniper-ex3300-fanmod/)
 
+## Basics
+
+- Default credentials: Username `root` without a password (drops you into the shell instead of the CLI).
+- Default mgmt. IP address: Using DHCPv4.
+- Serial config: RS-232 w/ RJ45, baud 115200, 8 data bits, no parity bits, 1 stop bit, no flow control.
+- Native VLAN: 0, aka `default`
+
 ## Initial Setup
 
 1. Connect to the switch using serial:
@@ -30,7 +37,7 @@ breadcrumbs:
 1. Login:
     - Username `root` and no password.
     - Logging in as root will always start the shell. Run `cli` to enter the operational CLI.
-1. (Optional) Disable default virtual chassis ports (VCPs) if not used:
+1. (Optional) Free virtual chassis ports (VCPs) for normal use:
     1. Enter op mode.
     1. Show VCPs: `show virtual-chassis vc-port`
     1. Remove VCPs: `request virtual-chassis vc-port delete pic-slot <pic-slot> port <port-number>`
@@ -112,8 +119,16 @@ breadcrumbs:
     - **TODO**
 1. Enable EEE:
     - **TODO**
-1. Configure RSTP:
-    - RSTP is the default STP variant for Junos.
+1. (Optional) Configure RSTP:
+    - Note: RSTP is the default STP variant for Junos.
+    - Enter config section: `edit protocols rstp`
+    - Set priority: `set bridge-priority <priority>` (default 32768, should be a multiple of 4096, use e.g. 32768 for access, 16384 for distro and 8192 for core)
+    - Set hello time: `set hello-time <seconds>` (default 2s)
+    - Set maximum age: `set max-age <seconds>` (default 20s)
+    - Set forward delay: `set forward-delay <seconds>` (default 15s)
+    - **TODO** Portfast for access ports?
+    - **TODO** Guards.
+    - **TODO** Enabled on all interfaces and VLANs by default?
 1. Configure SNMP:
     - Note: SNMP is extremely slow on the Juniper switches I've tested it on.
     - Enable public RO access: `set snmp community public authorization read-only`
@@ -127,7 +142,13 @@ breadcrumbs:
 ### Interfaces
 
 - Disable interface or unit: `set disable`
-- Perform operation on multiple interfaces: `wildcard range set int ge-0/0/[0-47] unit 0 family ethernet-switching` (example)
+- Show transceiver info:
+    - `show interfaces diagnostics optics [if]`
+    - `show interfaces media [if]` (less info, only works if interface is up)
+
+### STP
+
+- Show interface status: `show spanning-tree interface`
 
 ## Virtual Chassis
 
@@ -181,11 +202,4 @@ breadcrumbs:
 
 Virtual Chassis Fabric (VCF) evolves VC into a spine-and-leaf architecture. While VC focuses on simplified management, VCF focuses on improved data center connectivity. Only certain switches (like the QFX5100) support this feature.
 
-## Miscellanea
-
-- Serial:
-    - RS-232 w/ RJ45 (Cisco-like).
-    - Baud 9600 (default).
-    - 8 data bits, no parity, 1 stop bits, no flow control.
-
 {% include footer.md %}