we used to disable IPV6_AUTOCONF when the DHCP option was chosen for the
container network (was only activated with SLAAC option).
however, this option is actually dependent on IPV6FORWARDING (which is
set to no by default), according to this rule:
IPV6_AUTOCONF=!IPV6FORWARDING
which enables it automatically when forwarding is disabled. this way, we
respect the defaults set by centos.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
$data .= "IPV6INIT=yes\n";
if ($d->{ip6} eq 'auto') {
$data .= "IPV6_AUTOCONF=yes\n";
- } else {
- $data .= "IPV6_AUTOCONF=no\n";
}
if ($d->{ip6} eq 'dhcp') {
$data .= "DHCPV6C=yes\n";
NETMASK=255.255.255.0
GATEWAY=4.3.2.1
IPV6INIT=yes
-IPV6_AUTOCONF=no
IPV6ADDR=2000::1/64
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=yes
-IPV6_AUTOCONF=no
IPV6ADDR=2222::1/64
IPV6_DEFAULTGW=fe80::1