Questions tagged [dhclient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
42 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
0 answers
317 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 ...
  • 103
0 votes
1 answer
351 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 ...
  • 1,118
0 votes
1 answer
607 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 ...
  • 111
0 votes
1 answer
173 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 ...
  • 151
1 vote
1 answer
2k 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? ...
  • 51
2 votes
2 answers
349 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 ...
  • 853
1 vote
2 answers
129 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 ...
1 vote
1 answer
925 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 ...
4 votes
2 answers
2k 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 ...
  • 141
0 votes
0 answers
27 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-...
  • 1,015
0 votes
2 answers
2k 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-...
0 votes
0 answers
714 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
78 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
51 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 ...
3 votes
1 answer
710 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 ...
  • 229
4 votes
1 answer
4k 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-...
0 votes
0 answers
131 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
2k 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 ...
  • 3,201
1 vote
0 answers
238 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 ...
  • 111
1 vote
0 answers
1k 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 ...
  • 913
2 votes
1 answer
1k 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 ...
  • 241
2 votes
0 answers
208 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 @...
  • 173
0 votes
1 answer
1k 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....
  • 21
2 votes
0 answers
359 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
972 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:...
0 votes
1 answer
872 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 ...
1 vote
0 answers
242 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/...
  • 199
0 votes
1 answer
441 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 ...
1 vote
0 answers
327 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 ...
  • 11
5 votes
1 answer
9k 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: ...
  • 111
0 votes
1 answer
571 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 ...
  • 3
0 votes
1 answer
310 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
0 answers
205 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
17 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 ...
  • 157
1 vote
0 answers
550 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
31 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 ...
2 votes
2 answers
5k 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 ...
  • 121
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 ...
  • 11
5 votes
1 answer
4k views

Apparmor denies several processes since a kernel change

I happened to encounter a very weird problem. I'm running Ubuntu 17.10 in development mode since around April, and ever since I have been trying to stay on the latest kernel RC to avoid nasty problems ...
2 votes
1 answer
2k views

How to add specific option to DHCP request of Ubuntu

I added the following lines to my /etc/dhcp/dhclient.cong option option125 code 125 = string; option option125 0D:E9:19:01:06:31:32:33:34:35:36:02:0a:31:32:33:34:35:36:37:38:39:61:03:03:61:62:63 ...
2 votes
0 answers
478 views

DVR cleint software for Ubuntu?

My DVR is working for windows based Client software but I would like to use Ubuntu base client software to record the videos and images. Can anyone suggest me the suitable software for DVR client ...
3 votes
0 answers
2k views

dhclient not renewing lease

I'm running Ubuntu 16.04.3 LTS and am having a strange problem with dhcp leases not renewing on one interface. The machine has one physical interface and two VLANs; ens3, ens3.1001 and ens3.2002. The ...
  • 31
0 votes
1 answer
1k views

How can I use "udhcpc" with "avahi-autoipd"?

I need the link local address to be acquired by the avahi-autoipd daemon, when the dhcp server goes out of network. How can I do this?
  • 121
1 vote
0 answers
2k views

dhclient wlan0 gets stuck

I setted the password/ssid using sudo iwconfig wlan0 essid *ssid* key *password* without any errors, but then when I try using sudo dhclient wlan0 it goes forever and never stops. I tried using sudo ...
  • 13
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 ...
  • 11
2 votes
0 answers
2k views

Ubuntu 16.04.2: Excessive DHCPDISCOVER in syslog

I have an Ubuntu 16.04.2 server with 5 network interfaces (eth0-eth4). The server started with 4 static interfaces. ETH0,2 = WANs (with static public ips) ETH3 = WAN (with static private ip) ETH1 = ...
user avatar
1 vote
1 answer
6k 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 ...
  • 343
1 vote
1 answer
8k views

Processes NetworkManager, wpa_supplicant, dhclient immediately respawn when I try to kill them [duplicate]

After I try to kill a process (speaking of NetworkManager, wpa_supplicant, dhclient) like this kill -9 PID (also tried -1 and -15), it reruns automatically... How can I kill it and prevent it from ...
  • 121
0 votes
1 answer
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/...
  • 41