Questions tagged [dhcp]

the Dynamic Host Configuration Protocol (DHCP) is a network protocol that automatically configures clients (or hosts) on the network, such as IP addresses and networking parameters. Questiosn include the Pi acting as a DHCP server or client.

Filter by
Sorted by
Tagged with
1 vote
3 answers
604 views

How to set up a Static IP on Raspberry Pi 5 with Raspbian - dhcpcd.conf missing

I am trying to set up a static IP lease on Raspberry Pi 5. The /etc/dhcpcd.conf file does not exist and dhcpcd is not installed. Following the latest guides does not work. I ideally don't need to use ...
Joe Moore's user avatar
  • 121
1 vote
1 answer
33 views

Pi as AP is not handing out IPs via DHCP

I am running Kali on Pi 4B (their 32bit Pi distribution, v2023.3), attempting to set up the device to function as an Access Point. However I am running into a problem. I have attempted to follow the ...
ExecutionByFork's user avatar
0 votes
1 answer
258 views

Troubleshooting "Failed to start dhcpcd.service on all interfaces" - Buster on Raspberry Pi 3

We have been testing "PiSignage", an opensource digital signage solution, on a Raspberry Pi 3 running Buster. We have a webserver that is hosting a webpage we intended on using as an "...
DOSed_And_Confused's user avatar
0 votes
2 answers
107 views

Successfully get's DHCP IP, but cannot ping or be pingged by gate way

Fresh Rasberry Pi 4 with Pi OS Lite (64bit) successfully get's an IPv4 leased from the DHCP server, however it cannot ping or be pinged by the DHCP server itself let alone any other device which isn't ...
Ajani Bilby's user avatar
0 votes
1 answer
107 views

Running pihole as a DHCP server stops working after a while

I'm running pi-hole in a Proxmox container. I followed this tutorial. https://www.youtube.com/watch?v=FnFtWsZ8IP0&t=718s&ab_channel=CraftComputing In it I set custom DNS in PiHole - 127.0.0.1#...
kali home's user avatar
0 votes
1 answer
81 views

Disable USB until boot is complete

TLDR; I want to disable the USB hub on a RPi4 until boot is complete. Hi, I am trying to solve a problem that I have not seen posted about. I have a RPi4 with multiple RPiZs plugged into it acting as ...
Rusty's user avatar
  • 152
0 votes
0 answers
154 views

Pi hole and independent wifi access point

I'm currently using pihole also as DHCP server (i.e. I deactivated DHCP server on my router and let my pi serving IPs). My pi is connected solely via ethernet (I disabled wifi via /boot/config.txt). ...
MaPo's user avatar
  • 103
2 votes
0 answers
60 views

Unable to connect to pi 4 Ad-Hoc network

I've been trying to create an ad hoc server using a Raspberry Pi 4 running Raspbian GNU Linux 11 (Buster) following this forum post. I've modified it slightly to make it simpler, rather than any ...
lundbrundt's user avatar
1 vote
2 answers
48 views

Is rc.local the best place to add a pon start and network routing change?

I've followed this guide to get a 4G hat networked with my pi zero, and everything seems fine. I'm able to ping out once pon has started in the background and a route has been added. What I want is ...
Harry Lincoln's user avatar
-1 votes
1 answer
76 views

Connect to open WiFi manually without the use of dhcpcd or NetworkManager

How can I connect my RPi to my open WiFi ("FreeHotspot") without the use of dhcpcd or NetworkManager? I tried using python library wifi but without any success.
Gouz's user avatar
  • 115
-1 votes
1 answer
611 views

IPv4 link-local address with NetworkManager

I have a Raspberry Pi 4 that is running Buster/32bit (upgrading the OS is currently not an option). The Raspberry Pi runs in headless mode, with ssh and vnc enabled. In order to find the machine in ...
umläute's user avatar
0 votes
1 answer
67 views

Stop Raspberry Pi automatically assigning additional IP address

I currently have a network of raspberry ip's running Buster connected to a pc on a local network with the wifi interface disabled. The pc is running a DHCP server to assign each of the pi's non-static ...
Odysseys_user's user avatar
0 votes
1 answer
458 views

Raspberry Pi 3 VLAN interface DHCP client issue

I have followed the guideline to setup VLAN interface on eth0 but failed to auto get IP address from my upstream dhcp server. I have checked tcpdump and don't see any dhcp traffic on VLAN interfaces. ...
ce13's user avatar
  • 11
1 vote
1 answer
133 views

temporary failure in name resolution after replug the cable

I connect my laptop to Pi through direct cable, so that I can share wifi connection with Pi .Like this: I went to Control Panel-->Network and Internet-->Network connections, right click on Wifi ...
Smith John's user avatar
-1 votes
1 answer
261 views

How can I go back from static IP to dynamic IP?

In the past, I set a static IP to my Raspberry Pi 3. Now, I want to use it to other purpose and the subnet has changed. I don't remember how I set it to static. I have looked some questions but no one ...
Developing Electronics's user avatar
0 votes
2 answers
111 views

How do I connect my raspberry pi to its own network?

I use hostapd to create a wireless AP and I use dnsmasq to hand out ip addresses. In order for dnsmasq to work I have turned off the my dhcp client deamon dhcpcd. I do not want my network to be ...
Snakehater's user avatar
0 votes
0 answers
172 views

How to share internet from Win10 laptop with PiZero (no WiFi) headlessly using USB cable?

I am trying to share internet using USB cable to Raspberry Pi Zero (without WiFi module). I have used the latest documentation and advices but no matter what approach I attempt, PiZero cannot ping any ...
gofraidh's user avatar
  • 101
1 vote
0 answers
335 views

DHCP-Hooks not running on start up

I have a small usb-over-ethernet network of RPiZs connected to a single RPi4. I am accessing the zeros through an ethernet connection on the RPi4, so they need to send packets going to my laptop ...
Rusty's user avatar
  • 152
0 votes
1 answer
308 views

Use rpi for local only intranet

We're going on a trip, and I want to set up a car only lan so that the kids can play games together on their tablets or maybe access a media shared volume. There won't be any internet access. Is this ...
AndyD273's user avatar
  • 105
0 votes
1 answer
50 views

unable to connect to internet

I am using pi as my main system. for sometime, i had to start dhclient manully to connect to the internet, to fix this, when i searched on internet, i came to know that i have both dhcpcd and dhclient ...
Vaisakh K M's user avatar
5 votes
3 answers
4k views

dhcpcd.conf inform vs static ip vs request. How should you REALLY setup a static IP?

I am trying to setup static IPs on my 5 raspberry PIs and there is no clear answer as to which configuration to choose and why. As per a comment on one of the answers to this question How do I set up ...
Salvador Martinez's user avatar
0 votes
1 answer
126 views

Check last time internet connection was made

I would like to know the last time my Raspberry Pi Zero (1.7W) was connected to the internet. OS: Raspberry Pi OS Lite, Kernel version: 5.15 & Debian version: 11 (bullseye) There was a similar ...
Beaker's user avatar
  • 37
0 votes
1 answer
218 views

I want to make a dhcp server on the raspberry pi however it seems to not work while I have the dhcp client running

When I use both the rpi dhcp client to get static IPs or dhcp IPs for my interfaces and then use that information for a dhcp server , I get a ton of errors when checking the status . The only semi ...
Zak A's user avatar
  • 9
0 votes
1 answer
824 views

IP Address keep changing even though I give it a static IP

The Pi boots up to the desired static ip(10.220.55.114), but after a day it changes to 10.220.51.116( a different subnet ) sudo vi /etc/dhcpcd.conf # It is possible to fall back to a static IP if DHCP ...
jdl's user avatar
  • 109
1 vote
2 answers
1k views

Pihole still making DHCP leases for hosts which have a static DHCP lease

I have some hosts on my network that I want to always have the same IP address therefore I set them up under the static DHCP lease section within the pihole configuration. I then delete the existing ...
dalanmiller's user avatar
1 vote
1 answer
1k views

No DHCP response with USB ethernet

I'm using a usb to ethernet with my Raspberry Zero W but it doesn't get any IP (usb0 interface): rogermiranda1000@raspberrypi:~ $ ifconfig lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 ...
Roger Miranda Perez's user avatar
-1 votes
2 answers
2k views

SSH into Raspberry Pi connected to Linux Laptop via Ethernet cable

How do I SSH into my Rasperry Pi which is directly connected to my Linux Laptop via an Ethernet cable? As far as my research went, it does not get assigned an IP, which is the reason why I can not ...
weisbrja's user avatar
-1 votes
1 answer
304 views

Semicolon required in /etc/dhcp/dhclient.conf

Strange error occurs when I do either ifdown wlan0 or ifup wlan0: # ifdown wlan0 Internet Systems Consortium DHCP Client 4.3.1 Copyright 2004-2014 Internet Systems Consortium. All rights reserved. For ...
Dims's user avatar
  • 175
-2 votes
2 answers
146 views

How do you set a static IP that is already leased to someone else by DHCP? [closed]

Summary I am on a network with many devices. When I use /etc/dhcpcd.conf to set a static IP address that is currently available (not leased by the DHCP server), it works just fine. However, when I try ...
nullromo's user avatar
0 votes
2 answers
2k views

Override dhcpcd.conf from SD card

I attempted to set up a static ip in dhcpcd.conf, but it appears I made a mistake somewhere, as the Pi does not appear on the network anymore. I have no monitors or keyboards, and ssh was my only ...
pythonian 23's user avatar
0 votes
1 answer
568 views

Connection to WiFi when it shows up - DHCP timeout?

We switch off WiFi an a raspberry over night. In the morning both is switched on together. Unfortunately the pi starts faster than the access point and therefore the pi could not connect to a wifi. ...
Martin's user avatar
  • 1
-1 votes
1 answer
432 views

Where to set Static IP when running ISC DHCP Server

I've set up a standard ISC DHCP server on my Pi4 running 5.10.52-v7l+ of Pi OS. I'd initially had my static IP set in my /etc/network/interfaces file and that worked ok but I couldn't get WiFi working ...
Ian C's user avatar
  • 1
1 vote
2 answers
636 views

Unable to make raspberry pi publicly accessible

This is my first time playing with the DNS and the internet. I want to make my RasPi publicly accessible. I followed the below steps: Set up the apache2 server, and access it locally from home ...
DaSnipeKid's user avatar
0 votes
0 answers
523 views

Wifi access point "Authentication problem" "password may be incorrect"

I just mixed these 3 tutorials (first that one : https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/ , then these to fix problems : https://learn.pi-supply.com/make/how-to-setup-...
user139761's user avatar
1 vote
2 answers
7k views

Using DHCPCD with static ip address and routes

Friends, I'm attempting to position Pi CM4-based devices on a collection of remote LANs and to connect them to my VPN. Each is configured with a static IP. I'm having problems, in some locations but ...
ArtB's user avatar
  • 21
0 votes
0 answers
45 views

How to assign Eth0 IP from external DHCP server to Raspberry Pi4?

I am trying to assign IP address for Eth0 from my router which has DHCP. I have connected my Pi4 with the router. But the IP is not assigned. How can I solve this issue?
Thillai Nayagam's user avatar
0 votes
1 answer
42 views

Network Resillience Options

I didn't see an obvious post, I want to put up the question here before rolling my own solution / help others. I have a rpi at a remote location that suffers frequent power outages triggering a race-...
NJL's user avatar
  • 13
-1 votes
1 answer
278 views

Why DHCP logs are missing in dnsmasq-Raspberry Pi-Unifi-esp8266?

I have a network made of Rpi, ubiquities, and esp8266. Raspberry pi is configured as the eth0 to eth1 router. Eth1 is made using a USB to ethernet converter. The Main ubiquiti is connected to the eth1 ...
vishnu m c's user avatar
-1 votes
1 answer
519 views

Pi refusing to connect to internet/IP 169.254.x.y is always appearing when connecting to my PC through ethernet

So as the title says, I've been trying to share the internet from my pc to my pi, running the pi headless and remotely connecting to it and whatsoever. However, whilst I can just do a remote ...
Thanos's user avatar
  • 89
-1 votes
1 answer
74 views

How do i choose a correct static ip4 adress in dhcpcd?

So i wanted to set a permanent connection with my ethernet cable in the /etc/dhcpcd.conf file, and i wrote this: interface eth0 static ip_address=192.168.2.10/24 static_routers=192.168.0.1 I choose ...
Werlon's user avatar
  • 1
-1 votes
1 answer
87 views

Raspbia, after a reboot, wifi is only working if a ethernet cable is attached

my problem is that my wifi is only getting an IP address if ethernet cable is also plugged in. I have checked many sides, but the solution below is not working. (funny thing, I have reinstalled this ...
1v4n's user avatar
  • 1
0 votes
0 answers
233 views

RPi wlan0 eth0 bridge, how to debug DHCP issues?

I followed this tutorial to set my RPi 4B up. In my basement, I have my RPi connected via cable and want to bridge a new WiFi AP (as in the last part of that post above). The first time, everything ...
user2084865's user avatar
1 vote
1 answer
180 views

PXE Boot, how to make it default to pxelinux.cfg/default?

I am transitioning a Centos Mini PC acting as a kickstart server to a freed up Pi4b. I am running Raspberry OS 10. The problem I have is it is trying to boot the MAC address sequence under pxelinux....
roadglide03's user avatar
0 votes
0 answers
349 views

How do I configure Ethernet on Raspbian 10 (buster)?

Updated with more diagnostics: I have a Rpi3b with Raspbian 10 (buster), installed from an openplotter headless image (https://openplotter.readthedocs.io/en/latest/getting_started/downloading.html). ...
SjurK's user avatar
  • 1
0 votes
0 answers
144 views

Raspberry Pi Zero with WLAN Dongle, set up standalone AP and switch to Wifi Client

For a current project, I want to set up a standalone Blynk-Server on my Raspberry Pi Zero (version without inbuilt WLAN). I am using an EDIMAX Wifi Dongle EW-7811Un V2 and was able to set up the ...
Maximilian Sgodda's user avatar
0 votes
0 answers
2k views

How to reset RaspberryPi network configuration to default

I've been cloning RPI images for several months and kept adding stuff without keeping track of the changes made to the .conf files. I've messed with the network settings to a point where remote (=...
Marco Bobinger's user avatar
0 votes
1 answer
28 views

i created a wifi access point on my raspberry pi but it doesn't serve internet to clients why does this happen

I created a wireless router with RPI3 but isc-dhcp-server is not working i made changes to dhcp.conf ie uncommenting authorative and also subnet 192.168.1.3 netmask 255.255.255.0 { range 192.168.1.10 ...
Sre3edy's user avatar
1 vote
1 answer
261 views

dnsmasq, have to manually set dns after each reboot

I have a small problem, i'm using dnsmasq and NetworkManager. Every time i reboot, i check the resolv.conf file and the nameserver here is always set to 127.0.0.1 (nothing alarming here) except I ...
Searme's user avatar
  • 31
0 votes
0 answers
137 views

AccessPoint doesn't allow me to connect my device to raspberry

I am trying to configure an Wifi access point on my raspberry. I have created a virtual interface that enables my RPI (3B+) to still use wlan0 for wifi connection and "apwlan0" for ...
Searme's user avatar
  • 31
0 votes
1 answer
245 views

Pi 4 - usb0 showing RX errors

I have one Pi4 as web server. I am using a TP-Link 4G LTE Router connected via usb with my Pi. I am noticing this RX errors in ifconfig command. This is the output: eth0: flags=4099<UP,BROADCAST,...
YvetteLee's user avatar
  • 127

1
2 3 4 5
7