CentOS system IPv6 Configuration
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 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)