It is complicated to install and test IPv6 protocols in Linux. You need to load commands on the module for configuration and debugging. Now let's introduce the specific situation in this regard. First, we will introduce how to install the ipv6 protocol in linux.
◆ Install IPv6 in Linux
The Linux kernel version must be later than 2.2.0. Taking the RedLinux9 0 system as an example, you can use the following command to load the IPv6 protocol module:
- [root@localhost net]# modprobe ipv6
If the IPv6 module has been successfully installed, check whether the/proc/net/if_inet6 file exists. For example:
- [root@localhost net]# more if_inet6
-
- 00000000000000000000000000000001 01 80 10 80 lo
-
- 20010da88007000102e081fffeb12b1e 02 40 00 00 eth0
-
- fe8000000000000002e081fffeb12b1e 02 40 20 80 eth0
◆ View IPv6 protocol addresses in Linux
In Linux, you can use the ifconfig command to view the IPv6 Protocol address and working conditions. The specific command is:
- [root@localhost net]# ifconfig –a
The command output result is as follows:
- eth0Link encap:EthernetHWaddr 00:E0:81:B1:2B:1E
-
- inet addr:X.X.X.XBcast:X.X.X.XMask:255.255.255.128
-
- inet6 addr: 2001:da8:8007:1:2e0:81ff:feb1:2b1e/64 Scope:Global
-
- inet6 addr: fe80::2e0:81ff:feb1:2b1e/64 Scope:Link
-
- UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
-
- RX packets:254532256 errors:0 dropped:0 overruns:0 frame:0
-
- TX packets:244110437 errors:0 dropped:0 overruns:0 carrier:0
-
- collisions:0 txqueuelen:1000
-
- RX bytes:3737272748 (3.4 GiB)TX bytes:2766824028 (2.5 GiB)
-
- Interrupt:233
After operating the IPv6 protocol in linux, we can test its connectivity through a century of websites.