Questions tagged [dhclient]

The tag has no usage guidance.

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

AWS Ubuntu 22.04 Interface Down on Reboot

Using Ubuntu 22.04.01 via AWS and just did a kernel update (among other items in apt upgrade) to 6.2.0-1017-aws and rebooted. Had to console in because connectivity was failing with no network changes....
0 votes
1 answer
769 views

Netplan/NetworkManager not using dhclient at boot

I would like to use dhclient as my DHCP client, and as systemd-networkd does not support this, I would like to switch to Network Manager in Ubuntu 22.04. My Netplan configuration is as follows: ...
3 votes
2 answers
7k views

I have to run command 'sudo dhclient' after every reboot

Since I have changed my router, on one PC I I have to run the command sudo dhclient eno1 after every reboot. I have upgraded to Xubuntu 20.04, but the problem is still present. How can I change that? ...
0 votes
0 answers
31 views

dhclient triggered by udev event give only IPV6 IP

I have an udev event that when a net adapter is plugged, dhclient is run to attribute an IP, I want to attribute an IPv4 but it always give me IPv6 address (which I don't want, When I run dhclient ...
5 votes
2 answers
3k views

Why does apparmor kill dhclient?

I successfully upgraded my KVM server to 20.04.1 LTS but when later trying to access it by ssh, there were no network route to the server, while the VMs still were happily running just great. Logging ...
1 vote
1 answer
1k views

Is there a way to disable the systemd DHCP client in 18.04 LTS and switch to the dhclient command line client?

I have a group of automation configs and scripts for Packer, Terraform, and Ansible, that I use for deploying K8S clusters on our in-house VMWare cluster. All of this is working great now with one ...
3 votes
2 answers
2k views

eduroam randomly drops connection

As the title says, when on eduroam my internet connection drops after some time (usually after a couple of minutes when I have a lot of traffic, e.g. zoom meetings, when there is less traffic it might ...
4 votes
0 answers
3k views

Ubuntu Server 22.04 LTS no DHCP on startup

I am wondering if there has been a regression with Ubuntu. Back when 18.04.3 came out, I noticed that my VM-based Ubuntu servers would no longer be able to get DHCP addresses from my Windows DHCP ...
0 votes
2 answers
1k views

Prevent Network Manager from using modified dhclient.conf file in Ubuntu 16.04 LTS

I use Ubuntu 16.04.1 LTS. Dhclient conf file is at /etc/dhcp/dhclient.conf . Everytime I connect to wifi (saved or new hotspot), Network Manager (NM) creates a conf file at /var/lib/NetworkManager/...
0 votes
1 answer
215 views

How to block NetworkManager from changing a line from dhclient.conf when merging?

In dhclient.conf I have a line send host-name = gethostname(); which I do not want to be changed by NM to send host-name = '<current short host name>' when generating the file in /var/lib/...
22 votes
3 answers
47k views

How can I reload dhclient without restarting network?

I am using ubuntu 14.04 on ec2 instance, I am changing dhcp settings as part of the provisioning process, and I cant find a way to reload the dhclient. Infact, theres no way to restart network on 14....
1 vote
1 answer
7k views

How do I make `ifup wlan0` return immediately if no dhcp lease can be obtained? [closed]

I have a small wireless embedded system based on Ubuntu 16.04. If the wireless interface is improperly configured or the access point is down, ifup wlan0 will never finish because dhclient doesn't ...
4 votes
2 answers
13k views

Can't get ipv6 address using dhcp

I can get the ipv4 address using dhcp,But can't get the ipv6 address. the dhcp server also support the ipv6 service. ifconfig eth0 eth0 Link encap:Ethernet HWaddr: 00:21:85:d3:a3:36 ...
0 votes
1 answer
1k views

Ubuntu 18.04 requires a manual dhclient command for network to work. Why? And how to fix it?

At least since a week ago, my ubuntu 18.04 sometimes does not have internet access. Despite that it shows in the GUI the wifi icon like normal. Interestingly, dig @8.8.8.8 google.com works, but ping ...
0 votes
1 answer
617 views

force system to not get new IP from dhcp

I have a VM running Ubuntu that usually after restart it will get a new IP from dhcp, even though the lease is not expired. For other distros like centos, the VM will keep the same IP after a VM ...
0 votes
1 answer
2k views

Network Manager doesn't respect DHCP settings?

Had my Ubuntu 20.04 system running without any issues for months, but lately I had to start running sudo dhclient after every reboot, otherwise I am not able to connect to the internet. I am fairly ...
0 votes
1 answer
344 views

Ubuntu Loses Network Connectivity After Update

I am experiencing something truly alarming. I recently ran an update on a bunch of ubuntu servers, literally all sorts of machines, different processors, including 2 Raspberry Pis running Ubuntu. I ...
0 votes
2 answers
3k views

Netplan dhcp not working. 2 minute startup delay Ubuntu 18.04+

I've seen a lot of this question, with no clear and ideal answer, so I am asking it myself. Ever since Ubuntu 18.04.3 (I think it was .3 that started it) through at least 20.04.1, I've been seeing a 2-...
2 votes
2 answers
842 views

No network from minimum net install

I did a minimum net install, but my new system is not starting the network automatically -- No IP address with my eth0 device. I installed dhclient package myself but that doesn't help. I thought it ...
1 vote
1 answer
2k views

I have to run command 'sudo dhclient' after every restart or disconnecting from wifi

I'm new to ubuntu. After installing a VPN, my internet stopped working. I searched for solutions over the internet. After a lot of trial and error, I figured that my internet started working once I ...
1 vote
2 answers
326 views

Dual Boot computer can reach sites under Windows, but not under Ubuntu

I have a dual boot system: Win-10, and Ubuntu 20.04. Under Windows, I can ping and get web service from everywhere. Under Ubuntu, I get response from some site, but not others. I boiled the problem ...
9 votes
5 answers
33k views

ifup cannot bring up eth0 after upgrading to 16.04

I've upgraded my server from 14.04 to 16.04. I can see following error on syslog: ifup[478]: Internet Systems Consortium DHCP Client 4.2.4 ifup[478]: Copyright 2004-2012 Internet Systems Consortium. ...
0 votes
0 answers
39 views

Why is my LAN and DHCP conf "not a private class subnet"?

I am maintaining a gateway server with a small LAN & wifi which acts as a firewall, backup server, broadband gateway, media server etc. It was getting overcomplicated with Bind9 so I just de-...
0 votes
0 answers
1k views

dhclient doesn't renew lease when NTP syncs the time backwards

# uptime -s 2020-10-31 15:24:21 # head -1 /var/log/syslog Oct 31 15:50:53 ... OBSERVATION: uptime is before the 1st timestamp in syslog DHCP IP IS GOT at 15:51 Oct 31 15:51:34 dhclient[841]: ...
0 votes
0 answers
90 views

notify-send not working in dhclient dispatcher script

I am detecting IP assigned by dhclient and trying to show it using notify-send. I have made a script and placed it in /etc/dhcp/dhclient-exit-hooks.d. Content of the script is as below #!/bin/bash ...
0 votes
0 answers
106 views

Assigning Private IP without dhclient

I am making custom python tkinter wifi application for ubuntu 18.04. I am using dhclient to assign IP once Wpa_supplicant has established connection. Sometimes, dhclient is taking time to assign ...
4 votes
1 answer
5k views

EOF error when running dhclient command

When I try to use dhclient vpn_vpn it shows an error as below: root@sunimali-HP-ProBook-450-G6:/home/sunimali# dhclient vpn_vpn cmp: EOF on /tmp/tmp.EnmkqhupY9 which is empty root@sunimali-HP-ProBook-...
1 vote
0 answers
2k views

19.10 Ubuntu “Temporary failure in name resolution” Suddenly!

An Ubuntu 19.10 machine has been experiencing sudden loss of network connectivity. It is on the same network as several Windows and Mac systems which never experience these network problems. When the ...
0 votes
0 answers
171 views

Needing to release dhclient every startup

Every startup I need to run dhclient -r wlp4s0 dhclient wlp4s0 To get my wifi to work properly. Otherwise my wifi is connected but does not stream data. I am wondering what is going on exactly and ...
0 votes
1 answer
3k views

Prevent DHCP overriding NTP configuration

How can Ubuntu 16.04 LTS be forced to use the manually configured list of NTP servers in /etc/ntp.conf even if DHCP tries to provide a different one? On Ubuntu 16.04 LTS (and probably all later ...
1 vote
0 answers
335 views

dhclient disconnects after few seconds

I have been fighting with the interface of my ubuntu 16 lts server to connect to a wifi on startup. Currently I connect using wpa_supplicant and dhclient. If I do both manually, I get connected ...
2 votes
1 answer
2k views

hostname is not set from DHCP server

I am using netplan to configure my wired interface via DHCP: network: version: 2 renderer: networkd ethernets: eno1: dhcp4: yes dhcp6: no I uninstalled dhclient and installed ...
2 votes
2 answers
6k views

Ubuntu 18.04 unable to reach DNS after upgrade

I recently upgrade my Ubuntu Virtual Machine (VirtualBox 5.2.8) from ubuntu 16.04 to 18.04 using do-release-upgrade -d. There were lots of issues during the upgrade. I kept having to restart/resume ...
0 votes
1 answer
1k views

dhclient does not send DHCPv6 Solicit message on disconnect/connect, keeps old lease

Network background: Connecting to an IPv4/IPv6 native dual-stack network on a campus with multiple VLAN's and network segments. Using only stateful DHCPv6 with no SLAAC permitted. When disconnecting ...
2 votes
0 answers
240 views

Use Same DNS Server (IPv6) for All Connections

I want to oblige a single computer to only use specific DNS servers, for all network connections, including new ones, and be sure that only these DNS servers will be used. I've found a solution by @...
0 votes
1 answer
2k views

How to change route table and activate it on ubuntu 18.04?

I am going to use the softether vpn client on Ubuntu 18.04. The vpn connection has been successfully connected. However, the web page will not load. So I added a route table. sudo ip route 173.21.42....
2 votes
0 answers
386 views

18.04 ignoring dhcp provided domain-name for name lookups during install

Brace for some pictures.. I'm installing "ubuntu server" using ipxe and I noticed that none of my short names work but the Fully Qaulified Domain Names (FQDN) do; the exact image being installed is as ...
0 votes
3 answers
1k 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:...
1 vote
0 answers
255 views

Why is /run/systemd/resolved.conf.d/isc-dhcp-v4-eno1.conf wrong?

Yesterday i updated Ubuntu 18.10, but after poweroff/poweron the DNS was wrong, so that routing worked, e. g. ping 8.8.8.8, but not name resolving. So i overwrote the resolving files, e. g. /etc/...
0 votes
1 answer
529 views

On 16.04, ifconfig-style interface-alias is lost when dhclient fails to get a lease

I have a lot of machines (both old ubuntu14.04 as well as newer ubuntu16.04) that have their integrated ethernet configured like this: /etc/network/interfaces: allow-hotplug eth0 iface eth0 inet ...
0 votes
1 answer
601 views

DHCP Discover ethernet frame check sequence incorrect

I did apt dist-upgrade on Ubuntu 18.04 LTS. After that I have broken dhclient. I can't get ip address from my ISP DHCP server. However Ubuntu gets IP from my dlink router. Static configuration works ...
1 vote
0 answers
332 views

No network connection after upgrading Ubuntu to 18.04 from 16.04

I have been trying to find a solution to my issue for three days now. Since the upgrade to 18.04, I cannot access the network, neither through cable nor WiFi. I've tried different solutions from ...
5 votes
1 answer
10k views

Does Ubuntu 18.04 use dhclient?

I'm trying to figure out how to configure my DHCP client on Ubuntu server 18.04. I have the following netplan configuration, coming from cloud-init: network: version: 2 ethernets: ...
0 votes
0 answers
259 views

no IP address for certain MAC

Please assist- I have a wifi radio that will not obtain an IP via DHCP. Basically, a DISCOVER packet is sent to the DHCP server, the DHCP server receives the packet, then responds with an OFFER but ...
1 vote
0 answers
22 views

How to get interface GETWAY with two WANs

I have 2 ISP connetions, first ISP use mac binding, second use PPPoE /etc/network/interfaces auto lo auto lan allow-hotplug gembird-white allow-hotplug gembird-black iface lo inet loopback iface ...
1 vote
0 answers
668 views

How do I get Ubuntu 16.04 to generate a type 3 DUID instead of a Type 1 DUID?

I'm trying to get IPv6 set up on a client (no GUI) using DHCPv6. It appears that Ubuntu by default configures dhclient to generate a Type 1 DUID (LLT) - an ID based on the mac address and the time of ...
0 votes
0 answers
35 views

DHCP not affected or updated by link change

My expectations are that when I swap the network cable dhclient will do a dance to either confirm the lease it has or discover a new address if the existing lease is not valid. However, When I swap ...
0 votes
2 answers
3k views

How to force dhcp client to allow a self defined domain name

I'm configuring a 14.04 lts server without network manager installed. I set in /etc/dhcp/dhclient.conf: send host-name "os-vps276.projet-okinawa.org"; supersede domain-name "projet-okinawa.org"; I ...
1 vote
1 answer
1k views

vpn conflict with dhclient on Ubuntu 16.04

I'm trying to keep a VPN connection to the internet running on my Ubuntu desktop all the time. I'm finding that when dhclient runs periodically, presumably to renew my DHCP lease, things go poorly and ...
1 vote
1 answer
1k views

Getting DHCP address in virtual machine with ubuntu 14.04 fails

I run Linux 14.04 in a virtual machine istalled on windows 10. I don't get an IP address in VM Linux (Windows ok). I see that ubunt looks on a wrong DHCP server address (I guess the variable is ...