Questions tagged [dhcp]
DHCP is an auto configuration protocol used on IP networks.
727 questions
0
votes
0
answers
38
views
Networkmanager shared wired connection no DHCP in hairpin mode
I'm setting up a Raspberry Pi as a mini router for university Accommodation, using NetworkManager to configure the connections, but I'm running into a problem.
My current setup has a USB ethernet ...
0
votes
0
answers
55
views
Fedora 36 NetworkManager delete old IP, DHCP addresses from adapter enp0s3
I am trying to remove an old IP and route from Fedora 36 NetworkManager. I recall my steps as I followed them. I am using Win-11 x86_64(host), VirtualBox 6.1.5, Fedora 36 (guest.) When I installed the ...
1
vote
1
answer
37
views
How to allow local network dotless names using Network Manager in Linux Mint with DHCP?
I have two hosts, MintPC and AlpineVM. The VM is on a bridged network so it appears as its own device on the network with its own address. Both obtain addresses through DHCP provided by my router/...
0
votes
0
answers
68
views
dnsmasq '--read-ethers' and '--address' interaction
I run dnsmasq on a server (specifically OpenWrt) to act as both DHCP and DNS.
OpenWrt DHCP configuration /etc/config/dhcp:
option readethers '1'
list address '/my-phone.lan/172.28.79.133'
Which is ...
1
vote
1
answer
79
views
Client PC (with DHCP assigned IP) cannnot get the Internet
I have one computer, Server, with two Ethernet ports, enp2s0 and enp3s0.
What I want to do is that I want this computer to connect to the internet via company network (10.11.1.0/24) and also be a DHCP ...
0
votes
1
answer
199
views
PXE reading the file name incorrectly
I’m setting up a PXE boot environment using a DHCP server and a Realtek RTL8168 NIC (bulit-in ethernet on my mainboard). I’ve configured DHCP Option 67 to send the boot file name (netboot.xyz.efi), ...
0
votes
0
answers
34
views
Reboot required after losing network on Linux 21.3 on a HP Pavilion on NowTV Model NR801 router
I'm running Linux 21.3 on a HP Pavilion.
If lose wifi connection due to poor signal to my NowTV Model NR801 router, I'm unable to reconnect to any network (including wired) without rebooting my ...
0
votes
2
answers
489
views
Why can't ifupdown find dhcpcd?
So I have an embedded system I've built with yocto. I'm trying to enable DHCPv6. But when I try to bring the interface online, ifup says it can't find DHCPv6 software, even though dhcpcd is ...
1
vote
2
answers
286
views
Pop!_OS slow kernel boot time when ethernet cable not connected
I am running Pop!_OS 22.04 LTS on my laptop, which is based on Ubuntu 22.04 LTS.
Linux is set up with root partition encryption, with auto-decryption set up during boot since I am only using the ...
0
votes
1
answer
173
views
Alpine Kea dhcp server deny unknown-clients
I checked the whole conf file but did not find the option equivalent to "deny unknown-clients" of Debian isc-dhcp-server.
Possible?
1
vote
1
answer
450
views
Getting systemd-networkd to honor [DHCPv4] FallbackLeaseLifetimeSec option
Related to this question
How do you get systemd-networkd to honor the [DHCPv4] setting FallbackLeaseLifetimeSec=forever? (Or more probably, what am I doing wrong that is preventing this?)
When it ...
-1
votes
2
answers
131
views
Internet on USB to Ethernet adapter in a multi port Linux PC
Linux version : Ubuntu 22.04 server minimal
This box has 3 NIC cards and all those three NIC cards will be configured with static addresses by configuring in file /etc/netplan/00-installer-config.yaml ...
1
vote
1
answer
263
views
Configure Debian to connect to ONT like IPoE/DHCP router provided by the ISP
My ISP provides a pre-configured Asus router running Linaro GCC 4.6-2012.02 which connects to ONT (fibre box) via Ethernet cable. I can SSH into the router and see the WAN interface:
18: vlan10@eth0: &...
0
votes
1
answer
63
views
Need help building a wireless router that offers /30 public IP range through DHCP
I have a block of public IP addresses and I want to build a router using my Raspberry Pi to offer those public IP addresses to my devices behind CGNAT.
The topology
[Server](wireguard addr = 10.0.0.1/...
0
votes
1
answer
507
views
Why do I get a secondary IP address with DHCP?
I don't know why my pikvm gets 2 ip addresses for the wlan0.
It's the only device that gets 2 in my entire network.
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP ...
0
votes
0
answers
1k
views
server gets a new ip-address every time I reboot on Ubuntue 20.04
I have a Ubuntu 20.04.6 LTS using dhcp. Everytime I reboot the ip-address gets changed but not DNS. I'd like to keep the same ip-address. I have changed my /etc/netplan/01-netcfg.yaml as :
network:
...
0
votes
1
answer
235
views
Is there a way to tell whether an IP address on a system has been assigned via DHCP without using NetworkManager or ResolveCTL?
Back when only ifconfig and route -n and cat /etc/resolv.conf were the only ways to check IP address / Mask / Gateway on a system -- was there a way to determine if these attributes were assigned via ...
2
votes
1
answer
1k
views
Configuring dnsmasq so I can use short host names
I have set up dnsmasq on my local network that consists of Linux/macOS computers. I have added a line like this in my /etc/dnsmasq.d/home.lan file:
dhcp-host=dc:cd:2f:bf:44:12,printer,192.168.0.3
I ...
0
votes
1
answer
232
views
systemd-networkd DHCP server Failed to configure address pool for DHCPv4 server instance: Numerical result out of range
I am using systemd networkd version 253.1. I have 2 ethernet ports on my Linux 5.15 box and I want to setup a DHCP server on the second port. I had successfully done that with the following ...
2
votes
0
answers
278
views
SLAAC and SLAAC+DHCPv6 configuration using udhcp6
I am working on an embedded system and it uses udhcpc6 as its DHCPv6 client.
If I set an interface to 'dhcp' in the /etc/network/interfaces file, udhcp and udhcp6 automatically start.
I then connect ...
0
votes
0
answers
82
views
NetworkManager and DHCP issues with WLAN on HP laptop running Gentoo
I'm running Gentoo.
I have a HP laptop with the touch screen. I put the default GNOME on it.
Problem was that Wayland didn't like touch screens.
So I did the update and put X on it.
Everything worked ...
0
votes
0
answers
452
views
ISC DHCP 4.4 server giving out leases, but no entries in leases file - where are they?
Running ISC DHCP Server 4.4. (I know, I know, it's EOL...there was a very good reason I uninstalled Kea-DHCP-Server and decided to go with it's predecessor ISC-DHCP-Server...though I can't recall what ...
0
votes
0
answers
316
views
DHCP Reservation with Network Manager in AP mode
I'm running Ubuntu 22.04.4 on a Raspberry Pi. I installed NetworkManager and added a config file somewhat like this:
# /etc/netplan/10-my-config.yaml
network:
version: 2
renderer: NetworkManager
...
0
votes
1
answer
137
views
Bypassing DHCP DNS with systemd-resolved
The issue
Changing the DNS option in resolv.conf from the VM's gateway to 8.8.8.8 will result in no DNS resolution.
resolvectl query google.com succeeds if I set DNS to my gateway.
The set-up
/etc/...
1
vote
0
answers
2k
views
BIND, Kea and Dynamic DNS
I'm working on setting up DNS and DHCP on my homelab network using BIND9 and Kea, and I'm having trouble getting my zone files to update consistently. My setup is BIND 9.18.26 and Kea 2.4.1 on the ...
1
vote
0
answers
330
views
Why are IPv6 address being assigned although IPv6 has been disabled (Debian 10 and 11)?
Although I've disabled IPv6 using /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
IPv6 addresses still show up on the ...
0
votes
1
answer
627
views
Ubuntu server not responding after few days
I would like know if anyone else has had this problem. I have my own device as a server with Ubuntu Server operating system in the server room. After some time the server always stops responding to ...
0
votes
0
answers
189
views
Access Point using NetworkManager only allows 6 devices to connect
I've a Raspberry Pi running Debian 12 (bookworm) and have set up an access point with the following command:
sudo nmcli con add type wifi ifname wlan0 mode ap con-name MY_AP ssid MySSID \
...
1
vote
0
answers
110
views
`nmap` showing different hostnames than expected
When I run nmap 192.168.1.*, I get a print out of all devices on my network. The hostnames are not what I expect. For example, the hostname of the Linux desktop (192.168.1.203) I am currently on is ...
1
vote
0
answers
271
views
How to use dhcp option 12 (host-name) in dhcp server config
I have Linux system running DHCP server which assigns less than 5 leases to a similar clients, always. The connecting client can have different MAC OUI(first 3 bytes) and client uses the MAC address ...
0
votes
1
answer
830
views
Have dnsmasq resolve multiple domains form local hostnames
I am running dnsmasq 2.90 inside a Debian 11.0 based docker container as part of Pi-hole 5.18.2.
I would like to configure dnsmasq to serve the addresses of my local hostsnames for multiple local ...
0
votes
2
answers
4k
views
Tiny and easy DHCP for standalone hosts
I am looking for a linux dhcp-server that is easy to configure and is just running when I start it on commandline - or even better keepts in foreground and quits if I Ctrl+C it.
What I am not try to ...
0
votes
1
answer
223
views
cant start dhcp server
Using debian, and installed isc-dhcp-server via the following command
sudo apt -y install isc-dhcp-server
After agreeing to any dependencies, the follow error message was thrown
Job for isc-dhcp-...
0
votes
0
answers
155
views
How to launch DHCP client in Linux?
As a title, I found my wi-fi port without an IP address assigned, as follows.
ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:13:32:81:2c:d2 txqueuelen 1000 ...
0
votes
1
answer
45
views
ISP Search Parameter in resolve.conf
I will try to explain this right, not a linux guru! About a week ago suddenly started getting a 401 when sending requests, seems that on our kubernetes cluster when it hits the one node that has a ...
1
vote
1
answer
211
views
What is a sane config for P2P DHCP using busybox udhcpd?
I have two computers connected directly via ethernet with one serving as a dhcp server and the other as a client
my config:
interface eth0
lease_file /var/lib/udhcpd/udhcpd.leases
remaining no
...
0
votes
1
answer
222
views
ifup overwrites resolv.conf incorrectly?
Debian 12.4 with networking managed by systemd networking.service, dual stack IPv4 and IPv6.
I am aware of the many questions asking how to stop the system from updating resolv.conf, and this is not a ...
0
votes
1
answer
55
views
Recofiguring DNS/DHCP: a bit of advice?
I am administrating a LAN with a mix of Linux servers and Windows/OSX/Linux/other systems. A while ago I configured our DHCP- (isc-dhcpd-4.4.1) and DNS server (BIND 9.16.44-Debian) to implement DDNS, ...
0
votes
0
answers
49
views
How to share my eth-wired internet from my pc to my eth-wired raspberry pi, non-wifi
I have a PC and RPI, both running debian.
My PC has internet access via ethernet(not wifi), and I connect to my RPI with ssh via another ethernet from the PC to the RPI.
The PC to RPI connection uses ...
0
votes
0
answers
194
views
MikroTik DHCP server sends wrong DNS server
I have a MikroTik (10.0.0.138) router, where the static DNS server 8.8.8.8 is set and DHCP is enabled. The configuration of the MikroTik is:
To my understanding, when the MikroTik answers a DHCP ...
2
votes
2
answers
1k
views
How do i start kea-dhcp server with multiple interfaces when first interface in the "interface" list is down
I am very new to kea-dhcp. I am trying to use kea-dhcp 2.0.1 version.
below is my interface configuration mentioned in "dhcp.conf"
"Dhcp4": {
"interfaces-config": {
...
0
votes
0
answers
233
views
server does not retry dhcp after previously getting no dhcp offer
My server gets IP address from dhcp. Sometimes the dhcp server does not respond, and my server times out (no dhcp offer, sleeping)
I thought, my server would re-try dhcp, but that does not happen.
...
1
vote
2
answers
363
views
Can’t get DNS IPs with NetworkManager during PXE boot
I’ve built a custom Buildroot with NetworkManager as the only networking daemon and booting my board via PXE. The problem is that /etc/resolv.conf is missing actual DNS IPs and domain. While kernel is ...
0
votes
1
answer
464
views
systemd-networkd DHCPServer works when client is directly connected but not through unmanaged switch
I have a Linux machine running kernel version 5.15. I have systemd version 250.5+ installed and I have it configured to run a DHCP server on a physical ethernet port. I have a raspberry pi running the ...
0
votes
1
answer
166
views
DHCPd receives a wrong MAC-address from VirtualBox Guest
I have VM which is working with "Host-Only Adapter". I disabled VirtualBox's built-in DHCP-server. I've installed isc-dhcp-server on my hypervisor. Then I added the subnet
subnet 10.10.54.0 ...
2
votes
2
answers
323
views
systemd-networkd 'relaytarget' not working (dhcp relay) in Debian stable 12 bookworm
my first question here.
I'm currently using the 'dhcp-helper' program to do dhcp relay, works fine, but I want to switch to using the systemd-networkd 'RelayTarget' function in the *.network file. I'...
2
votes
0
answers
1k
views
Randomly loosing Internet connection after a few minutes/hours in Linux / NixOS
I have been dual-booting Linux for about three weeks now, and this issue is keeping me from fully switching because I have to reboot my computer approximately every hour. On Linux, I experience random ...
1
vote
1
answer
437
views
How do I use dhclient to determine if the DHCP server can provide DNS servers?
OS is Debian 10-12. I know in some (most?) cases, a DHCP server will provide DNS servers at the same time as it leases an ip address.
I would like to use dhclient to get a list of DNS servers provided ...
0
votes
1
answer
248
views
Customized system cannot obtain dynamic IP?
I am customizing the system using version 6.4.0 of the kernel, and the file system is created using busybox. However, I don't know why enp3s0 cannot obtain an ip. It seems that using udhcpc can obtain ...
1
vote
3
answers
1k
views
Reject a specific IP address from DHCP server and ask for another one
How can I configure Linux to reject a specific IP from DHCP server?
I mean I do not want my lan interface to get assigned 192.168.0.12 under any circumstances.
Is it possible? I have found on /etc/...