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...

asked Aug 25, 2016 at 11:19
5
  • Just unplug the WiFi dongle and connect an ethernet cable instead. Commented Aug 25, 2016 at 11:31
  • i should mention this is a pi3. Commented Aug 25, 2016 at 11:45
  • Then disable wifi and connect ethernet cable. Adapt /etc/network/interfaces to your needs. Commented Aug 25, 2016 at 12:01
  • Is it possible to stay connected via wifi + ssh and have the pi3 use the internet with ethernet? Commented Aug 25, 2016 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. Commented Aug 25, 2016 at 12:08

1 Answer 1

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.

answered Aug 25, 2016 at 12:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.