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.

325 questions
23
votes
2 answers

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 has a unique id on the network which my router…
user96725
22
votes
10 answers

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 router and look at the DHCP table. What if you don't…
fearless_fool
  • 593
  • 1
  • 4
  • 15
18
votes
3 answers

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?
Mokus
  • 983
  • 5
  • 10
  • 19
13
votes
5 answers

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 below). However, every boot it requests an…
t0vana
  • 133
  • 1
  • 1
  • 6
12
votes
5 answers

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 it getting an IP address over DHCP. I thought that…
Albert Vonpupp
  • 310
  • 1
  • 2
  • 7
12
votes
2 answers

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 other one is over Wifi. I have configured the…
Victor
  • 480
  • 2
  • 7
  • 15
10
votes
3 answers

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 rpi seems to be booted, but it doesn't get an IP…
nos
  • 1,106
  • 2
  • 10
  • 14
10
votes
3 answers

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 DHCP, but if there's a way that works with either…
Joe Moore
  • 211
  • 1
  • 2
  • 7
9
votes
2 answers

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 Version : 2.0.0, 2012/04/16 WiMAX Version :…
Cade Roux
  • 2,117
  • 5
  • 23
  • 27
9
votes
2 answers

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 a DHCP server. The intention is to have a…
Flux
  • 279
  • 1
  • 3
  • 11
9
votes
2 answers

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 on that interface. Unfortunately, it seems that…
bigjosh
  • 280
  • 1
  • 2
  • 8
9
votes
2 answers

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 ethernet on the pi board - while the connection to, say…
User7391
  • 337
  • 2
  • 8
8
votes
4 answers

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 can ssh into the Pi, but connection to the…
centic
  • 181
  • 1
  • 1
  • 6
8
votes
5 answers

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 a subnet defined in my dhcpd.conf (from…
calccrypto
  • 265
  • 1
  • 8
  • 19
8
votes
3 answers

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 when it moves from one location to another? UPnP is…
Dorin Botan
  • 183
  • 1
  • 1
  • 5
1
2 3
21 22