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.

68 questions
33
votes
2 answers

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. However, the command prints the following to the…
AlfaZulu
  • 545
  • 1
  • 5
  • 9
15
votes
1 answer

How to request dhcp (using dhclient) on a virtual interface (i.e. eth0:1)

This seems to work fine: dhclient eth0 ifconfig eth0:1 192.168.1.105 up But not this: ifconfig eth0 192.168.1.105 up dhclient eth0:1 Is there any way to get dhcp on a virtual address?
coolaj86
  • 911
  • 2
  • 10
  • 19
13
votes
5 answers

Register A records for my Linux box on my Windows 2008 DNS/DHCP server

I've a network which is mainly Windows: Windows 2008 server (with DNS/DHCP as well as AD), and various mainly Windows machines (servers, XP, 7). I know trying to add few Linux boxes, and can't make them appear on the DNS server. I'm using Ubuntu…
Uri
  • 233
  • 1
  • 2
  • 6
12
votes
2 answers

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 from dhclient-script how that address is being…
Aaron
  • 223
  • 1
  • 2
  • 6
11
votes
3 answers

How to configure radvd, dhcpd6, routing and /64 subnet based on delegated prefix by DHCPv6-PD server?

My ISP has just started IPv4/IPv6 dual stack service. In order to connect IPv4/IPv6 internet, almost all users usually use a CPE leased by the ISP. But I want to use my Linux router instead of such CPE, because my router has so many roles(a lot of…
takaomag
  • 241
  • 1
  • 3
  • 6
9
votes
6 answers

Update hostname from Debian machine with DHCP to a Windows 2008 DNS server

I have a XenServer installation with Debian (lenny) machines created on a daily basis using a script which creates the machine from a template and assigns it with a new hostname. Our network has a Fortinet 60B appliance which servers as the DHCP…
Electric Monk
  • 195
  • 3
  • 8
8
votes
4 answers

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 chkconfig network on service network restart My network…
Daniele Testa
  • 631
  • 4
  • 10
  • 18
7
votes
1 answer

Mac OSX server command equivalent for dhclient?

Is there an MacOS command that makes a dhcp request, and renews the old lease, drops it for a new one, or usefully reports errors or lack of response from a dhcp server? This would both help fix networking on the machine after problems on the…
John Hall
  • 213
  • 1
  • 2
  • 7
7
votes
5 answers

Why is dhclient issuing a unicast DHCPREQUEST every ~15 seconds instead of at T1/T2 timers?

I am running a CentOS 6.2 server as my gateway and firewall, while also providing some internal services. This is a setup I have had for years using various hardware and distributions (redhat based). Recently I have ran across an internet…
user1146281
  • 101
  • 1
  • 1
  • 3
6
votes
0 answers

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 dhclient.eth0.leases with expired date inside. This…
Roman_G
  • 63
  • 1
  • 4
5
votes
1 answer

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: root@backend01:/etc/dhcp/dhclient-exit-hooks.d#…
Kai
  • 315
  • 1
  • 4
  • 14
5
votes
1 answer

Request multiple IP-addresses via DHCP on a single physical interface (OpenBSD)

On OpenBSD, is it possible to request multiple IP-addresses via DHCP on a single physical interface? It looks like DHCP leased addresses can't be assigned as aliases. I though of creating a virtual interface and forward traffic to the physical…
watain
  • 141
  • 3
  • 14
4
votes
0 answers

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/dhclient* ; dhclient6 -v eth0 Other attempts: rm…
Ivan Kalchev
  • 149
  • 1
4
votes
4 answers

Configuring DHCP on RHEL 6

I have a fresh install of RHEL6 and I am unable to find any config file to do advanced configuration for dhclient. I am trying to find something like dhclient.conf on Ubuntu so I can modify options like supersede domains, fqdn, Maybe they should be…
frisco
  • 143
  • 1
  • 4
3
votes
1 answer

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: #Generated by resolvconf search ttu.edu nameserver…
Chuck
  • 31
  • 2
1
2 3 4 5