1

I am trying to figure out how to make my Raspberry Pi 2 B only have one IP address no matter whether it is connected by cable or over a USB WiFi dongle. When I connect the cable I get a different IP from the USB. This is a problem because I am moving my Pi around connecting it to different cables and then the dongle around my house. I am accessing it over SSH so I can't just hostname -I and find the IP. Thanks for any help.

  • 2
    You want to use a static IP address, if your router will let you. Exactly how to do this may depend a little on what OS distribution you are using. – goldilocks Oct 2 '15 at 17:25
  • 2
    Adding to @goldilocks... In your router setup it might be called "DHCP reservation" or similar, even otherwise lousy routers usually have it anymore. Reservations are keyed to the MAC address which is likely different on wired vs wifi, hopefully the router will allow you to enter multiple MAC addresses all pointed to the same IP. If that's not possible you will have to configure a static ip on the pi, and likewise with the same IP for wifi or wired connection. – Tyson Oct 2 '15 at 21:24

Your Answer

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

Browse other questions tagged or ask your own question.