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
23 votes
2 answers
7k 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 ...
user avatar
19 votes
9 answers
35k views

How do I discover the IP address of my headless RPi?

I've configured my RPi to be headless, and plugged it into my router. How do I discover the local IP address so I can ssh into it? Update: Lots of documents point out that you can log into the ...
user avatar
18 votes
3 answers
16k views

How can I setup a Wireless Access point or and Ad-hoc network?

I would like to connect to my PI through wireless USB dongle, how can I setup an AP or an Ad-Hoc under Arch Linux?
user avatar
  • 953
13 votes
5 answers
38k views

Multiple IP addresses being assigned

My Raspberry Pi B+ is running Raspbian (Linux version 3.18.11+) updated, etc. It's connected to the network by ethernet. I want a static IP, and have assigned it one in /etc/network/interfaces (shown ...
user avatar
  • 133
12 votes
5 answers
28k views

Static DNS with DHCP on Raspbian

Is it possible to get an IP address over DHCP but force a DNS server instead of using the ones from the DHCP? I should be able to do so with a static IP addresses, but I would like to know how to do ...
user avatar
11 votes
2 answers
26k views

Make permanent change in the routing table

I have a Raspberry PI 2 model B with Raspbian version Jessie and I'm trying to bring the internet from my PC to the Raspberry. I have 2 network interfaces between them, one is over Ethernet and the ...
user avatar
  • 470
10 votes
3 answers
12k views

Alter dhclient to retry fetching IP address

It turns out raspberry pi doesn't try very hard to get an IP address with dhcp, during a power failure, my rpi booted faster than the dhcp server, and never got an IP address. In such a situation, the ...
user avatar
  • 1,086
9 votes
2 answers
10k views

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

I have two interfaces: wlan0 - Wi-Fi client configured via DHCP; wlan1- static IP address, running hostapd to act as access point, running dnsmasq to give out IP addresses and service DNS requests ...
user avatar
  • 270
9 votes
2 answers
5k views

Trying to use Pi as a Router - dnsmasq reports interface eth1 does not currently exist

I am trying to use my Pi as a router and I want to start with getting DHCP set up. I bought the Apple USB to ethernet adaptor and it seems to work fine. The WAN is setup to eth0 - the built in ...
user avatar
  • 337
8 votes
5 answers
83k views

isc-dhcp-server install and run problem

Im trying to set up my pi as an access point with the instructions from Adafruit. However, for some reason, sudo apt-get install isc-dhcp-server always fails. I have looked at this link, but there is ...
user avatar
8 votes
4 answers
30k views

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

I have a strange configuration problem with Wifi. When I connect a ethernet cable to my router, network eth0 is configured and I can access all internet resources. However when I use a Wifi dongle, I ...
user avatar
  • 181
8 votes
2 answers
8k 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 ...
user avatar
  • 269
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 ...
user avatar
  • 1,987
7 votes
5 answers
25k views

Where does my secondary IP come from?

My Pi is configured with Arch to use eth0 with a static IP configured in conf.d: [gotschi@berry ~]$ cat /etc/conf.d/network@eth0 address=10.0.55.5 netmask=24 broadcast=10.0.55.255 gateway=10.0.55....
user avatar
  • 598
7 votes
3 answers
43k views

dhclient keeps sending DHCPDISCOVER requests. why?

I connected my rPi to my iPhone via Bluetooth and configured bluetooth interface in the following way in /etc/network interfaces: # iPhone via Bluetooth allow-hotplug bnep0 iface bnep0 inet dhcp It ...
user avatar
6 votes
3 answers
2k 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 ...
user avatar
  • 39.9k
6 votes
3 answers
14k 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 ...
user avatar
6 votes
3 answers
17k views

Cannot make Pi visible on network

I'm running Jessie on a Raspberry 2, and have setup on the network so it can reach the web and ssh is enabled, but cannot see it on the network. The router shows nothing. I've followed various other ...
user avatar
  • 555
5 votes
4 answers
33k views

Disabling DHCP Server

For some strange reason, my Raspberry Pi is acting as the DHCP server on my home network. Whenever a computer boots up in our house, it's immediately told that the IP address for the DHCP server is ...
user avatar
  • 306
5 votes
3 answers
5k views

Display IP Address on Character Based LCD

I need to know the IP address of my raspberry pi. I need to do this with a Character LCD display. So here's what I have done so far. I can display text on a HD44780 based 16x2 LCD connected to my ...
user avatar
  • 151
5 votes
5 answers
53k views

Set static IP and stop DHCP on Jessie Lite

I've been trying for a few days now to set a static IP for my Pi but have so far been unsuccessful. I have a Model B Revision 2.0 (revision code 000d). I'm running Jessie Lite released 2016-05-27. ...
user avatar
5 votes
1 answer
29k views

How to manually install dhcpcd?

I upgraded wheezy to jessie and there is no dhcpcd installed. I installed it with apt-get install dhcpcd but I cannot start the service. When I do sudo service dhcpcd start I get Failed to start ...
user avatar
  • 165
5 votes
3 answers
10k views

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

RPI can be accessed from computers in the same LAN by using it's local ip. If I want to access it by a specific name, I can set it up in hosts file. This works nice if RPI has a static ip, but not ...
user avatar
5 votes
3 answers
2k views

Issues with PXE boot with RPi 3B - no TFTP RRQ made

I've been running into issues trying to get a RPi 3B PXE booting - the Pi doesn't appear to make any TFTP request once it receives a DHCP response, but instead remakes the BOOTP request. This might ...
user avatar
  • 51
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 ...
user avatar
5 votes
2 answers
22k views

Setting Subnet Mask with DHCPD Conf

I'm using Raspberry PI 3 with Raspbian Jessie to make an industrial datalogger product. For obvious reasons I need to tell the Rasp to use a static IP configuration, in order to make it work in other ...
user avatar
  • 83
5 votes
2 answers
28k views

Raspberry Pi not shown on the network

I'm using the Debian Wheezy 2012-8-18 distribution on a Raspberry Pi model B. I have set the SSH server to turn on by default, and connected it to my Ethernet switch, where the router uses DHCP. The ...
user avatar
5 votes
1 answer
144 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 ...
user avatar
  • 51
5 votes
3 answers
34k views

Default gateway gone after restart

I am trying to configure my eth0 interface with a static ip through my dhcp server. The static assignment is working fine, but I can't access the external network because there's no default gateway. ...
user avatar
5 votes
1 answer
2k views

Pi stuck in a DHCP loop

I have a Raspberry Pi running Raspbian, connected to a PC via its ethernet NIC and set to DHCP. /etc/network/interfaces on the Pi: auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface ...
user avatar
  • 211
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 ...
user avatar
  • 179
4 votes
6 answers
27k views

Cannot connect to internet - No DHCPOFFERS recieved

I have used ethernet cable to connect to a modem for internet connection to my raspberry pi. I am getting error messages when trying to open a page. when i tried sudo ifup eth0 i got this error ...
user avatar
  • 227
4 votes
2 answers
916 views

How to get microcontroller connected to WiFi - no keyboard, screen, or native app

Assuming a user has a RPi-based device with a WiFi adaptor, Ethernet port, and Bluetooth dongle, what is the easiest way to configure their SSID & Password to get them connected to WiFi without: ...
user avatar
4 votes
1 answer
3k 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 ...
user avatar
4 votes
1 answer
1k views

Ethernet connection drops after several seconds

I recently got a Raspberry Pi, but I've been having trouble getting a working internet connection. At the moment, the pi will connect, and I'll be able to access the internet for about 15 seconds ...
user avatar
  • 43
4 votes
1 answer
1k views

Using the Pi as wifi/ethernet Bridge and extend LAN?

I'm curious whether it is possible to use the Pi in the following configuration: ╔══════════╗ ╔══════════╗ ║ internet ║ ║ device 1 ║ ╚═════╤════╝ ╚═════╤════╝ │ ...
user avatar
  • 41
4 votes
2 answers
3k views

Ethernet stuck in cycle of "carrier acquired" and "carrier lost"

I'm running the Pi 2B headless and keep having to pull the plug because it's not connecting to the network. Sometimes it connects, sometimes it doesn't. My setup has an Ethernet cable connecting the ...
user avatar
  • 187
4 votes
2 answers
373 views

Having problems with RPi and DHCP

I have my RPi running connected to a Windows 7 machine with a crossover cable - that W7 machine itself is connected to the internet (DSL) via WiFi. Originally I simply configured Internet Connection ...
user avatar
4 votes
3 answers
12k views

Raspbian does not get DHCP address

I've got a Raspberry Pi 2 running Raspbian (can't remember the exact date but it's something from early February 2017) and when connected to my router (TP-Link TD-W8970) it fails to get a DHCP ...
user avatar
3 votes
3 answers
14k views

Default content of /etc/dhcp/dhclient.conf from Raspbian

Could some kind soul please post the default content of the dhclient.conf file from /etc/dhcp/ as I've managed to delete mine :/
user avatar
3 votes
3 answers
22k views

How do I configure dhcpcd to call wpa_supplicant for a specific interface?

$ uname -a Linux pi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux System fully updated via apt. I'm aware there are many, many questions and blogs on this topic, but after several days ...
user avatar
  • 183
3 votes
1 answer
14k views

Static IP adddress on Raspbian not using dhcp service at all

I have Raspbian Jessie on RPI 2 B, I cannot set my wired NIC with a static IP address. I have uninstalled raspberrypi-net-mods ifplugd, because have a lot of stability issues and insists on uses ...
user avatar
  • 161
3 votes
1 answer
6k 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 ...
user avatar
  • 133
3 votes
2 answers
60k views

How can I reset network settings without a network connection?

I have disabled DHCP on my Raspberry Pi and manually set up the eth network. The problem is that the network is no longer available and I want to re-enable DHCP. How can I reset the network ...
user avatar
  • 604
3 votes
2 answers
6k views

Wired network eth0 IP address is lost and not renewed

I use eth0 interface on RPI 3B+ with DHCP and when cable is disconnected then IP address is lost and when cable is reconnected then IP is usually not renewed. I tried to set static address in /etc/...
user avatar
  • 139
3 votes
1 answer
2k views

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

I've set up a home network with two routers (TEW-692GR and another one from TP-LINK), but neither supports on-site VPN server configuration. I stuffed my RPi with Raspbian into the box with my router ...
user avatar
  • 51
3 votes
1 answer
148 views

Why can't my Raspberry Pi 4 connect to wireless consistently?

I'm a beginner when it comes to configuring a network through a Linux terminal. I was trying to turn the Pi 4 into a server but at some point, during configuration, I messed up the networking and had ...
user avatar
3 votes
1 answer
760 views

Too many dhcpcd "router available" message in the syslog

I'm visiting my relative's house during this holiday. I bought my Raspberry Pi 3 and other gadgets. The Pi is a media server and a wifi router to share the internet in the guest room. Everything is ...
user avatar
  • 84
3 votes
2 answers
2k views

Connect to raspi over ethernet with no known IP

Is it possible to set the IP of a raspi from another connected device? I have my raspi plugged into the ethernet port on my iMac. The raspi doesn't have an IP (as far as I can tell), so I can't ssh ...
user avatar
  • 171
3 votes
2 answers
26k views

Can't get an IP for wlan0

So wlan0 is connecting fine to my router, but I'm not getting an IP. /etc/network/interfaces has the line: iface wlan0 inet manual Changing manual to dhcp doesn't seem to help, I get lots of ...
user avatar
  • 3,909

1
2 3 4 5
7