[CentOS] CentOS 7 & dhclient hooks
Tero M
termant at gmail.comMon Oct 5 16:29:25 UTC 2015
- Previous message: [CentOS] COMPILATION ERROR dev_t, into_t , no_tetc
- Next message: [CentOS] CentOS 7 & dhclient hooks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 dispather scripts, but I prefer old school dhclient hooks. :-) sincerely Tero M
- Previous message: [CentOS] COMPILATION ERROR dev_t, into_t , no_tetc
- Next message: [CentOS] CentOS 7 & dhclient hooks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list