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
22 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
58 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
50 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 ...
2
votes
1answer
31 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
71 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
92 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
33 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
41 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
18 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, ...
4
votes
0answers
37 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
81 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
41 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
104 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
8 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
38 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
35 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
61 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
433 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
85 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
46 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
92 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 ...
0
votes
1answer
125 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
30 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
1k 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
240 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
446 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
55 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 ...
21
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
52 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 ...
2
votes
1answer
92 views

Raspberry Pi: Unable to access or ping after reconnecting any device to the local network

I have a raspberry pi that is connected to the network with DHCP. When I start it, I can ping it and connect to ssh through wifi. The issue is when I diconnect the device that I am using (my pc/...
0
votes
1answer
198 views

Create an own private network (LAN/WLAN) without NAT

how can i set up an own private network with my RaspberryPi3 to connect my WLAN and LAN devices to? I don't want to have a router or AP. I want an own network where only the connected devices can talk ...
1
vote
1answer
273 views

Raspberry Pi 3B+ Ad-Hoc WiFi issue

I can't seem to connect to my Pi 3b+'s ad-hoc network. I set it up using https://github.com/simondlevy/RPiAdHocWiFi I have attempted with two windows 10 machines and an android phone. On Windows 10 ...
0
votes
1answer
4k views

Setting up a static IP address in Raspbian Stretch using the “new way” (dhcpcd.conf)

This question is in relation with the following landmark article: How do I set up networking/WiFi/static IP address? I have a raspberry PI3B+ with raspbian stretch lite (2018-10-09-raspbian-stretch-...
1
vote
2answers
385 views

Lan and Wifi interfaces behave strangely when trying to set a static IP

I'm using an RPI3B+ to learn about dhcp servers. I've hit a snag I can't figure out. Please bear with me. I want to explain what's happening in detail so you can understand it better. I booted my pi ...
-1
votes
1answer
180 views

How to fallback to DHCP when STATIC fails?

I have a linux computer with a pre-configured static ip. When the pc is installed i need to access it via remote access teamviewer. Sometimes the static ip not working. Then i would like to switch to ...
0
votes
3answers
240 views

dhcpcd and ssh fail to start after changing hostname

I accidentally changed my hostname to an invalid one, containing ".". I managed to change the hostname back to a valid one but the dhcpcd and ssh service fail to start. If I ping my RPi from another ...
1
vote
2answers
731 views

Raspbian Stretch multiple wifi networks with different static ip, routers, dns

I've two wifi networks, home and work with different static ip, routers, dns. In /etc/dhcpcd.conf I can only configure one of them. I've heard of dhcpd hooks and found this link. But I'm pretty sure ...
0
votes
0answers
68 views

wlan0 does not get correct IP / gateway on _one particular_ Wi-Fi spot

Edit: I found the possible culprit, see end of question I have started off Jessie, and I need the Pi to be able to connect to various Wi-Fi networks (it will get sent away, so it "just needs to work")...
1
vote
1answer
144 views

Weird behaviour with Raspberry Pi Zero W regarding DHCP IP address and MAC address

I've tried to 'fix' the IP of my Raspberry Pi Zero W in the local network by creating a DHCP rule in the router: always allocate 192.168.0.109 to the MAC address of the Pi. I use a D-Link router and ...
-1
votes
2answers
200 views

Reverse DNS on internal LAN

Writing a Python program for my PiZeroW to scan and inventory my home local, internal network. I can easily iterate though the 256 internal DHCP available IP addresses (some assigned, some not), but ...
1
vote
1answer
400 views

Independent Eth and Wlan both with DHCP giving access to Pi without bridging

I have Motion running on my Pi. I want to be able to access the Motion interface/feed (hosted on <pi ip>:8081) to be accessible both via WiFi and via Ethernet with a static address and DHCP for ...
5
votes
4answers
1k views

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

Dhcpcd is a DHCP client and asks a remote DHCP server for an IP address. The DHCP server selects one free IP address from its pool and gives it to the client. Now in /etc/dhcpcd.conf of the client I ...
2
votes
2answers
1k 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
vote
0answers
702 views

'dnsmasq' starting error

I need to configure wifi-eathernet bridge for my IP cameras net. I've tried to use this tutorial: Sharing the Pi's WiFi connection through the Ethernet port, to resolve my issue and experienced ...
1
vote
2answers
493 views

No internet connection after changing MAC address

I have searched through entire internet and none of the solutions I found worked, so probably its time to ask for help. I have Raspberry Pi 3B+ and i want it to work (for privacy reasons): with VPN, ...
0
votes
1answer
69 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
vote
1answer
2k views

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

I have a raspberry pi (jessie) which I would like to use both at home and at another location. In case the raspberry pi is used at home then it should connect to my wifi router and use a specific ...
0
votes
0answers
727 views

DHCP Server not working on PI

I have followed the instruction how to make my pi a webserver: https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/ Everything is working fine expect that the Pi is not acting ...
2
votes
1answer
28 views

Built-in WiFi configured as AP keeps connecting to router

I have carefully followed this guide in order to set up my RPi 3 as an AP. The Pi won't be connected elsewhere so I am not intending for it to provide Internet access. I only want to remotely connect ...
1
vote
1answer
294 views

dhcpcd fallback in reverse

I need the following action in my Raspberry Pi 3. When the pi boot, it will try to use static IP (which already configured) on an Ethernet interface. If it fails, then it will get an IP from the DHCP ...