Geting IPv6 address failed when Forwarding Enabled
Abstract
This Post explains why ipv6 address lost when ipv6 forwarding enabled, and proposed the solution of how to get SLAAC IPv6 address when forwarding is enabled.
经常会遇到自动配置的IPv6地址丢失或者不能获取的问题。一般情况是都是启用了IPv6转发功能引起的。本文分析了其原因及解决办法。
1. Introduction
By default, a Linux host on an IPv6 network will listen for and solicit router advertisements in order to choose an IPv6 address for itself and to set up its default route.This is referred to as stateless address autoconfiguration (SLAAC) [RFC4862] .
Additionally,if the Linux host considers itself to be a router then it will ignore all router advertisements. In this context, what makes the difference between router or not are the settings of the “accept_ra” in sysctl.conf file.
Explanation of this values is