linux ipv6内核设置

linux ipv6内核设置,进入/proc/sys/net/ipv6:
conf/all/forwarding
Type: BOOLEAN
在两个接口之间进行global IPv6 forwarding (数据包转发.)

IPv6 当中您不能单独控制一个设备的 forwarding (数据包转发). forwarding 的控制由IPv6-netfilter 完成. 当值为"0"时 数据包转寄的能力被关闭,数据包不会离开各自的接口(包括物理/虚拟)比如 tunnel. 当值为"1"时 数据包转寄的能力被开启.
Default: FALSE if global forwarding is disabled (default), otherwise TRUE
设定主机/路由的interface-specific动作.
Value FALSE: By default, Host behaviour is assumed. This means:
IsRouter 标致没有在Neighbour Advertisements当中.
当需要的时候就发送路由请求.
如果accept_ra是TRUE (default), 接受路由广告.
如果accept_redirects 是 TRUE (default), 接受重定向.
Value TRUE: 如果具备本地forwarding(转寄),路由器动作为假定.这和上面的情况相反:
IsRouter 标致存在于Neighbour Advertisements当中.
不发送路由请求.
忽略路由广告.
忽略重定向.

accept_ra
Type: BOOLEAN
默认值: enabled if local forwarding is disabled. disabled if local forwarding is enabled.
接受IPv6路由广告.并且根据得到的信息自动设定. (forwarding=1时,accept_ra=2,也可以接口路由器公告)

autoconf
Type: BOOLEAN
Default: TRUE
设定本地连结地址使用L2硬件地址. 它依据界面的L2-MAC address自动产生一个地址如:"fe80::201:23ff:fe45:6789" 

use_tempaddr
临时ipv6地址


参考文档:

核心设定 in /proc-filesystem

猜你喜欢

转载自blog.csdn.net/l0605020112/article/details/42837093