Verify IPv6 status in /proc/sys/net/ipv6
In this step, you will explore the /proc
filesystem to check the IPv6 status of your system. The /proc
filesystem is a virtual filesystem that provides information about processes and other system information. It's a great place to find details about your running Linux kernel.
Specifically, we will look at files within the /proc/sys/net/ipv6/
directory. These files contain parameters that control the behavior of the IPv6 protocol stack.
To view the contents of the /proc/sys/net/ipv6/
directory, you can use the ls
command:
ls /proc/sys/net/ipv6/
You will see a list of files and directories. Each file represents a specific IPv6 kernel parameter.
anycast_src_interval bindv6only conf flowlabel_reflect flowlabel_state icmp ip6frag_high_thresh ip6frag_low_thresh ip6frag_secret_interval ip6frag_time neigh route tcp_metrics_hash_size tcp_metrics_info tcp_metrics_purge_interval tcp_metrics_reg_interval tcp_metrics_req_interval tcp_metrics_slack tcp_metrics_sync_interval tcp_metrics_timeout udp_metrics_hash_size udp_metrics_info udp_metrics_purge_interval udp_metrics_reg_interval udp_metrics_req_interval udp_metrics_slack udp_metrics_sync_interval udp_metrics_timeout
One important file is disable
. This file indicates whether IPv6 is disabled (1
) or enabled (0
) system-wide.
To view the content of the disable
file, you can use the cat
command:
cat /proc/sys/net/ipv6/disable
The output will be either 0
or 1
.
0
- If the output is
0
, IPv6 is enabled.
- If the output is
1
, IPv6 is disabled.
Another useful file is conf
. This is a directory containing configuration files for each network interface and a default
directory for default settings.
Let's look at the contents of the conf
directory:
ls /proc/sys/net/ipv6/conf/
You will see directories for each interface (like all
, default
, eth0
, lo
).
all default eth0 lo
You can then check the IPv6 status for a specific interface, like eth0
, by looking at the disable_ipv6
file within its directory:
cat /proc/sys/net/ipv6/conf/eth0/disable_ipv6
This file also contains 0
(enabled) or 1
(disabled) for that specific interface.
0
Exploring the files in /proc/sys/net/ipv6/
provides a low-level view of your system's IPv6 configuration.
Click Continue to move to the next step.