Hot answers tagged

36 votes
Accepted

Why does my Pi always have the same IP address?

Your Raspberry Pi has a unique ID, called a MAC address, actually two to be precise. Each network adapter has one of those. So the Wi-Fi adapter has one unique ID and the Ethernet adapter does. And ...
user avatar
  • 464
20 votes

Why does my Pi always have the same IP address?

In addition to the already given answers I will give some additional background information. In general the DHCP protocol is made to reduce dynamic changes as much as possible. It is an aspect of ...
user avatar
  • 39.9k
13 votes
Accepted

Make permanent change in the routing table

Is there a way to automatize this process so I won't have to manually do it every time I turn on the Raspberry? That's not needed if question #2 can be solved - and it can... Is there a way to ...
user avatar
9 votes

isc-dhcp-server needs to be restarted after reboot

The reason why the ISC DHCPv4 server service fails is that at the time it is started the network interface configuration might not have been finished. As systemd cannot know when a service really has ...
user avatar
  • 1,531
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 ...
user avatar
  • 18.2k
8 votes
Accepted

Disabling DHCP Server

You need to disable the DHCP Server so that it doesn't run on startup. I don't have a box handy at the moment, but this command should do what you need it to do sudo update-rc.d isc-dhcp-server ...
user avatar
  • 2,632
8 votes
Accepted

Where does my secondary IP come from?

This helped for me: update-rc.d dhcpcd disable service dhcpcd stop ip addr del %YOURS-SECOND-IP% dev ethX And when you start raspberry pi again, scope global secondary will disappear.
user avatar
  • 196
8 votes
Accepted

Multiple IP addresses being assigned

I had this same issue. I assume you are using 2015-05-05 build of Rasbian. In this build, the static IP is set in /etc/dhcpcd.conf. You should: Revert your changes in /etc/network/interfaces back ...
user avatar
  • 96
8 votes

Proper way to prevent dnsmasq from overwriting DNS server list supplied by DHCP?

It appears that the /etc/init.d/dnsmasq script will automatically add the local machine as a resolver unless the lo adapter is explicitly disabled... start_resolvconf() { # If interface "lo" is ...
user avatar
  • 270
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 ...
user avatar
  • 2,039
7 votes
Accepted

How to manually install dhcpcd?

Do sudo apt-get install dhcpcd5
user avatar
  • 401
7 votes
Accepted

Can I identify my PI by domain name in a LAN?

Unless you disable it (i.e. by default), Raspbian is running a service called Avahi which responds to mDNS requests in your local network. By default machines are configured to appear in .local ...
user avatar
  • 4,234
7 votes

disable dhcpcd.service for static ip?

Although this question is a year old, it popped up in my Google search results, after I acquired a Raspberry Pi 4. I don't believe the other answers addressed the question, even though their results ...
user avatar
  • 171
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 ...
user avatar
  • 56k
6 votes
Accepted

How can I make dhcpcd ignore an interface?

See Prevent dhcpcd from configuring an interface in How to set up networking/WiFi Add denyinterfaces eth1 to the end of /etc/dhcpcd.conf (but above any other added interface lines). NOTE eth1 may ...
user avatar
  • 54.1k
5 votes

Wifi works, ssh can connect, but cannot connect out to the internet, cannot ping internal machines

I found my answer here: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=31238 Basically, it suggests you try this to "see where the internet connections stops": traceroute www....
user avatar
  • 276
5 votes

isc-dhcp-server install and run problem

You need to have INTERFACES="" in defaults as it shipped! Even more - automatic update can overwrite it btw. This issue is DHCPD-dependent, not an OS-dependent. All you need is to define ALL the /etc/...
user avatar
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 ...
user avatar
  • 151
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/dhcpcd@.service), with an interface-specific dhcpcd.conf. For wlan0, static IP address and no wpa_supplicant: /etc/dhcpcd-...
user avatar
  • 183
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 ...
user avatar
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 ...
user avatar
  • 39.9k
5 votes
Accepted

Two dhcpcd services: systemd and init.d

Most popular distribution have changed its init system from old SysV to systemd including Debian and its flavor Raspbian. Scripts in /etc/init.d/ are leftover from SysV and they are all emulated by ...
user avatar
  • 39.9k
4 votes

How can I turn my RPi into DHCP server for my router?

There is no reason why the WiFi access point and the DHCP server have to run on the same host, you can have your router do the former and the RPi to the latter. I seem to be running exactly what you ...
user avatar
  • 137
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: ...
user avatar
  • 1,786
4 votes

Cannot make Pi visible on network

Depending on how your router resolves names It might be helpful to install samba and winbind (even if you're not going to use it). It provides a couple more services that your router might be ...
user avatar
4 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 ...
user avatar
4 votes
Accepted

Setting Subnet Mask with DHCPD Conf

I had a similar problem to set a Subnet Mask 255.255.254.0 for static IP 192.168.161.154 in /etc/dhcpcd.conf. How I address this is by adding /23 at the end of the static IP address, interface wlan0 ...
user avatar
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 ...
user avatar
  • 166
4 votes
Accepted

isc-dhcp-server can't bind to dhcp address

If you have dnsmasq installed you can verify with: sudo netstat -laputeno|grep 67 If it is the case: sudo systemctl disable dnsmasq sudo systemctl stop dnsmasq sudo systemctl start isc-dhcp-server ...
user avatar
  • 2,027
4 votes

huge syslog filled with dhcpcd lines

This logging mis-behavior was indeed due to a bug in the dhcpcd code. I initially dismissed this question as irrelevant, and wrote it off as an issue unrelated to use of the inform option in dhcpcd....
user avatar
  • 18.2k

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