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
1answer
86 views

Raspberry Pi 4 - Connection to dhcpcd lost

I was trying to set up an ad-hoc network on my Raspberry Pi 4 and now the WiFi is not working. If I try to run ifconfig there is no wlan0 interface that shows up. I have also tried to manually change ...
1
vote
1answer
67 views

How can I make dhcpcd ignore an interface?

There are two NICs eth0 and eth1 (on Raspbian buster). For eth0 DHCP is used which works fine. eth1 is supposed to be up but otherwise go untouched (NO static address since I‘m trying to setup my own ...
0
votes
1answer
48 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
0answers
38 views

“RTNETLINK answer: File exists” renew ip

I want to scrape website with my pi but first id like to know how to ask for a new ip in case i get ban. I tried with: $ sudo dhclient -r >>>Killed old client process $ sudo /etc/init.d/...
1
vote
1answer
58 views

RaspberryPi with openfortivpn

I'm using a fresh raspbian stretch SD card. Sorry if I can't get my meaning across well, I'm new to this and still learning. I'm trying to set up my Pi as a sort of VPN gateway/router. I'd love to ...
0
votes
1answer
52 views

Rasbian lite does not assign dhcp IP address

I have an issue with Rasbian lite. I downloaded the OS and installed it in a Raspberry PI Model 3B. logged in and typed the following: sudo raspi-config added wifi access point name and password ...
0
votes
0answers
77 views

Raspbian 9.9 Stretch - Network is unreachable

I have pihole(with DHCP server enabled, router DHCP server disabled) and SMB running on my raspberry pi, and my network interfaces are acting rather strange. From my raspberry pi, I can ping my router ...
1
vote
1answer
67 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
0answers
122 views

Can PiHole DHCP and a WiFI Access Point be used at the same time?

EDIT: I think it's important to note that I am using Debian Buster with the latest updates to date. I have successfully got PiHole working and have used it's DHCP function also working. It's great! ...
-1
votes
3answers
205 views

Pi as DHCP server, but getting “unknown interface eth0” with dnsmasq

I am trying to set up a Raspberian Stretch install to act as DHCP server on the ethernet port (eth0), to share the network coming from wlan0, but when I restart dnsmasq it fails and in the logs I see: ...
0
votes
0answers
80 views

No ethernet on RPi 3B+

I have 3 RPi 3B+, all exhibit the same behaviour. 2 were bought a while ago, one more recently. When starting, on lucky days, they will get an IP from DHCP. If not lucky or upon first reboot, they no ...
1
vote
1answer
23 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). ...
0
votes
1answer
100 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 ...
0
votes
0answers
56 views

dnsmasq DHCP refusing to work. NordVPN hotspot on Raspberry Pi

I'm trying to set up a NordVPN hotspot on my Raspberry Pi 3B+ so I can connect it to my smart tv and get rid of Netflix region restrictions. I have everything set up properly but still dnsmasq DHCP ...
0
votes
1answer
89 views

turn off dhcp and set static on raspbian stretch

I have been following another thread and have configured my dhcpcd.conf file . When I restart my pi it gets another ip. Can someone please tell me what I am doing wrong? # A sample configuration ...
1
vote
2answers
174 views

Configure Rpi as router - error when starting network and DHCP interfaces

I looked at several solutions for this question, but none of them worked. Additionally, I tried some of the tutorials provided (with the necessary changes), but none of them worked My aim is to use a ...
0
votes
1answer
258 views

Automated (Scripted) Configuration of Raspberry Pi Access Point

Are there any opensource scripts/repos that automate configuring a Raspberry Pi into a Wireless Access Point?
1
vote
1answer
68 views

Two dhcpcd services: systemd and init.d

I see that there is a systemd service called dhcpcd5 and an init.d script called dhcpcd. Why both ways? What are the differences and how to choose which run?
0
votes
1answer
51 views

Wireless interface removed when DHCP lease expires

I have configured the wireless interface on my Raspberry Pi 3 as follows: allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf wireless-power off iface default ...
1
vote
1answer
205 views

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

I'm trying to set up an ethernet DHCP server on a Raspberry Pi to connect one device via eth0 and give it an ip address, but I cannot for the life of me get the service to start. This won't be an ...
0
votes
1answer
33 views

Connect a RPi with an android device directly via Ethernet

For a certain project I have a very specific need to connect a Raspberry Pi with an unrooted android tablet through a UTP cable (with an adapter on the android side). Both of these devices work fine ...
1
vote
1answer
34 views

Dhcpcd config file - two wifi configs at once

I have a Raspberry Pi Zero W v 1.1, to which I don't have any way to connect display adapter, therefore I communicate with it through ssh. It is connected to one isolated wifi network(with no internet ...
1
vote
1answer
119 views

Created a Raspberry Pi 3B+ Wireless Hotspot, how can I extend the hotspot via Ethernet

I have successfully created a WiFi hotspot for my RPi 3B+ using a Hologram Nova and the embedded WiFi card on the Pi. However I realized that the ethernet interface has disappeared and cannot extend ...
1
vote
1answer
75 views

How to set up static IP addresses on wired and wireless networks?

I have been struggling to configure static IP addresses for my wired and wireless connections on my Raspberry Pi (Raspbian). If I add these lines to /etc/dhcpcd.conf then after rebooting I can ...
1
vote
1answer
182 views

wpa_supplicant + dnsmasq: Fallback to AP mode if no wifi connection

I'm trying to figure out how to configure wpa_supplicant to: First try to connect to a selection of preconfigured wifi networks as a DHCP client, and if that fails Set up a wifi access point using ...
1
vote
2answers
82 views

Utilising a Raspberry Pi as a wireless access point and a webserver

I have followed the official Raspberry Pi documentation's guide to setting up my Raspberry Pi as a wireless access point, with a shared internet connection using the bridge functionality discussed at ...
0
votes
1answer
177 views

How can I set my pi 3 up to be WiFi AND ethernet router simultaneously?

I want to use my Pi as a fully fledged wifi and ethernet router. I'll connect an external modem/phone with tethering to it and want to share that internet connection with all devices connected to the ...
1
vote
0answers
97 views

Android 9 phone gets wrong IP address from RPi access point

I configured my RPi (running Raspian Stretch Lite) as an access point to create a local private network (no connection to internet). Laptops and mobile phones connect fine to the AP and I can navigate ...
1
vote
0answers
205 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....
0
votes
0answers
52 views

I can't see any client in dnsmasq.leases

I'm using a Rpi 3 with a bridge using hostapd, dnsmasq and bridge-utils. I would like to get the IP from /var/lib/misc/dnsmasq.leases but the problem is that it shows nothing. The hotspot works fine, ...
5
votes
1answer
63 views

Multiple USB modems issue with HUB external power

When I connect 6 modems ZTE WCDMA Technologies MSM into USB hub Terminus Technology Inc. Hub everything works fine. Modems are detected as eth0, eth1, eth2, eth3, eth4, eth5 When one more modem is ...
1
vote
2answers
111 views

Network Ethernet and WiFi devices

I have device A and B. I need them networked together (see eachother on arp-scans etc). Device B has WiFi, but device A has Ethernet. Basically I just want the Pi to act like a simple router (maybe ...
1
vote
2answers
49 views

Help with bridge TCP/IP through RPi 3B+

Need help setting up comm between an Integ Jnior and our primary domain. Here's what I've done so far. I've taken RPi 3 B+ and set it up as a DHCP server broadcasting 10.1.1.1. Wlan0 on the Pi has ...
0
votes
1answer
168 views

How do I can connect to static IP eth0 through wlan0

What I want to do : Device A (PLC, static ip=100.10.10.11) | | eth0 connection | Device B (raspberry B3, Rasbian lite) | | wlan0 (wi-fi) OR USB to Network ...
1
vote
0answers
22 views

How do I prevent resolvconf to add %eth0 to an address in resolv.conf?

My raspberry runs the follwing relevant services: isc-dhcp-server bind9 radvd The message I get from isc-dhcp-server is this: Unable to set resolver from resolv.conf; startup continuing but DDNS ...
2
votes
1answer
42 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 ...
2
votes
1answer
43 views

How to configure dhcpd.conf so that the ssid appears to have an internet connection?

I have my raspberry pi configured as a hotspot with its own ssid that my iPhone can connect to. When the iPhone connects to the pi's ssid, it gives me a warning saying that "This network is not ...
0
votes
0answers
146 views

dhclient doesent renew lease after wifi drop - wpa_supplicant

i have set up /etc/network/interfaces because i need some static adresses on single interface. This causes to use dhclient instead of dhcpcd wich works fine. Now i have the problem that when i boot ...
4
votes
1answer
1k views

Unable to Reconnect WiFi on Pi 3 after Connection Drop

Question What is the current proper way to force reconnection to a WiFi access point? (Or even better: automatically reconnect after the connection is dropped?) The only way to reconnect that has ...
1
vote
1answer
195 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 ...
0
votes
0answers
80 views

DHCPREQUEST not reaching interface wlan0

I have lots of DHCP requests on my Raspberry Pi Zero that never reaches the netowrk interface. All these entries in /var/log/syslog does not reach my "tcpdump -i wlan0 port 67 or port 68". Seems they ...
1
vote
2answers
195 views

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

I have a device which is used to monitor analog sensor data(Micron optics sm130 ) with ethernet port available. Its works fine if If I connect it with my laptop using ethernet cable and by configuring ...
1
vote
1answer
162 views

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

I have a device which is used to monitor analog sensor data(Micron optics sm130 ) with ethernet port available. It has Static IP as 10.0.0.126 Netmask as 255.255.255.0 DHCP server disabled Its ...
0
votes
1answer
36 views

raspberry pi zero w TWO wi-fi connections 1)dhcp 2)static

hello I need that my Pi automatically connect to wi-fi's 1) At home (by dhcp)-easy 2) at work (static IP DNS router)-don't know how it's extrimle easy to do that on armbian by configs /etc/...
5
votes
2answers
2k views

Raspberry Pi DHCP Server: clients not getting IP addresses

I am relatively new to networking, so please bear with me. For a purely educational project, I've set up a network where the Raspberry Pi 3 running Raspbian Stretch is to function both as a router and ...
0
votes
2answers
535 views

Why does eth0 have no IP after reboot? Running dhclient -v fixes

When I reboot my Raspberry Pi, my WiFi connection works, but my eth0 interface has no ip adresss. In the gui it says "eth0: Link is up, configuring" If I run dhclient -v it will obtain an IP and the ...
0
votes
1answer
1k views

No default gateway with dhcpcd

I hope some can help me. I installed dhcpcd (to be able to use WiFi) on a custom Debian build for a Raspberry (so I can have a 64 bit OS). It seems to work all fine. The WiFi link is getting ...
0
votes
1answer
77 views

Devices connected to raspi router are not lan visible

I have recently setup a RPi0W as a means to connect my Echo Dot to my University's WPA-Enterprise network (MSCHAPv2). I was successful in doing so following this Wifi Repeater Guide and modifying the ...
22
votes
2answers
6k views

Why does my Pi always have the same IP address?

My router uses DHCP, and whenever I reformat my raspberry pi, even when using a different microSD card, it always has the same LAN ip. I'm not quite sure how IPs are assigned, but I assume the device ...
0
votes
0answers
72 views

How to assign IPs so that clients on wlan0 and eth0 are on the same network

I have followed this guide: https://cdn-learn.adafruit.com/downloads/pdf/setting-up-a-raspberry-pi-as-a-wifi-access-point.pdf to create a wireless router on my Raspberry Pi. This works perfectly. I ...