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
0 votes
1 answer
2k views

Where is my /etc/dhcpcd.conf file?

I am running Linux mop-raspberrypi-01 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux and all tutorials for setting a static IP address for the Pi mention editing /etc/dhcpcd....
1 vote
2 answers
1k views

Wlan0 not able to ping router, but connected to router according to it

My Pi running Raspbian Stretch stopped being reachable via ssh, so I connected a screen to debug why, after turning it off and on again. The GUI was all changed with the annoying message that says ...
1 vote
0 answers
26 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 ...
2 votes
2 answers
374 views

Wifi connects but no internet access on Raspberry Pi 4

I can connect my Raspberry Pi 4 to my wifi, but I can't seem to access the internet. I can ping machines on the network, and I can ping (and even VNC into) the Pi from network machines. However, I can'...
0 votes
1 answer
1k views

dhclient hooks don't run automatically

I am trying to make Raspbian execute a bash script every time its IP changes. I placed my script in /etc/dhcp/dhclient-exit-hooks.d but it does not execute after a reboot. It does execute if I ...
0 votes
1 answer
1k views

Linking two interfaces on same subnet using dnsmasq

I'm trying to configure my RPi to give me access to devices conencted either of eth0 or wlan1. Desired function is this: User connects to RPi AP via wlan1 and is given an IP Separate device connects ...
1 vote
1 answer
828 views

Wireless hotspot not working: no wireless interfaces found

Im trying to create A wireless hotspot with my Raspberry Pi 2 Model B+ using a RT5370 Ralink Wifi adapter. Im following this tutorial: https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-...
1 vote
1 answer
694 views

Cloned Jessie image fails to acquire a dhcp address

I have a very nasty issue with Jessie :-( Background: I wrote a tool called raspiBackup which backups and restores a Raspberry and because it works fine for me and helped me multiple times to recover ...
0 votes
1 answer
42 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 ...
2 votes
2 answers
6k views

PiHole Not Resolving Local DNS Entries for clients with static IPs

I have a Raspberry Pi 2 running Pi Hole 5.2.2 and Cisco Linksys E2000 router running DD-WRT v24-sp2 (08/12/10) std-usb-ftp I want to be able to have PiHole resolve a DNS entry such as MyDevice to an ...
0 votes
1 answer
2k views

"Could not resolve hostname" on Pi for local services

My Pi cannot resolve hostnames of other services in the same local network. Resolution of external services works fine. $ nslookup example.com Server: 127.0.0.1 Address: 127.0.0.1#53 Non-...
0 votes
1 answer
30 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 ...
0 votes
1 answer
146 views

Problem in connecting my Arch linux to My raspberry Pi (raspbian)

I am having problems connecting my Arch to Raspberry Pi 3 via ethernet. I am having Realtek r8169. Though internet is working but when I connect it to my Raspberry Pi, it shows wire connecting The ...
3 votes
1 answer
450 views

Networking with Raspbian 10 Buster

I am following a tutorial for using a Raspberry Pi to create a MAC address sniffer. The tutorial recommends the following commands are entered into the etc/network/interfaces file: allow-hotplug ...
0 votes
1 answer
113 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....
1 vote
1 answer
553 views

How to change Client Name of Raspberry from "Unkown" in AP's DHCP List?

OS: Linux MyDesiredName 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux on Raspbian Buster Lite. Whenever I set my Raspberry to get a DHCP IP and I go to my AP's DHCP List, ...
0 votes
1 answer
273 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 ...
0 votes
1 answer
2k views

Why the message "raspberrypi dhclient: send_packet: Network is unreachable"?

I am having a raspberry pi jessie OS. I configured it as ethernet to ethernet router. eth0 is connected to a modem and eth1 is actually a usb to eth converter. Rpi get internet through the eth0 ...
1 vote
1 answer
206 views

PINN no internet connection after hard reset

I have recently installed and configured a new server on my raspberry pi 3B. I used PINN as my bootloader and installed some OSes (Fedberry - an Raspberry Fedora implementation - being the main one). ...
1 vote
1 answer
756 views

cant connect to server after configuring static IP

I'm able to connect to the local server when static IP is not set, however, as soon as I set a static IP on eth0 then I'm no longer able to reach the server by name. When I was configuring my static ...
0 votes
2 answers
2k 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 ...
0 votes
2 answers
406 views

Need Two IPs (using wlan0 interface) but do not have any control over static allocations

Brief: In a previous question I asked whether multiple IPs can be assigned via DHCP and reserved by a single Raspberry Pi. The accepted answer demonstrates how to achieve this by setting up virtual ...
2 votes
2 answers
396 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 ...
0 votes
0 answers
13 views

Share wireless internet from RPI4 to RPI0 over usb without changing the routed access point

I'm trying to use a RPI4 as a routed access point so that I can use a USB wifi dongle to connect with my laptop or other devices. I have this part complete by following the RPI documentation. Next I ...
1 vote
2 answers
81 views

cannot connect to the internet - stretch

I am trying to get my pi 3B+ (stretch) back online but it does not work anymore. it was working until last week. plugging a windows PC on the same ethernet plug and using the same settings works. I ...
0 votes
1 answer
32 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 ...
1 vote
2 answers
552 views

Where is static IP setting?

A couple of years back I set up static IP in my Raspberry pi running Raspbian Stretch. Now I forgot and not able to find where I did that setup. I tried sudo nano /etc/dhcpcd.conf but it has only eth0 ...
0 votes
1 answer
111 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 ...
0 votes
1 answer
176 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 ...
1 vote
1 answer
531 views

Assigning IP to eth0 device using Pi already set up as a wireless access point

I have followed the tutorial at https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md and successfuly turned my pi into a standalone wireless access point to control my ...
4 votes
3 answers
1k views

huge syslog filled with dhcpcd lines

I have a pi that is defined wi static IP in /etc/dhcpcd.conf: interface eth0 inform 4.3.2.77 static routers=4.3.2.1 everything worked great until lately once a day I had to restart it because it was ...
0 votes
1 answer
33 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 ...
8 votes
2 answers
22k views

Forcing DHCP to release and renew and use a reservation?

I am able to ssh into my new RPi. One of the things I like to do to my infrastructure devices is to go ahead and convert their DHCP assignment to a reservation. My router is a CradlePoint Firmware ...
5 votes
2 answers
5k views

How to have fallback to dynamic IP when static IP fails?

I have a headless raspberry pi zero. It is configured to be connected to home network and my mobile hotspot (Android phone). When I am home, I would like it to get a static IP, where I know I can ...
-1 votes
1 answer
231 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 ...
0 votes
0 answers
16 views

Cannot Change wlan0 range in udhcp, reverts after booting

I have a Pi running as a Pihole and DHCP server for my home network. This Pi is product from a small company and it ships with OS installed and setup already done. I've contacted them and waiting.... ...
6 votes
3 answers
15k views

isc-dhcp-server needs to be restarted after reboot

I'm having an issue with isc-dhcp-server. When I reboot I can see that it loads because it says "Starting LSB: DHCP server ...". However when trying to connect a PXE node to the server it does not ...
0 votes
0 answers
32 views

rpi shows 2 IPs - both old and new one

I have a rpi 3b+ on which i have installed pihole, pivpn(wireguard), xrdp and vnc. rpi IP was initially 192.168.0.187. I had trouble connection remote from another network (not all of them) to my home ...
0 votes
0 answers
151 views

ARP proxy: DHCP relay not forwarding offers

I am trying to use a Raspberry 3B+ (running the image 2022-01-28-raspios-bullseye-arm64-lite) to transparently 'bridge' traffic coming on eth0 to the Wifi interface (wlan0), all on the same subnet. ...
-1 votes
1 answer
93 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 ...
0 votes
0 answers
28 views

RPi 4 - route internet from android to LAN

i am trying to do a "router" from Raspberry Pi 4 2GB Model. Rpi all is set, working, installed updates etc. Pi will run standard Raspbian Bullseye (newest OS), with Pihole and other software....
0 votes
0 answers
51 views

Retrieve the Raspberry Pi serial over DHCP using dnsmasq

I am trying to use a dnsmasq hook script to automatically provision NFS shares for netbooting Raspberry PI CM4 modules in a MicroK8s cluster but cannot get hold of the the Raspberry PI serial sent ...
-1 votes
2 answers
301 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 ...
0 votes
0 answers
112 views

Raspberry Pi 4 loses IP address on eth0 after changing time zone

Recently, I noticed that various docker containers running on my Pi would become unreachable after a while (around 24 hours). The only thing that solved it would be to reboot the Pi. When ssh'ing into ...
-2 votes
2 answers
93 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 ...
0 votes
1 answer
155 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. ...
0 votes
2 answers
592 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 ...
2 votes
1 answer
5k views

avoid dnsmasq to run at boot

I have dnsmasq installed to make my Pi 3 with Raspbian GNU/Linux 8.0 (jessie) into an AP (accesspoint). I want to be able to switch between AP mode and client mode. This all works fine, but when I ...
1 vote
2 answers
271 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 ...
-1 votes
1 answer
160 views

SSHing via direct ethernet connection to mac over LAN (no internet connection)

I'm working a project that requires the raspberry pi to be portable, and accessible via SSH (headless setup) in places where there is no internet connection (such as on the top of a hill with no ...

1
2 3 4 5
7