Enabling IPv6 for SC4SNMP¶
Older versions of Docker do not support IPv6 or have known issues with IPv6 configuration, so use the latest versions of Docker and Docker Compose, with Docker Compose 2.23.1 or later required for SC4SNMP.
Docker Compose uses IPv6_ENABLED to enable IPv6 for the SC4SNMP network, polling, traps, MongoDB, and the MIB server. The default value is false.
Configure IPv6¶
-
Set
IPv6_ENABLED=truein the.envfile:text IPv6_ENABLED=true -
COREDNS_ADDRESS_IPv6must be a unique address insideIPAM_SUBNET_IPv6and must not match the gateway.If the value is empty or outside the configured subnet, Docker can fail with an error such as
no configured subnet contains IP address fd02::....With the default subnet
fd02::/64and gatewayfd02::1, use an available address from that subnet, for example:text COREDNS_ADDRESS_IPv6=fd02::53 -
The default IPv6 subnet and gateway are configured in the Network configuration section of
docker_compose/.env:text IPAM_SUBNET_IPv6=fd02::/64 IPAM_GATEWAY_IPv6=fd02::1You can change these values for your environment. If you use a different subnet or gateway, select a unique
COREDNS_ADDRESS_IPv6from that subnet that is not the gateway. -
If you configure more than one IPv4 or IPv6 subnet in IPAM, update the
networkssection ofdocker-compose.yamlaccordingly.
For more information about IPv6 networking in Docker, see the Docker documentation.