340 votes
Accepted

How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?

Raspberry Pi OS Bookworm uses Network Manager by default so this Answer is no longer current. This tutorial describes how to setup networking using the default network manager dhcpcd included in ...
Milliways's user avatar
  • 58.7k
108 votes

How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?

Raspberry Pi OS Bookworm uses Network Manager by default so this Answer is no longer current. This tutorial describes how to setup networking using the default network manager dhcpcd included in ...
Milliways's user avatar
  • 58.7k
51 votes

How to setup multiple WiFi networks?

With Raspbian Jessie release, you don't have to edit the interface file. Just updating the /etc/wpa_supplicant/wpa_supplicant.conf file with multiple networks would suffice. Here's how it looks - ...
giri-sh's user avatar
  • 777
41 votes

How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?

For a static IP address on an Ethernet connection: sudo nano /etc/dhcpcd.conf Type in the following lines on the top of the file: interface eth0 static ip_address=192.168.1.XX/24 static routers=192....
Danica Panica's user avatar
14 votes

How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?

Short and foolproof method how to do this with: Raspbian Jessie, Stretch, Buster This will set a fixed IP and enable the ssh daemon: Stick the sd card in your pc and find that it has two ...
MadMike's user avatar
  • 593
10 votes

How to setup multiple WiFi networks?

It's April, 2022, and this question of "How to setup multiple WiFi networks?" now has a straightforward answer: If you use multiple WiFi networks in different locations, all that is needed ...
Seamus's user avatar
  • 21.2k
9 votes
Accepted

Does dhcpcd prevent a remote DHCP server serving an IP address that is declared static?

From RFC2131: DHCP supports three mechanisms for IP address allocation. In "automatic allocation", DHCP assigns a permanent IP address to a client. In "dynamic allocation", DHCP ...
Seamus's user avatar
  • 21.2k
8 votes
Accepted

Static IP adddress on Raspbian not using dhcp service at all

I'm still not fully up with systemd, however if you run sudo service networking status Do you get a message like Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended. I did ...
Jaromanda X's user avatar
  • 2,382
7 votes

Set multiple static ip in dhcpcd.conf - Raspbian 8 (jessie)

Although it is said that /etc/network/interfaces is deprecated (read it everywhere online) so far the only way I have been able to make it work is in fact through /etc/network/interfaces. The ...
F. Pareto's user avatar
  • 191
6 votes
Accepted

Raspberry Pi IP keeps changing when directly connected to Mac

You can easily connect from OS X with ssh [email protected] (the default hostname is raspberrypi). This works without a conventional IP address (it uses link-local address). If you are directly ...
Milliways's user avatar
  • 58.7k
6 votes

Does dhcpcd prevent a remote DHCP server serving an IP address that is declared static?

For my understanding "will not attempt to obtain a lease" means the DHCP server will never get a request for an ip address from this client so it means 192.168.0.10 is free and will give it to another ...
goldilocks's user avatar
  • 58.5k
5 votes

Set static IP and stop DHCP on Jessie Lite

Setting a fixed IP address on a recent Jessie is easy: nano /etc/dhcpcd.conf and add at the bottom (i.e. below nohook lookup-hostname): interface eth0 static ip_address=192.168.1.10/24 static ...
kay_D's user avatar
  • 151
5 votes

Cannot resolve hostnames

You have not defined a DNS-server. You have to manually define that when you are setting a static IP in the /etc/network/interfaces file. If you instead have used to router (or DHCP-server) to assign ...
Orphans's user avatar
  • 242
5 votes
Accepted

Configure DHCP server on RPi with no Internet connection

Your dhcpd.conf has this option routers 192.168.42.1 line. In human language that line tells to the clients: If you need to reach computers outside of the 192.168.42.X network, simply send your IP ...
Dmitry Grigoryev's user avatar
5 votes

How do I configure dhcpcd to call wpa_supplicant for a specific interface?

I solved this by using the interface-specific unit (/lib/systemd/system/[email protected]), with an interface-specific dhcpcd.conf. For wlan0, static IP address and no wpa_supplicant: /etc/dhcpcd-...
Bridgey's user avatar
  • 223
5 votes

How to configure pi for wifi at home using static IP and wifi at other location using dhcp?

I'm answering a bit late I think but a solution exists, and I think it's worth mentioning it. For each interface, it's possible in dhcpcd.conf to specify an SSID for which the configuration below ...
Resethel's user avatar
5 votes
Accepted

How to set a different static IP on many Pis simultaneously

Haven't read the discussion on the chat complete (to much for scanning) but I suppose you create a master image and copy it over to your RasPis. you say: Ideally I want to be able to make changes ...
Ingo's user avatar
  • 41.9k
5 votes
Accepted

How to connect a ethernet device(having its own static I.p and netmask) wirelessly by my laptop?

It is a bit unclear how do you want to connect the Laptop to the Raspberry Pi. I will assume that there is no other wifi router as access point running for example to connect to the internet so you ...
Ingo's user avatar
  • 41.9k
4 votes

Where does my secondary IP come from?

Edit /etc/dhcpcd.conf This happened to me too (albiet on Raspbian). If you'd rather not totally disable the dhcpcd service, you can add this to /etc/dhcpcd.conf to inform it of your static interface: ...
Hydraxan14's user avatar
  • 1,806
4 votes

How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?

First thing you should do is make your Raspberry pi's IP static. So that whenever you power up your Raspberry pi it should connect to your access point(Hotspot). Connect to your Access point. Type ...
SMshrimant's user avatar
4 votes

How to connect and use ssh without a screen using BUILDROOT

If all you did was make raspberrypi_defconfig && make, then you still have a lot of work to do in order to get a useful running system. The default configuration of BuildRoot is for ...
David Yaw's user avatar
  • 181
4 votes

Static vs Dynamic IP for Pi

I always recommend setting a static IP in your home router. Setting a static IP in the OS will bite you in the rear end at some point in time. Installing Samba/Avahi to adress your pi via its ...
Havnar's user avatar
  • 1,617
4 votes

Using Raspberry Pi as Wireless Access Point means I cannot SSH to it

Try assigning an IP address to the bridge interface (e.g. br0),
bobstro's user avatar
  • 3,988
4 votes

static ip disable external internet

If: static ip_address=192.168.101.46/24 static routers=192.168.1.1 Your router subnet is incorrect for your device because the subnet mask says your devices network is 192.168.101 and your router ...
ghosts's user avatar
  • 71
4 votes
Accepted

Setting a Static IP from Boot Drive (headless static IP)

Normally I advise against static IP addresses, but an isolated network is one of the few valid use cases. You can connect to the Pi over a direct Ethernet link to the Pi (not via a switch or router) ...
Milliways's user avatar
  • 58.7k
4 votes

Setting a Static IP from Boot Drive (headless static IP)

SD card for raspibian OS has two partitions /boot and /rootfs. Using SD card reader, I mounted the partitions onto my system with ubuntu OS. For setting up static IP address edit the file dhcpcd.conf ...
SPT's user avatar
  • 41
4 votes

Does dhcpcd prevent a remote DHCP server serving an IP address that is declared static?

The static IP configuration for dhcpcd is often used as a fallback setting so that a system is always guaranteed of having an IP address to connect to. As you correctly guessed, static settings do not ...
ErikF's user avatar
  • 166
4 votes

Static IP Issues For wlan0 and eth0

I wanted to update this with what I found to work in case any lost and weary Googlers are running into this issue. Thanks to @Ingo for the link references metrics. I had no luck in adjusting the ...
Justin's user avatar
  • 89
4 votes

How to set up a static ip in a Raspberry pi which is connected via mobile data?

I don't see a usable possibility to have a static ip address with a mobile internet connection. The mobile device must give the RasPi a default route with its gateway. The gateway isn't static so you ...
Ingo's user avatar
  • 41.9k

Only top scored, non community-wiki answers of a minimum length are eligible