I have connected 6 raspberry pi's to an ethernet switch with 8 ports. I have connected my laptop to the switch as well. I am using VNC Viewer (and sometimes SSH) to connect to these raspberry pis using the laptop. All the pis and the laptop have been assigned static IPs. My question is, "Is there a way to provide Internet access to all the pis at once using Ethernet? I tried setting a wifi connection by editing /etc/wpa_supplicant/wpa_supplicant.conf and /etc/network/interfaces files. Although this seemed to work, the speed was very low (I am not sure why. It is a very fast connection otherwise). Also, I needed to add my personal login credentials to the wpa_supplicant file in order for this method to work and access the wifi and therefore, I prefer if there was a better way to do this.
Update - I have an ethernet port that can be used to connect to the Internet. I tried to connect this to the remaining port of the switch, but I could not access the Internet.
UPDATE with info from a comments:
My setup is at a university and I use university wifi to access the Internet with my laptop. I have an ethernet port available to connect to the Internet as well.
I actually tried connecting the ethernet port to the remaining port in the switch. But I was not successful. Is there something I need configure in order for it to work?