Forráskód Böngészése

Cisco and Linksys stuff

Håvard O. Nordstrand 5 éve
szülő
commit
b13f88d00e
2 módosított fájl, 45 hozzáadás és 8 törlés
  1. 26 7
      config/network/cisco-ios-switches.md
  2. 19 1
      config/network/linksys-lgs.md

+ 26 - 7
config/network/cisco-ios-switches.md

@@ -27,10 +27,12 @@ breadcrumbs:
 1. Enter configuration mode: `conf t`
 1. Set the hostname and domain name:
    1. `hostname <hostname>`
-   2. `ip domain-name <domain>` (the part after the hostname)
-1. Set the time zone (Norway):
+   1. `ip domain-name <domain>` (the part after the hostname)
+1. Set the time zone (for Norway) and time:
    1. Time zone: `clock timezone UTC 1 0`
-   2. Automatic summer time: `clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00`
+   1. Automatic summer time: `clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00`
+   1. Set the time (exec mode): `clock set 10:50:00 Oct 26 2006` (example)
+   1. Show the current time (exec mode): `show clock`
 1. Disable unused features/services:
    1. `no service config`
    2. `no service pad`
@@ -73,7 +75,7 @@ breadcrumbs:
     6. (Optional) Shut down: `shutdown`
 1. Configure LAGs (LACP):
     1. Set load balancing method (globally): `port-channel load-balance src-dst-ip`
-    2. Enter LAG config: `interface port-channel<id>`
+    2. Enter LAG config: `interface port-channel <id>`
     3. Set description: `description <description>`
     4. Add interfaces (int config): `channel-group <id> mode active`
 1. Configure ports:
@@ -156,6 +158,7 @@ breadcrumbs:
 1. Configure SNMP traps:
     1. **TODO**
 1. Save the config: `copy run start`
+1. (Optional) Copy the config to a TFTP server: `copy start tftp://<host>/<path>`
 
 ## General Configuration
 
@@ -166,14 +169,26 @@ breadcrumbs:
     - L2 port overview: `sh int status`
     - Port statistics: `sh int <if>`
     - Err-disable: `sh int status err-disabled`
+    - STP blocked ports: `sh span blockedports`
+    - STP blocked VLANS: `sh span summary`
+- Show/search log: `sh log | i <search-text>`
 
 ### Reset the Configuration
 
-1. Delete the config: `erase startup-config`
-1. Delete the VLAN DB: `delete flash:vlan.dat`
 1. Show files: `sh flash:`
-1. Delete `.renamed` files too.
+1. Delete the config files:
+    ```
+    delete flash:config.text
+    delete flash:private-config.text
+    delete flash:vlan.dat
+    ```
+1. Delete any `.backup` and `.renamed` files too.
 1. Reload: `reload`
+    - Not required if the "mode" button was used to reset the device.
+
+#### Without CLI Access
+
+Hold the "mode" button for 30 seconds or until it says in the console that it's restarting and clearing the configuration.
 
 ### Services and Features
 
@@ -194,6 +209,10 @@ breadcrumbs:
 
 - Enable BPDU guard globally to automatically enable it om ports with portfast. Or don't.
 - Only enable loop guard for links which may become uni-directional and which have UDLD enabled.
+- Show err-disabled ports: `sh int status err-disabled`
+- Show blocked ports: `sh span blockedports`
+- Show blocked VLANS: `sh span summary`
+- Show STP neighbors: ``
 
 ## Theory
 

+ 19 - 1
config/network/linksys-lgs.md

@@ -11,6 +11,24 @@ breadcrumbs:
 
 - LGS326
 
-**TODO**
+## Setup
+
+1. Wait for it to boot (a few minutes).
+1. (Optional) Reset the configuration:
+    1. Hold the reset button for 15 seconds (minimum 10 seconds) to clear its configuration. When released, the port LEDs should start go dark or start blinking or something.
+    1. Wait for it to reboot.
+1. Connect the switch to the upstream network or to your PC. It will use the default IP address `192.168.1.251` or use a DHCP address. If using the default address, the system LED will be blinking. If it gets assigned a DHCP address, it will stop blinking.
+1. Access the HTTP portal and login using username "admin" and password "admin".
+1. (Optional) Update the firmware:
+    1. Check the firmware version in the banner and check if it is the latest version (1.1.1.9 for LGS326 last time I checked).
+    1. Go to "maintenance", "file management", "firmware & boot code".
+    1. Upload and apply the new version.
+    1. Reboot the device for it to take effect.
+1. (Optional) Upload a config:
+    1. Go to "maintenance", "file management", "configuration & log".
+    1. "Download" the new config to the switch, either to running config or startup config.
+        - Uploading to running config: The config will take effect immediately, which may include changing the IP address. Remember to copy it to startup config afterwards. Do this when testing new config changes.
+        - Uploading to startup config: Wait for the upload to finish, then reboot the device for it to take effect. Only do this for functioning configs.
+    1. Wait for it to come back up to whatever IP address it's configured to use (should take under a minute). If it doesn't come back up within a few minutes, fix the config and restart/reset the switch.
 
 {% include footer.md %}