CentOS system IPv6 configuration

Source: Internet
Author: User
1. automatically obtain the IPV6 address, modify the/etc/sysconfig/network file, add the following configuration text NETWORKING_IPV6 = yes, and then, red Hat Linux training run command servicenetworkrestart use command ifconfig-a to view IPV6 address information 2. static IPV6 address device, modify/etc/sysconfig/network-script/ifcfg-eth 1. automatically obtain the IPV6 address, modify the/etc/sysconfig/network file, and add the following configuration text NETWORKING_IPV6 = yes. then, red Hat Linux training run command service network restart run command ifconfig-a to view IPV6 address information

2. for static IPV6 address devices, modify the/etc/sysconfig/network-script/ifcfg-ethX file and add IPV6INIT = yes (whether to enable IPV6 address upon startup) IPV6_AUTOCONFI = no (whether to use the automatic configuration of IPV6 addresses) IPV6ADDR = 2001: da8: 8003: 202: 120: 1: 1 (IPV6 address) IPV6DEFAULTGW = 2001: da8: 8003: 801: 1 (IPV6 address gateway) and then run the command service network restart to use the command ifconfig-a to view IPV6 address information

3. IPV6 configuration for temporary devices and commonly used commands for IPV6 in Linux: Linux supports IPV6 after kernel version 2.2.0, check whether the/proc/net/if_inet6 file exists to check whether your system supports IPV6. if not, try the following command to load the IPV6 module: # modprobe ipv6 can be used after it is loaded successfully # ifconfig eth0 inet6 add IPV6ADDR (IPV6ADDR is the IPV6 address of the temporary device) # route-A inet6 add default gw IPV6GATEWAY dev ethX (add ipv6 gateway IPV6GATEWAY address for the network device ethX) # ping6 IPV6ADDR (test ping IPV6 address)
Related Article

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.