Questions tagged [dhclient]

A simple Dynamic Host Configuration Protocol (DHCP) client to get IP addresses from a DHCP-Server.

Filter by
Sorted by
Tagged with
2
votes
0answers
31 views

dhclient Active for Interfaces with BOOTPROTO=none

I'm facing a strange issue with my Linux bridge system (CentOS 7.6.1810). I have two interfaces configured with a bridged network (IP of the bridge is 192.168.42.253). When I reboot the system, it ...
0
votes
1answer
32 views

dhclient is not getting an lease / ip address from dhcp - but windows gets one

How could it be that I get easily an ip address with Windows 10 network manager and not with simple Linux QNAP NAS System? And not working situation. I tried to renew the ip address manually. [...
3
votes
2answers
93 views

Debian workaround 838871: dhcp network configuration without blocking boot process

Is there a workaround for Debian Bug #838871? Problem: I want to have a network configuration on Debian with the following properties: Automatically ifup network interface when a cable is plugged in ...
0
votes
1answer
41 views

How to set an IP from a specific range with dhcp?

I want to set a IP to my Debian machine using dhcp but I only want to select that IP from a specific range . For example, my net is 10.0.100.0/24 and the range has to be from 10.0.100.90 to 10.0.100....
0
votes
0answers
57 views

Why do I have to run dhclient on boot?

After a top-notch decision to blindly dist-upgrade, I have to run dhclient after every boot. I understand that I can fix this with a script on startup, but it bothers me that I have no idea what ...
0
votes
0answers
26 views

How to get DHCP info from DHCP Client to DHCP Server

I have a firewall with an Internet-facing ethernet, and a home LAN facing ethernet. The Internet-facing interface acquires DNS server ip addresses from the ISP's DHCP server. I would like to propagate ...
1
vote
1answer
65 views

Slow internet connection after MAC address spoof

I'd like to ask a question about spoofing MAC addresses. I'm trying it out in my own wifi network just to see how it's done. I'm running ubuntu 16.04 LTS. Let's say my original MAC address is 00:22:...
0
votes
1answer
54 views

Force run a dhclient script?

I'm seeking to prepend a local resolver into /etc/resolv.conf using a dhclient script at /etc/dhcp/dhclient.conf: prepend domain-name-servers 127.0.0.1; Is there a way for me to force dhclient to ...
1
vote
0answers
78 views

Beaglebone Debian/Wheezy. Static IP address some times is changed

I have Beaglebone Black with installation of Debian 7.11 Wheezy I have network which is created from Beaglebone and the Beaglebone IP address is set to be static: 192.168.20.1 This is my /etc/...
1
vote
0answers
53 views

Have to restart dhclient on enterprise network each time lease expires

I connect to a WPA2 enterprise network on Debian Jessie using Network Manager on dhclient. It works fine until the lease expires: Feb 04 15:52:31 arjun-thinkpad NetworkManager[26926]: <info> [...
0
votes
1answer
94 views

Where is current dhclient lease on RHEL7?

I cannot find any of dhclient.leaseon my RHEL7.4. There is no one in /var/lib/dhclient.
0
votes
1answer
274 views

Double entry in DHCP lease file

I noticed that my DHCP lease file (/var/lib/dhcp/dhclient.eth1.leases) has more than one entry for my external Internet-facing IP interface. Some of the lease entries have overlapping timeframe. I'm ...
0
votes
2answers
362 views

dhclient command does not allocate ip address to my interface

So I was trying to access a website through my browser but I couldn't. So I issued the ifconfig command to see if there was something wrong with the IP address I noticed that the interface enp0s3 ...
0
votes
1answer
114 views

DHCP DNS and Domain resolution NetworkManager

My environment is following, all cabled with gigalan, all latest Debian 9, vm with virtualbox on 2 different physical hosts. A mikrotik internet router which acts as DHCPD I configured it setting ...
1
vote
1answer
513 views

Why do I have so many /etc/resolv.conf.dhclient-new.xxxx files?

I don't understand why I have on one machine (debian 9) so many /etc/resolv.conf.dhclient-new.xxxx files my /etc/dhcp/dhclient.conf option rfc3442-classless-static-routes code 121 = array of ...
0
votes
1answer
2k views

Does openwrt have a dhcp client?

I was surprised that building a default open wrt config created an image without dhclient, After some digging we found odhcpd package for use as the dhcp server but I still can't find any package that ...
0
votes
1answer
1k views

Run dhclient on startup

I have this server that loses its network config on reboots, it's running Ubuntu Server 18.04, I tried the netplan commands but none generated a thing, maybe it's because the interface isn't even ...
0
votes
0answers
221 views

How to renew the IP with dhcp client if the AP changes the IP range without disassociate the clients

We are executing the dhclient for our Wi-Fi interface. When the Wi-Fi disassociates from the AP, we have a script that renews the IP automatically from the new AP: cat dhcpaction.sh #!/bin/sh ...
1
vote
1answer
363 views

dhclient does not work in opensuse 42.3, what's wrong?

On openSUSE 13.1 , dhclient eth0 works well, it re-request an IP address from DHCP server, which cost 1~2 seconds to finish. However, with openSUSE 42.3, dhclient always fails instantly. I don't know ...
0
votes
1answer
183 views

Supersede DNS at commandline (rather than directly editing /etc/dhcp/dhclient.conf)?

I know that I can use my chosen DNS by adding the following line to /etc/dhcp/dhclient.conf: $ supersede domain-name-servers 1.1.1.1, 1.0.0.1; I can verify that the correct DNS is being used as ...
1
vote
1answer
312 views

Automatically get IP address (DHCP) when plugging the ethernet cable in

I have a freshly installed system ; it's Raspbian (based on Debian), on a Raspberry PI, installed with raspbian-ua-netinst. I believe this is a general linux question, though feel free to redirect me ...
0
votes
1answer
119 views

Linux not running DHCP upon connecting to new VLAN

So I have autossh running on a Linux system, and it's configured to re-connect to my SSH server if it gets disconnected. I can confirm that this works by simply unplugging the NIC and plugging it back ...
1
vote
1answer
479 views

dhclient says it's bound to address - but ifconfig doesn't

I started dhclient with: syslog: ... Dec 27 03:26:03 HOST dhclient[13412]: DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 3 (xid=0x859ef640) Dec 27 03:26:03 HOST dhclient[13435]: ...
3
votes
1answer
644 views

Creating multiple WiFi clients with a single wireless interface

I am currently working on a project where I would like to be using a single TP-link wireless adapter and split it into multiple clients. What I've done so far; I was able to create multiple virtual ...
1
vote
1answer
108 views

What exactly does `iwconfig wlan1 essid “myWifi”` do?

I'm working on an embedded device with a limited amount of programs for managing the network. I ended up using the command: iwconfig wlan1 essid "myWifi" key "s:password" At times this works but I ...
1
vote
1answer
2k views

How to avoid dhclient default gateway on an interface

Here is an issue I have stumbled uppon a couple of times and for which I still have no solution. I have a NetworkManager managed box with two interfaces. Let's call them eth0 and eth1. Both NEED to ...
0
votes
3answers
889 views

DHCP client fails to get IP address (Modem EM7430)

O/S: Raspberry Pi running Raspbian GNU/Linux 8 (jessie) Kernel: Linux 4.9.24-v7+ Ran ip addr and confirmed wwan0 and wwan1 interfaces are created. wwan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu ...
1
vote
1answer
1k views

Not getting dynamic IP address by dhclient on a virtual Fedora

I run a course that includes practical classes on system administration. For that years ago I created a Fedora 20 virtual image -- it need not be a modern and secure one as it is only for executing ...
0
votes
1answer
820 views

ISC DHCP client: Where is the dhclient.conf?

Problem: I want to change the timeout of dhclient for embedded Linux that doesn’t have DHCP. What I did: I have compiled DHCP from isc.org.  I have compiled it with this CFLAGS: CFLAGS="-...
0
votes
1answer
3k views

CentOS 7: dhclient.conf prepend domain-name-servers not working

I need to prepend my /etc/resolv.conf with an entry. My interface is enp0s3. So I created /etc/dhcp/dhclient-enp0s3.conf and added the line: prepend domain-name-servers 127.0.0.2 When I restart ...
5
votes
3answers
8k views

Dhclient not updating /etc/resolv.conf

On Linux Mint, when I view the /etc/resolv.conf file, the first comment states that the /etc/resolv.conf file is generated by resolvconf(8). ~ $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file ...
0
votes
1answer
872 views

dhclient error “Bind socket to interface: No such device”

I experienced a strange error. If I tried to connect to the internet via WiFi, everything went well except the DHCP transaction. dhclient prints this error message Bind socket to interface: No such ...
4
votes
0answers
372 views

WLAN stick not working at boot time

I am failing to use a FRITZ!WLAN USB Stick N to connect my Raspberry Pi 1B to my wireless network. I see several problems, but am unable to locate and eliminate the root cause. The problem is ...
17
votes
2answers
10k views

how do you set up a linux client to use ntp information provided through dhcp?

there are so many tutorials out there explaining how to setup dhcpd server, in relation to providing ntp suggestions to dhcp clients, that I had always thought that ntp configuration was carried out ...
2
votes
0answers
611 views

dhclient logs flooded with useless information

I am using dhclient on Debian (isc-dhcp-client, isc-dhcp-common). The logs that dhclient is logging are flooded with copyright information and other useless stuff ("please consult README", "please ...
1
vote
1answer
2k views

dhclient - Applying configuration changes with no reboot

After editing some configurations on the dhclient configuration file (/etc/dhcp/dhclient.conf) the changes doesn't seem to have any effect until I reboot the machine. Since dhclient is running on the ...
0
votes
1answer
193 views

How do I remove delay in dhclient after DHCPNAK?

After moving to new AP, I restart dhclient to switch to the new network: DHCPREQUEST on <interface> to 255.255.255.255 port 67 DHCPNAK from <new router IP> <delay> DHCPDISCOVER on &...
0
votes
1answer
266 views

dhclient connecting to wlan0 after wpa-supplicant setup polls infinitely

I just wanted to try out how to connect to my WIFI WPA2 via terminal. Therefore I created "/etc/wpa_supplicant" network = { ssid = "nameOfWifi" psk = "passwordNumberThatIFoundOnTheWifiHardware" ...
7
votes
4answers
28k views

Check my DHCP lease?

Is there a way to show my current (client) DHCP lease? Or even better - retrieve all options/infos sent with DHCPACK?
10
votes
5answers
101k views

network.service Failed to start LSB: Bring up/down networking - Centos 7

I am experiencing an issue on Centos7 when attempting to start the network service. I receive the below error message. Failed to start LSB: Bring up/down networking The issue arised when I realised ...
1
vote
1answer
347 views

Raspbian Jessie: /etc/network/interfaces doesn't apply inet6 address. How to diagnose?

I'm experiencing a strange issue, and I don't really know how to diagnose it, or how to fix it. My problem is, that the static ipv6 assignment that used to work suddenly isn't applied any more at ...
4
votes
3answers
3k views

How to stop dhclient from updating resolvconf on Debian?

I want to use certain DNS servers regardless of whatever I get through DHCP. I'm trying to configure dhclient to ignore those, but I can't seem to get it to work. Per advice from this article I added ...
1
vote
2answers
3k views

Tell dhclient to not use an interface

I have been reading through man dhclient and man dhclient.conf and cannot find a way to get it to ignore an interface. As in, pretend it does not exist. I do not want to shut any interface down. I ...
7
votes
2answers
2k views

How to disable a specific interface (dhclient) from resolvconf?

I am using ubuntu/trusty64 Vagrant box with VirtualBox. I want to permanently disable nameserver 10.0.2.3 set by resolvconf based on Vagrant's default eth0 interface. I have a network defined in my ...
2
votes
3answers
3k views

dhclient prints strange error

Though it looks like it does its job it prints following annoying output # dhclient -r eth0 reload: Unknown instance: invoke-rc.d: initscript smbd, action "reload" failed. # dhclient eth0 reload: ...
0
votes
1answer
2k views

dhclient enter/exit hooks to update resolv.conf

I would want to append the below line to resolv.conf of all servers in our aws env and make sure it doesn't get overwritten options timeout:1 attempts:1 rotate I came across dhclient enter and exit ...
1
vote
2answers
2k views

Why are routes set in /etc/network/interfaces not added when the interface comes up?

Here is my interfaces file: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth0:0 iface eth0:0 inet static address 10.20.8.231 netmask 255.255.255.0 ...
1
vote
2answers
1k views

When no dhcp server answer, how can I force dhclient to use the static lease from dhclient.conf instead of a previous dhcp lease?

I have a piece of equipment I would like to default to a specific IP address when no dhcp servers are available. I have set the following static lease in /etc/dhcp/dhclient.conf: timeout 30; lease {...
5
votes
3answers
3k views

How to set static DNS with dhclient while resolv.conf keeps getting overwritten?

Following the Debian NetworkConfiguration wiki, I've been trying to setup static OpenNIC DNS with no success. The first thing I tried was directly editing /etc/resolv.conf, but it keeps getting ...
14
votes
2answers
1k views

Host name changed remotely by wifi?

Am am currently visiting TU Wien and today I connected my Debian Linux laptop to their eduroam wlan using wpa_supplicant and the credentials of my home institute - as always when I am visiting another ...