CentOS 7中的IPv6配置选项是什么意思?


10

在CentOS上手动配置网络接口时(我正在尝试配置仅IPv6主机)以下设置的确切含义是什么?

我可以猜出其中一些名字的含义,但我不知道它们的含义(我的某些猜测可能是错误的)。这些配置选项是否有任何官方文档,我找不到任何文档?

从/ etc / sysconfig / network-scripts / ifcfg-eth0

IPV6INIT=yes          # I assume this just enables IPv6 networking on this interface?
IPV6_AUTOCONF=no      # Does this disable SLAAC?
IPV6_AUTOTUNNEL=no    # ?
IPV6_FAILURE_FATAL=no # Something to do with IPv6 not working not being an issue?
IPV6_DEFROUTE=yes     # ?
IPV6_PEERDNS=yes      # Does this mean we use the default gateway for DNS queries?
IPV6_PEERROUTES=yes   # Same as above?
IPV6ADDR=1::2/64      # This is obviously the IPv6 address and subnet mask
IPV6_DEFAULTGW=1::1   # This is obviously the default gateway

同样对于IPv4而言,设置DNS1DNS2存在,是否等同于存在IPV6_DNS1IPV6_DNS2存在?

Answers:


8

感谢您提供的出色链接,尽管我真的很想知道我指定的那些IPv6选项的含义,而不是对其含义的链接,因为链接可能会遭受链接腐烂的困扰。

从:

IPV6ADDR             #<addr/mask> - Where address is the first static, or primary, IPv6 address on an interface. 
IPV6ADDR_SECONDARIES #<addr/mask> Option additional addresses .
IPV6_AUTOCONF        #<yes/no> - Enable IPv6 autoconf configuration for this interface (an IPv6 address will be requested using Neighbor Discovery (ND)).
IPV6_AUTOTUNNEL      #<yes/no> - Control IPv6 automatic tunneling (device sit0)
IPV6_DEFAULTGW       #<addr> - IPv6 default gateway
IPV6_DEFROUTE        #Does option even exist?
IPV6_FAILURE_FATAL   #<yes/no> - Whether the device is disabled if IPv6 configuration fails.
IPV6FORWARDING       #<yes/no>- Control IPv6 forwarding (box acting as router).
IPV6INIT             #<yes/no> - Initialize this interface for IPv6 addressing.
IPV6_MTU             #<integer> IPv6 MTU for this link.
IPV6_PEERDNS         #<yes/no> - Does this option exist? I assume it does the same as the IPv6 version?
IPV6_ROUTER          #<yes/no> - Control sending of router advertisements and isRouter on neigbor advertisements.


# defaults:
# IPV6_AUTOCONF=(see IPV6FORWARDING)
# IPV6_AUTOTUNNEL=no
# IPV6_FAILURE_FATAL=???
# IPV6FORWARDING=no
#  if IPV6FORWARDING=yes: IPV6_AUTOCONF=no, IPV6_ROUTER=yes
#  if IPV6FORWARDING=no:  IPV6_AUTOCONF=yes
# IPV6INIT=no
# IPV6_PEERDNS=???
# IPV6_ROUTER=(see IPV6FORWARDING)

资料来源:https : //access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-networkscripts-interfaces.html

https://www.deepspace6.net/projects/initscripts-ipv6.html#idm140568487160560560

https://docs.oracle.com/cd/E37670_01/E41138/html/ol_about_netconf.html

cat /etc/sysconfig/network-scripts/ifup-ipv6


7

手册有些参差不齐。不同的手册有不同的故事部分。

该列表应包含您提到的所有选项;IPV6_ *选项通常像其ipv4一样工作。

就centos官方的而言……我想是维基,但我在那儿找不到我想要的东西。与往常一样,脚本本身是权威来源。


5
或者,您可以/usr/share/doc/initscripts-$VERSION/sysconfig.txt在该目录中以及其他文件中四处浏览。
jscott 2017年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.