码迷,mamicode.com
首页 > 系统相关 > 详细

linux ipv6开启的配置文件

时间:2018-07-31 15:22:59      阅读:446      评论:0      收藏:0      [点我收藏+]

标签:ipa   failure   network   ipv4   sysconf   hosts   ldo   ipv6   device   

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开启的配置文件

标签:ipa   failure   network   ipv4   sysconf   hosts   ldo   ipv6   device   

原文地址:https://www.cnblogs.com/pinghengxing/p/9395311.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!