albertaloop / T_SWE_2019_2020

Software for AlbertaLoop's first-generation pod.
MIT License
3 stars 1 forks source link

Setup ethernet switch #54

Open mbardwell opened 2 years ago

mbardwell commented 2 years ago

Summary

An Ethernet switch is useful for

  1. increasing the number of available ethernet ports
  2. providing an extra layer of routing (if active AKA layer 3)

We bought two switches:

Acceptance Criteria

mbardwell commented 2 years ago

image image

mbardwell commented 2 years ago

Setting up level 2 switch in managed mode

PowerConnect User manual

image

Assumptions

Steps

If at any point you feel like this is not working and you want to revert to unmanaged mode, just press the mode button and check that the LED is off. Make sure you reconnect all devices. image

Disconnect all Ethernet cables from the device except for the laptop and the wall plug.

Put device in managed mode image

Verify switch is in managed mode with LED image

On laptop, open the web interface by typing 192.168.2.1 into a browser image

Setup the switch to act as a "DHCP client". This may cause you to lose connection to the webpage. If that happens, you can plug the serial cable into the laptop and try to get the new IP address through the command line (page 44 of the manual).

Look for "Current IP". It should be 129.128.214.XXX.

If everything has gone well up to this point, then the switch is acting as a proper router. You can connect the RPi back to the switch. Open a terminal on the RPi and type ip --brief a. You should see eth0 UP 192.168.... You can try to ping that IP address from your laptop. If you can ping it, you can try to SSH from the laptop using Putty.

If all of that works, please post the Switch's IP address as well as the RPi's here and I will test the setup remotely.