I am using NetworkManager with dhclient to obtain an IPv6 address from my ISP.
It appears by default NetworkManager generates the following command to request an ipv6 address:
/sbin/dhclient -d -q -6 -N -sf /usr/libexec/nm-dhcp-helper -pf /run/NetworkManager/dhclient6-enp3s0.pid -lf /var/lib/NetworkManager/dhclient6-fc297a04-7cca-4345-be77-1c4dd4289ac6-enp3s0.lease -cf /var/lib/NetworkManager/dhclient6-enp3s0.conf enp3s0
I need this to be:
/sbin/dhclient -d -q -6 -P --prefix-len-hint 48 -sf /usr/libexec/nm-dhcp-helper -pf /run/NetworkManager/dhclient6-enp3s0.pid -lf /var/lib/NetworkManager/dhclient6-fc297a04-7cca-4345-be77-1c4dd4289ac6-enp3s0.lease -cf /var/lib/NetworkManager/dhclient6-enp3s0.conf enp3s0
essentially I have to replace the -N with -P --prefix-len-hint 48
After spending a couple of days googling around, I cannot really find an answer as to how to do this. I see the scripts in /etc/sysconfig/network-scripts contain references to the variables DHCPV6 and DHCPV6_OPTIONS. I tried placing DHCPV6=true and DHCPV6_OPTIONS="-P --prefix-len-hint 48" in /etc/sysconfig/network-scripts/ifcfg-enp3s0, but this did not work.
Can someone enlighten me as to what the correct procedure is? I simply cannot find the right sequence of keywords to google the answer I need.
Thank you,
Vin
passing custom parameters to dhclient from NetworkManager
-
- Posts: 38
- Joined: 2017/02/16 16:41:29