IPv6 commands in Linux

Source: Internet
Author: User

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:

 
 
  1. [root@localhost net]# modprobe ipv6 

If the IPv6 module has been successfully installed, check whether the/proc/net/if_inet6 file exists. For example:

 
 
  1. [root@localhost net]# more if_inet6  
  2.  
  3. 00000000000000000000000000000001 01 80 10 80 lo  
  4.  
  5. 20010da88007000102e081fffeb12b1e 02 40 00 00 eth0  
  6.  
  7. 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:

 
 
  1. [root@localhost net]# ifconfig –a 

The command output result is as follows:

 
 
  1. eth0Link encap:EthernetHWaddr 00:E0:81:B1:2B:1E  
  2.  
  3. inet addr:X.X.X.XBcast:X.X.X.XMask:255.255.255.128  
  4.  
  5. inet6 addr: 2001:da8:8007:1:2e0:81ff:feb1:2b1e/64 Scope:Global  
  6.  
  7. inet6 addr: fe80::2e0:81ff:feb1:2b1e/64 Scope:Link  
  8.  
  9. UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1  
  10.  
  11. RX packets:254532256 errors:0 dropped:0 overruns:0 frame:0  
  12.  
  13. TX packets:244110437 errors:0 dropped:0 overruns:0 carrier:0  
  14.  
  15. collisions:0 txqueuelen:1000  
  16.  
  17. RX bytes:3737272748 (3.4 GiB)TX bytes:2766824028 (2.5 GiB)  
  18.  
  19. Interrupt:233 

After operating the IPv6 protocol in linux, we can test its connectivity through a century of websites.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.