Home > Operation and Maintenance > Linux Operation and Maintenance > How to check whether linux supports ipv6

How to check whether linux supports ipv6

青灯夜游
Release: 2022-05-09 15:31:56
Original
13803 people have browsed it

Two viewing methods: 1. Execute the "ifconfig" command to display the IP address and check the output information. If "inet6" information is included, it indicates that ipv6 is supported. 2. Execute the "netstat -tuln" command to detect the service monitoring IP, if the output result contains "tcp6" information, it means ipv6 is supported.

How to check whether linux supports ipv6

#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

Check whether the linux server supports ipv6

Method 1: Use the ifconfig command to check whether your IP address contains an IPv6 address

How to check whether linux supports ipv6

If the output result contains "inet6", it means that ipv6 is supported. If ipv6 is not supported, the output result will not contain "inet6".

Method 2: Use the netstat -tuln command to check whether there is an address in IPv6 format among the IPs monitored by the service.

方式二:(netstat -tuln)

If the output result contains "tcp6" information, it means ipv6 is supported.

Extended knowledge: How to enable IPV6

1. vim /etc/sysctl.conf

Modify the following values is 0, if not, just add it

net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6= 0
net.ipv6.conf .lo.disable_ipv6 = 0

2, vim /etc/modprobe.d/disable_ipv6.conf

Change the following value to 0, otherwise Just add

options ipv6 disable= 0

3. vim /etc/sysconfig/network

Change the following Modify the value yes, if not, just add it

NETWORKING IPV6=yes

At this point, the server-side support for ipv6 has been modified

4. Restart the server to test whether it supports ipv6

Restart command:

service network restart
Copy after login

How to check whether linux supports ipv6

After restarting, ifconfig checks the ipv6 information and sees about The output of ipv6 is fine.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to check whether linux supports ipv6. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template