os-net-config should support disabling autoconfiguration on non-IPv6 interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
In Progress
|
Low
|
Dan Sneddon |
Bug Description
If os-net-config is given the following configuration:
-
type: interface
name: nic5
use_dhcp: false
use_dhcpv6: false
addresses:
-
ip_netmask: 192.0.2.100/24
It will generate the following configuration:
/etc/sysconfig/
# This file is autogenerated by os-net-config
DEVICE=eth4
ONBOOT=yes
HOTPLUG=no
NM_CONTROLLED=no
PEERDNS=no
BOOTPROTO=static
IPADDR=
NETMASK=
However, this may result in this interface being configured automatically using RAs and SLAAC. This can interfere with statically-
os-net-config should support an option for all interface types, ipv6_autoconf, which if set to no will add this line to the resulting config:
IPV6_AUTOCONF=no
This would disable automatic configuration of IPv6 on interfaces where this is not desired.
Changed in os-net-config: | |
importance: | Undecided → High |
I think this might best be implemented by adding IPV6_AUTOCONF=no to the ifcfg file when the interface is marked with use_dhcpv6=no. This doesn't handle the (probably rare) use case of enabling autoconf but specifically disabling DHCPv6, but I think that combination is unlikely given the type of environments os-net-config is used in.