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
3
votes
2 answers

How to configure dhclient on CentOS to get IP from a specific DHCP server

I have a situation where I am able to launch CentOS 6.6 images on a subnet such that the VM instances get their IP addresses from the virtual gateway of the subnet. Now this gateway has gone wonky and I don't have the access to fix it, so I have set…
xkcd
  • 444
  • 3
  • 7
  • 16
3
votes
1 answer

How to remove only IPv6 addresses with iproute2?

I'm trying to write an application that can change the IP address of the local machine. When doing some experimentation, I've noticed that if I freshly connect to a wireless network, I am assigned an IPv6 address that is a function of the MAC…
jonderry
  • 187
  • 3
  • 12
2
votes
2 answers

Issue with RHEL7 and disabling NetworkManager

Okay community, let's see if we can figure this one out, cause I'm out of answers. Where I work I am setting up a bunch of RedHat Enterprise Linux servers. There is a collection of RHEL6 and RHEL7 servers. On the RHEL6 servers, I am using the…
cjmaio
  • 31
  • 1
  • 1
  • 3
2
votes
1 answer

How to pass a vendor-specific options to a DHCP server using dhclient?

I need to send vendor-options to DHCP server using dhclient (ISC). As I understand I need to describe that options in the dhclient.conf. Do I need make new "space" for options? Or I can do "send"? Can someone help me with this or give me, please,…
Hedgehog
  • 123
  • 4
2
votes
5 answers

resolv.conf after reboot on CentOS 5.5 EC2 instance

I'm having trouble getting my CentOS 5.5 EC2 instances (both i386 and x86_64) to properly populate resolv.conf after booting. No matter what I do, I end up with the default EC2 resolv.conf: ; generated by /sbin/dhclient-script search…
organicveggie
  • 1,061
  • 3
  • 14
  • 27
2
votes
2 answers

Have to dhclient each restart to access internet

So each time I restart my ubuntu server (virtual 10.04, via Xencenter), I have to call dhclient before I can access the internet: http://img813.imageshack.us/i/dhclient.png/ What do I need to change to get internet access automatically? Apologies…
Zeophlite
  • 125
  • 1
  • 5
2
votes
2 answers

Linux:/sbin/dhclient to bind to a specific interface?

I'm running RHEL5.5 and have several network interfaces (eth0, eth1, eth2) on the machine. I wish to make /sbin/dhclient bind its UDP port 68 on specific interfaces (eth0 and eth2) but when I do 'netstat -anp | grep 68' I see: udp 0 0…
QAZ
  • 121
  • 1
  • 4
2
votes
1 answer

My network interface changes names, so DHCP / dhclient cannot operate on it

On some ArchLinux servers I've switched from dhcpcd to dhclient, but the servers are not receiving IP. Upon inspection with journalctl I see that, on all occasions the IP was not received, dhclient attempted to operate on the interface and then the…
haelix
  • 187
  • 2
  • 6
2
votes
1 answer

different DHCP behavior between machines using NetworkManager and not using NetworkManager

can anyone please shed some light on the differences I list below. And maybe explain why NetworkManager does it differently. And please advise if we can change NetworkManager to behave more like the non-NetworkManager scenario. Both CentOS 7.8…
jodlgc
  • 25
  • 4
1
vote
0 answers

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: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether e0:d5:5e:13:19:d9 brd ff:ff:ff:ff:ff:ff inet 192.168.1.208/24…
1
vote
1 answer

eth0 with static ip gets shutdown after dhclient fails

I have a Nvidia Jetson TX2 SoC in an Connecttech Astro carrier board running Ubuntu 16.04. The carrier has two Gigabit Ethernet ports which I would like to configure with static IPs. In system settings -> network: Wired Connection 1 ->IPv4…
schrödinbug
  • 111
  • 3
1
vote
0 answers

ubuntu 14.04 LTS change dhclient lease file location

I cannot find how to change dhclient lease file location. By default (and currently) it is in /var/lib/dhcp, but I want this file to go to another place. I did ps ax | grep dhclient and got this result: dhclient -1 -v -pf /run/dhclient.eth0.pid -lf…
1
vote
0 answers

How to send several instances of the vendor-specific options to a DHCP server using dhclient?

I need to send vendor-options to DHCP server using dhclient (ISC). I've added following lines in the dhclient.conf: option dhcp6.vendor-class code 16 = {integer 32, integer 16, string}; send dhcp6.vendor-class
van-mronov
  • 11
  • 2
1
vote
1 answer

dhclient asking for new routing every 1500 seconds, removing my static routing, cron not working

I have a problem with cron job on my ubuntu server 12.04. I have two internet providers - one for fast speed, second - for local resources. So, I'm using command route to up the static routing for second provider. But the point is that the dhclient…
1
vote
2 answers

DHCP clients: Where is the hostname going to come from

We are building a private cloud here, VMs have at least 2 NICs, sometimes 3 or 4, each may be statically configured for IPv4 and/or IPv6 or be configured by DHCP or a combo of the two. Yes it's a mess, but this is the design I have to work…
Ira
  • 139
  • 2