Questions tagged [dhclient]

dhclient is the DHCP client for Linux and UNIX, created by the Internet Software Consortium. It is used to configure network interfaces using DHCP or BOOTP protocol, or can be used to assign static configurations.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Why the Internet connection may be interrupted after the first launch /usr/sbin/dhclient?

I have debian-11.6.0-amd64-netinst installed on my PC. This PC is connected to the router by wire. After rebooting the PC and running /usr/sbin/dhclient for a while (about 10 minutes), the computer ...
Stanley Wintergreen's user avatar
0 votes
0 answers
139 views

How to configure IA_PD prefix length with dhclient?

My home internet connection is going through a router provided by my ISP. It gets a ::/56 ipv6 prefix assigned dynamically by my ISP every night. Behind that router I have a debian bullseye box for ...
t11n's user avatar
  • 1
0 votes
1 answer
44 views

OpenVPN clients' DNS, unwanted ip routes added by dhclient

I've set up an OpenVPN gateway that provides access to a large cloud of IoT devices. Each device has a unique certificate, and upon connection, I grab the "common name" from the cert to ...
Richard Krehbiel's user avatar
0 votes
1 answer
350 views

Difference between ifup and dhclient - different result?

On Debian 10 (buster), I configured the DHCP with the MAC address but it does not work. When i use "ifup" command, the result is wrong. I need to configure this IP: 192.168.251.11 but DHCP ...
BeWog's user avatar
  • 1
3 votes
1 answer
1k views

ISC DHCP client (dhclient) alternative?

I've just seen the news on https://www.isc.org/dhcp : ISC has ended development on the ISC DHCP client as of early 2022. This client implementation is no longer maintained and should not be used in ...
kol's user avatar
  • 161
0 votes
0 answers
578 views

dhcp: lease expiration vs. infinite lease

As per RFC2131, when the lease expires the client has to stop using the IP address. So do I understand right that if the lease lifetime is set to infinite on the server, then the client does not need ...
Mark's user avatar
  • 249
1 vote
1 answer
268 views

Shouldn't dhclient confirm its lease after a carrier loss?

I'm investigating an issue with a Ubuntu server acting as the Internet gateway for a branch office stopped working after being switched to a new Internet connection. The IP address on the external ...
Tilman Schmidt's user avatar
0 votes
0 answers
62 views

AWS time traveling issues with dhclient

I am a QA software engineer working on integration tests that require changes on the system clock to simulate the pass of the time. When running those tests on AWS EC2 instances I got unexpected ...
grg121's user avatar
  • 101
2 votes
1 answer
559 views

My network interface changes names, so DHCP / dhclient cannot operate on it

On some ArchLinux servers I've switched from dhcpcd to dhclient, but the servers are not receiving IP. Upon inspection with journalctl I see that, on all occasions the IP was not received, dhclient ...
haelix's user avatar
  • 207
2 votes
1 answer
2k views

different DHCP behavior between machines using NetworkManager and not using NetworkManager

can anyone please shed some light on the differences I list below. And maybe explain why NetworkManager does it differently. And please advise if we can change NetworkManager to behave more like the ...
jodlgc's user avatar
  • 25
0 votes
0 answers
208 views

Libvirt VM Networking fails to start up after upgrading host from Ubuntu 18.04 to 20.04

I upgraded a server from 18.04 to 20.04. I am using libvirt/kvm to host a number of VMs. Some of the VMs failed to reconnect to the network after the upgrade. Two VMs in question run Ubuntu 18.04 and ...
Ries's user avatar
  • 153
-1 votes
1 answer
729 views

Different lease duration for dhcp clients

Is it normal in Windows implementation of DHCP Server and DHCP Client that some clietnts gets strange long lease expires time like 15 days? ,,Lease duration for DHCP clients'' setting in DHCP Server ...
sokar's user avatar
  • 31
0 votes
0 answers
883 views

How to include vendor-specific option 17 suboptions 11, 12 and 13 in DHCPv6 solicit/request using dhclient

My request is to include option 17 sub-options 11, 12 and 13 in DHCPv6 solicit/request and I configured the same in dhclient6.conf on my Ubuntu as below. send dhcp6.vendor-opts 00:00:0d:e9:00:0b:00:06:...
kottesvaran m's user avatar
0 votes
1 answer
403 views

2 servers show different behavior when DHCP sever goes down

i dont have any control of the DHCP servers on my network and every 2 weeks or so there is an outage of a few hours where my CentOS 7.8 servers do not get responses to DHCP renewal requests. As far as ...
jodlgc's user avatar
  • 25
1 vote
0 answers
1k views

isc-dhcp dhclient request address endless loop

when a Linux Mint 20 virtualbox VM requests the network config to the home LAN router DHCP through isc-dhcp client with the stock /etc/dhcp/dhclient.conf config file everything runs fine: (BTW 192.168....
peris's user avatar
  • 508
1 vote
0 answers
217 views

Request an address from a range of IP-addresses using dhclient dhcp-requested-address

I am in a situation where I need myDevice (ubuntu), when connected to router, to have any IP address in the range of 192.168.1.20 to 192.168.1.40. I am aware that adding the line send dhcp-...
daedalus_hamlet's user avatar
0 votes
1 answer
923 views

Internet drops on Ubuntu ISC-DHCP-Client networking

i am having issues with the network connectivity on Ubuntu server 16.04. I am connected to Verizon Fios via Ethernet (it's defined as dhcp on the /etc/network/interfaces file.) The DHCP Client that I ...
Maruan Awad's user avatar
6 votes
0 answers
6k views

Debian 10 Buster can't renew DHCP as client, when IPv6 is disabled

After I upgraded Debian 9 to 10 Buster server lost network connection after 24 hours since reboot, I think problem is it can't renew IP address from DHCP server. In /var/lib/dhcp I see the file ...
Roman_G's user avatar
  • 63
1 vote
0 answers
102 views

Renewing DHCP lease without losing static IPs? (dhclient removes static IPs)

I have this interface, with DHCP and some static IPs: $ ip addr 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether e0:d5:5e:...
Roman Gaufman's user avatar
0 votes
0 answers
421 views

Debian Server: DHCP keep IP on reboot

I've a Debian server running with some static IPs and a public IP, all provided by the same ISP on a FTTO connection. Now I've noticed if I unplug the cable between the server and the ISP ONT/ONU and ...
TCB13's user avatar
  • 1,136
0 votes
1 answer
957 views

vbox cloned centos7 fix same ip new to have different ip from cloned one

I cloned centos7 vm in virtualbox, but they ended up with same ip address. My network preferences are my created NAT network with: 10.0.2.0/24 Both vms uses this network i created, but they have same ...
johnsnow's user avatar
  • 161
0 votes
1 answer
1k views

Networking service timeouts every second restart

The setup My debian server at online.net is running a dual stack ipv4/ipv6 # /etc/network/interfaces auto lo iface lo inet loopback source /etc/network/interfaces.d/* There are 2 files in /etc/...
user48678's user avatar
  • 171
1 vote
1 answer
1k views

eth0 with static ip gets shutdown after dhclient fails

I have a Nvidia Jetson TX2 SoC in an Connecttech Astro carrier board running Ubuntu 16.04. The carrier has two Gigabit Ethernet ports which I would like to configure with static IPs. In system ...
schrödinbug's user avatar
5 votes
1 answer
10k views

dhclient doesn't set default gateway

I'm running a few Ubuntu 16.04 VMs in the Azure cloud. Whenever I reboot a VM I have to set the default gateway manually. The gateway should be set by dhclient. I activated the debugging and get this:...
Kai's user avatar
  • 315
3 votes
1 answer
914 views

Search option in resolv.conf getting overwritten by prepend statement in dhclient.conf

I have setup a DNS server for my department which is running FreeBSD 10.2. It is currently connected to the campus internet and receiving its address via dhcp, so /etc/resolv.conf looks like this: #...
Chuck's user avatar
  • 31
0 votes
1 answer
3k views

Get rid of default "search" entry in "/etc/resolv.conf" on Amazon EC2 Fedora instance

Case of an Amazon EC2 Fedora 23 instance. The file /etc/resolv.conf which determines how DNS lookups are performed by glibc resolver (see man resolv), looks as follows: ; generated by /usr/sbin/...
David Tonhofer's user avatar
4 votes
0 answers
757 views

Cannot renew DHCPV6 lease in SLES12

I need to renew the lease of a certain SLES12 box. The machine is configured to use IPv6 only and so far I have tried the following: From here: dhclient6 -r -v eth0 && rm /var/lib/dhcp6/...
Ivan Kalchev's user avatar
1 vote
0 answers
736 views

ubuntu 14.04 LTS change dhclient lease file location

I cannot find how to change dhclient lease file location. By default (and currently) it is in /var/lib/dhcp, but I want this file to go to another place. I did ps ax | grep dhclient and got this ...
pirmas naujas's user avatar
0 votes
1 answer
5k views

dhclient: No broadcast interfaces found, but eth0 is up and broadcast

I'm experiencing a common problem with dhclient. But I wasn't able to find a clear solution to this problem. System: ReadyNas RN104 Stock Debian for armhf Just upgraded to Debian Jessie Self-built ...
JPT's user avatar
  • 113
3 votes
2 answers
16k views

How to configure dhclient on CentOS to get IP from a specific DHCP server

I have a situation where I am able to launch CentOS 6.6 images on a subnet such that the VM instances get their IP addresses from the virtual gateway of the subnet. Now this gateway has gone wonky and ...
xkcd's user avatar
  • 444
0 votes
1 answer
142 views

DHCP attribution without DHCP client

j'ai un serveur DHCP qui attribue des IP selon les adresses MAC des clients. J'ai un client qui n'a pas de client DHCP installé (pas que je sache). I have a DHCP server (on linux) which gives IP ...
Shan-x's user avatar
  • 168
0 votes
2 answers
2k views

Supersede default route

I have two network interfaces eth1 and wlan0. I would prefer all outbound traffic to go through eth1 before wlan0, but if eth1 is not up, and then wlan0 should handle the traffic. Both interfaces get ...
Jono's user avatar
  • 113
8 votes
4 answers
23k views

CentOS 7 is not setting my gateway from DHCP

I have a Minimal Install of CentOS 7. I have disabled the Network Manager as I want to setup my network the "old school" way. systemctl stop NetworkManager systemctl disable NetworkManager ...
Daniele Testa's user avatar
0 votes
1 answer
536 views

Can we force dhclient to not renew ip rules?

I've overridden the ip routing rules on my RHEL machine by adding custom logic in a new script ifup-local that is run immediately after a new interface is attached. /etc/sysconfig/network-scripts/...
user1071840's user avatar
0 votes
0 answers
1k views

"ifup eth0" causes dhclient to bring up more than one interface

Can someone tell me why dhclient is not respecting to only handle the one interface it has been passed? I've seen this multiple times over the years; never figured it out - it's not related to ...
fnawothnig's user avatar
0 votes
1 answer
2k views

Suddenly unable to obain IP address but eth0 port blinking rapidly

After a server restart, the server is unable to obtain an IP address through a wired ethernet interface, neither automatically nor manually. However the green light on the back of the machine where ...
user84207's user avatar
  • 103
2 votes
2 answers
13k views

Issue with RHEL7 and disabling NetworkManager

Okay community, let's see if we can figure this one out, cause I'm out of answers. Where I work I am setting up a bunch of RedHat Enterprise Linux servers. There is a collection of RHEL6 and RHEL7 ...
cjmaio's user avatar
  • 31
3 votes
1 answer
6k views

How to remove only IPv6 addresses with iproute2?

I'm trying to write an application that can change the IP address of the local machine. When doing some experimentation, I've noticed that if I freshly connect to a wireless network, I am assigned an ...
jonderry's user avatar
  • 187
34 votes
2 answers
63k views

dhclient: What does "RTNETLINK answers: File exists" Mean?

I wanted to update the DHCP lease of an Amazon EC2 instance, so I executed the following command: user@host:~$ sudo dhclient Following that, the system's DHCP lease is updated successfully updated. ...
AlfaZulu's user avatar
  • 555
-1 votes
1 answer
3k views

how to Check for dhclient in Directadmin [closed]

I have installed CSF firewall in CentOS 6 64-bit on Directadmin dhclient appears to be running which suggests that the server is obtaining an IP address via DHCP. This can pose a security risk. You ...
Mohammad Alipour Fathkoohi's user avatar
0 votes
1 answer
875 views

CentOS 5 domain-search from DHCP server ignored by dhclient

I have a DHCP server running ISC dhcpd which offers the option domain-search "domain.local"; option. This is being ignored by a particular CentOS 5 dhclient which is removing the search parameter in ...
batfastad's user avatar
  • 456
0 votes
2 answers
1k views

How to DHCP request a second, different, IP for the same physical interface?

(Similar to this question, but with two different DHCP-assigned IPs) Is there any way to let dhclient or dhcpcd request two different IPs for one physical interface, e.g. via virtual interfaces eth0 ...
Tobias Kienzler's user avatar
1 vote
0 answers
1k views

How to send several instances of the vendor-specific options to a DHCP server using dhclient?

I need to send vendor-options to DHCP server using dhclient (ISC). I've added following lines in the dhclient.conf: option dhcp6.vendor-class code 16 = {integer 32, integer 16, string}; send dhcp6....
van-mronov's user avatar
1 vote
1 answer
561 views

dhclient asking for new routing every 1500 seconds, removing my static routing, cron not working

I have a problem with cron job on my ubuntu server 12.04. I have two internet providers - one for fast speed, second - for local resources. So, I'm using command route to up the static routing for ...
Ayaal Olesov's user avatar
1 vote
2 answers
2k views

DHCP clients: Where is the hostname going to come from

We are building a private cloud here, VMs have at least 2 NICs, sometimes 3 or 4, each may be statically configured for IPv4 and/or IPv6 or be configured by DHCP or a combo of the two. Yes it's a ...
Ira's user avatar
  • 139
12 votes
2 answers
20k views

Debian 7 how are IPv6 link local addresses set?

It seems like when dhclient runs on eth0 I get an IPv4 address from the DHCP server and a Scope:Link IPv6 address attached to eth0: inet6 addr: fe80::a00:27ff:fed0:4d41/64 Scope:Link But I can't see ...
Aaron's user avatar
  • 223
1 vote
2 answers
2k views

Configuring linux to be visible in microsoft DNS domain

I've been trying to have one of our linux box available in the windows domain. The linux box is a ubuntu server without gui or X installed. All manipulations are done from ssh. Linux box: hostname: ...
Loïc Faure-Lacroix's user avatar
1 vote
1 answer
1k views

How to override the network DHCP Server settings to be specific to my own .conf file?

Basically, I have want to test out WPAD(Web Proxy Autodiscovery Protocol ) , PAC. But I would like to do it without touching the Network DHCP server. So, can you suggest a way in which I can achieve ...
rahulg's user avatar
  • 407
1 vote
2 answers
814 views

DHCP issue in our network, could it be hidden 2nd DHCP server?

Something weird happened today. We have a TP-LINK wifi router in our office distributing a pool of IPs 192.168.80-200. There are some windows and some linux boxes. One of the linux boxes (CentOS) ...
Ivan Petrushev's user avatar
0 votes
1 answer
506 views

IPV6: two interfaces with dhclient

I have eth0, eth1. For each interface run dhclient on default port 546 (547 ?). eth1 does not have connection to the network. If dhclient for eth0 bounds before dhclient eth2 starts the eth0 gets IP. ...
Hedgehog's user avatar
  • 123