Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2014 10:40:27 +0000
From:      freebsd@jonathanprice.org
To:        freebsd-net@freebsd.org
Subject:   Should I be using ipv6_activate_all_interfaces or ip6addrctl_policy="ipv6_prefer"
Message-ID:  <88a42e1006e3fac7508a9419e342f1b2@mail.jonathanprice.org>

next in thread | raw e-mail | index | archive | help

Hello,

I am configuring a server with IPv4 and IPv6 addresses and have noticed that FreeBSD seems to be preferring IPv4, such as when establishing SSH connections.

After reading through /etc/defaults/rc.conf, and later /etc/rc.d/ip6addrctl I have come to the conclusion that I have two ways to tell FreeBSD to prefer IPv6:

1) Add ipv6_activate_all_interfaces to /etc/rc.conf
2) Add ip6addrctl_policy="ipv6_prefer" to /etc/rc.conf

Could anybody with a little more knowledge on the matter explain to me which of the two options is more preferential?

If it helps, I only have a single NIC in the server, and it does not function as a gateway.

Thanks,
Jonathan.

(I do apologise if this email ends up being sent as HTML. I haven't tried sending plaintext from this particular webmail client before).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88a42e1006e3fac7508a9419e342f1b2>