0

Right now I'm sshed to my rpi via wifi, however I would like my pi to use the direct ethernet connection to connect to the internet. I was wondering how I would go about doing this...

  • Just unplug the WiFi dongle and connect an ethernet cable instead. – user236012 Aug 25 '16 at 11:31
  • i should mention this is a pi3. – Zypps987 Aug 25 '16 at 11:45
  • Then disable wifi and connect ethernet cable. Adapt /etc/network/interfaces to your needs. – user236012 Aug 25 '16 at 12:01
  • Is it possible to stay connected via wifi + ssh and have the pi3 use the internet with ethernet? – Zypps987 Aug 25 '16 at 12:02
  • That's a routing problem. If the default traffic from RPi should go over ethernet, you should set that as default gateway. see superuser.com/questions/331720/… or askubuntu.com/questions/263572/…. But generally not related to raspberry pi. – user236012 Aug 25 '16 at 12:08
1

Have you considered using the %interface scheme in SSH ?

You can do something like ssh -l pi 192.168.50.1%eth0 I think it should work.

You are essentially telling which interface should you ssh into via the %eth0 I tend to use it on my PC.

I have wlan0 configured in ad-hoc mode and everytime I need to SSH into pis over the same interface I use:

ssh -l pi IPv6LLaddress%wlan0

It should work for IPv4 too.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.