I have an Internet problem when I connect my Raspberry Pi 3 with Ethernet cable to my laptop in order not to work with a screen.
I have the Raspberry Pi 3 connected by Ethernet cable via SSH connection to my laptop. I have to do this instead of using WiFi or any other way because I am with my Thesis at the University and the connection at the University is so complex we cannot use any other way. The problem comes when we need to use Internet in the RPi in order to download any libraries or whatever, because we can´t use Internet. How could I get Internet to the RPi?
Could anyone help me with this?
We changed the config with:
Code: Select all
sudo nano /etc/dhcpcd.conf
Code: Select all
Interface eth0
static ip_address=192.168.137.2
static routers=192.168.137.1
static domain_name_servers=192.168.137.1
Code: Select all
sudo nano /etc/network/interfaces
iface eth0 inet static
address 192.168.137.2
netmask 255.255.255.0
gateway 192.168.137.1
Thank you.