Scripts to Setup the Switch Tplink SFP T1600G-28TS-SG2424.
- Exit.
- Setup Switch from Zero to Hero!
- Prepare Host Machine.
- Set static IP
- Enable SSH.
- Enable Password Encryption.
- Create Bot User.
- Set Link Aggregation Control Protocol (LACP).
- Set Vlans.
- Set PVID.
- Enable IPV4 routing.
- Set Interfaces.
- Set IPv4 Static Routing to Default Gateway.
- Set System Time from NTP Server.
- Enable HTTPS.
- Disable HTTP.
- Set Jumbo Size.
- Enable DoS Defend.
- Set Device Description.
- Set SDM Preference.
- Enable Remote Logging.
- Disable Telnet.
- Enable EEE.
- Upgrade Firmware.
- Backup.
- Reboot.
- Reset with Factory Settings.
- Restore Settings from Latest Backup.
- Create a strong password for the admin user and store it in the secret manager. After you hit enter, a password will be asked.
secret-tool store --label="switch-user-admin" password "switch-user-admin"
- Retrieve the admin's password.
secret-tool lookup password "switch-user-admin"
- Add your email as the contact-info, but in order to avoid spammers, encode it in base64.
echo "[email protected]" | base64
- Decode your email from base64 to use it as the contact-info.
echo "eW91ci1lbWFpbEBzb21ldGhpbmcuY29tCg==" | base64 --decode
- Add the switch's ip in the hosts file so we can connect using its name and not its ip.
sudo nano /etc/hosts
192.168.0.3 switch.lan.homelab
- Run the application on the terminal.
./Setup.sh
or
./Setup.sh <option number>