On 12/03/2020 11:13 AM, Kairui Song wrote:
Hi Pingfan,
What is user specified network-legacy? Will this auto6 work with network-legacy?
And also, dracut.cmdline.7.asc didn't mention anything about
I think it should be updated to narrate either6 only works for
network-legacy.
network-manager and auto6/either6 behaviour, maybe need some dracut
update on the doc, or fix either6 for network-manager module.
This should be
described in network-manager. And I got this knowledge
from them. I will ping the guys.
Currently, I found this link may be helpful (
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/...
)
Thanks,
Pingfan
On Thu, Dec 3, 2020 at 10:56 AM Pingfan Liu <piliu(a)redhat.com> wrote:
>
> The parameter either6 is introduced to dracut by
> commit 67354eebbcd4c358b8194ba5fd1ab1cf7dbd42aa
> Author: Pingfan Liu <piliu(a)redhat.com>
> Date: Tue Apr 24 16:41:21 2018 +0800
>
> 40network: introduce ip=either6 option
>
> But now, dracut has switched from network-legancy to network-manager, which
> can not perceive 'either6' option, and accepts only either 'auto6'
or
> 'dhcp6' parameter.
>
> Take a look at either6 option, it tries its best to find a workable method
> by using dhcp6 as the fallback of auto6. Actually, the NetworkManager
> options ipv6.method=auto has achieved this goal.
>
> When using auto6, NetworkManager will automatically start DHCPv6 if the
> router announces to do so.
>
> Naturally, switching from either6 to auto6 to adapt to change.
>
> Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
> ---
> dracut-module-setup.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
> index 5c41e63..ec1ccc5 100755
> --- a/dracut-module-setup.sh
> +++ b/dracut-module-setup.sh
> @@ -373,7 +373,7 @@ kdump_install_net() {
> if [ -n "$_static" ]; then
> _proto=none
> elif is_ipv6_address $_srcaddr; then
> - _proto=either6
> + _proto=auto6
> else
> _proto=dhcp
> fi
> --
> 2.7.5
>