Questions tagged [dhclient]

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

Use this tag for questions regarding the syntax of the utillity dhclient, the DHCP lease files in $DBDIR/dhclient.*leases and the configuration file /etc/dhclient.conf.

84 questions
25
votes
3 answers

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 automatically. Recently I started seeing clock…
nass
  • 1,438
  • 8
  • 19
  • 35
24
votes
9 answers

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?
madneon
  • 1,354
  • 1
  • 11
  • 19
16
votes
2 answers

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 scientific institution. When I opened a terminal…
cgogolin
  • 263
  • 1
  • 6
15
votes
6 answers

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 it wasn't taking my static IP address from the…
dlyxzen
  • 151
  • 1
  • 1
  • 4
8
votes
1 answer

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 get ip over dhcp, and they both add their default…
Dolapevich
  • 134
  • 1
  • 5
8
votes
3 answers

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 for glibc resolver(3) generated by resolvconf(8) To…
JeremyCanfield
  • 322
  • 2
  • 6
  • 13
7
votes
2 answers

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 Vagrantfile as follows: server.vm.network…
techraf
  • 5,831
  • 10
  • 33
  • 51
6
votes
3 answers

How to stop dhclient from updating resolvconf on Debian?

I want to use certain DNS servers on my Debian, 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 supersede domain-name-servers…
Red
  • 1,422
  • 1
  • 15
  • 18
6
votes
3 answers

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 overwritten. The wiki page lists three possible sources…
lscstu22
  • 85
  • 1
  • 1
  • 7
4
votes
2 answers

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 boots without blocking for a long time when no…
838871
  • 43
  • 4
4
votes
1 answer

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 wlan0.1's using iw I've changed their MAC with…
Stephen
  • 155
  • 10
4
votes
0 answers

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 reproducible on a Raspberyy Pi 3B. At the end of the boot…
Twonky
  • 171
  • 7
4
votes
1 answer

How is resolv.conf maintained when there are two network cards?

I have a Debian Wheezy VMware virtual machine guest with two network cards. One is in bridged mode and has access to the internet. The other is in host-only mode and does not. Some process, perhaps dhclient, is writing and overwriting…
drs
  • 5,363
  • 9
  • 40
  • 69
3
votes
0 answers

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 looks quite OK: > route -n Kernel IP routing…
2
votes
1 answer

How to release and renew DHCP lease using dhclient, without loosing connectivity

I want to be certain this will work before I try it, since I'm dealing with a headless Pi (Zero W if it matters) that is only ever accessed via SSH. I've set up an address reservation in my router for the Pi, this is more or less essential, both to…
dgnuff
  • 123
  • 1
  • 4
1
2 3 4 5 6