All Products
Search
Document Center

:The error "error: " net.ipv6.conf.all.disable_ipv6 "is an unknown key" is returned when you run the sysctl -p command on a Linux instance

Last Updated:Apr 12, 2022

Problem description

The following error is displayed when sysctl-p is used.

error: "net.ipv6.conf.all.disable_ipv6" is an unknown key

Cause

IPv6 module is missing.

Solution

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • You can modify the configurations and data of instances including but not limited to Elastic Compute Service (ECS) and Relational Database Service (RDS) instances. Before the modification, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.

The following code provides an example of how to run the modprobeipv6 command to load the ipv6 module and then run the sysctl-p command.

Note: if the operating system is CentOS 7 or earlier, you must restart the server and then run the sysctl -p command.

Scope

  • Elastic Compute Service
  • Simple Application Server