search for: dhclientargs

Displaying 3 results from an estimated 3 matches for "dhclientargs".

2013 Oct 10
3
Detect dhclient leases file in centos
...gateway; do echo $gateway ; return 0; done) fi [ -n "$gateway" ] && echo $gateway } How do you have the lease file in there? Is it only for some linux distro, say ubuntu? In centos is hardcoded to another directory: root localhost /etc/sysconfig/network-scripts # grep DHCLIENTARGS ifup-eth DHCLIENTARGS="${DHCLIENTARGS} ${ONESHOT} -q ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid" The attached patch correct this issue. Can you please import it? Thanks, Nuno Fernandes -----------------------------------------...
2015 Oct 05
1
CentOS 7 & dhclient hooks
Hi, I have CentOS 7 and I am trying to get dhclient hooks working. I have 1) created file /etc/dhcp/dhclient-enp4s0.conf, 2) created directories /etc/dhcp/{dhclient-enter-hooks.d, dhclient-exit-hooks.d}, 3) added line 'DHCLIENTARGS="-nc"' into file ifcfg-enp4s0 and 4) added file /etc/dhcp/dhclient-enter-hooks.d/test with line echo "executed enter-hook", 5) but I was not getting any output after executing ifdown enp4s0 && ifup enp4s0. However, I was able to do this with NetworkManagers dispath...
2009 Oct 08
12
resolv.conf rewritten every reboot. How to figure out who and why?
My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in "rpm -qa|grep -i dhcp" is dhcpv6-client-1.0.10-16.el5, and nothing in there is named dhcpclient. I'd like to figure out what software is rewriting this file and why. man 5