linux ipv6开启的配置文件
Posted pinghengxing
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux ipv6开启的配置文件相关的知识,希望对你有一定的参考价值。
1、/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=9d1d6e2a-cfc5-4e60-8f28-b779a001b538
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPADDR=192.168.62.128
NAME="System eth0"
HWADDR=00:0C:29:61:6F:4C
PEERDNS=yes
PEERROUTES=yes
LAST_CONNECT=1532342670
IPV6INIT=yes
IPV6to4INIT=yes
IPV6FORDING=yes
IPV6ADDR=2002:db8:1:0::1/64
2、/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ww
NETWORKING_IPv6=yes
IPV6INIT=yes
#IPV6_DEFAULTGW=2002:db8:1:0::A%eth0
IPV6FORWARDING=yes
#IPV6_AUTOCONF=no
#IPV6_AUTOTUNNEL=no
#IPV6FORWARDING=no
3、/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.62.128 ww
#2002:db8:1::1 ww
4、
以上是关于linux ipv6开启的配置文件的主要内容,如果未能解决你的问题,请参考以下文章