FreeBSD 9, disable ipv6

How can I disable ipv6 on FBSD FreeBSD 9?

I don't want the link-local on any interface, besides ntpd seems not able to bind the ipv6 addresses giving me error during startup.
 
Not sure if this is correct, the settings changed a lot compared to 8.x and I'm still adjusting myself.

/etc/rc.conf:
Code:
ipv6_network_interfaces="none"    # Default is auto
ipv6_activate_all_interfaces="NO" # this is the default
 
SirDice said:
Not sure if this is correct, the settings changed a lot compared to 8.x and I'm still adjusting myself.

/etc/rc.conf:
Code:
ipv6_network_interfaces="none"    # Default is auto
ipv6_activate_all_interfaces="NO" # this is the default

I've already tried that, it doesn't do the trick.
 
The NTPd problem doesn't occur on the other server, so my fault I guess. Even though I did the same thing on both. Only difference is the fist is a virtual machine and the second one "physical". Anyway, still don't care for the ipv6 stuff. If someone knows how to disable it it'd be great.
 
DD said:
Anyway, still don't care for the ipv6 stuff.
You should. It won't be long until all IPv4 addresses are completely depleted.
 
SirDice said:
You should. It won't be long until all IPv4 addresses are completely depleted.

Those servers won't see any public IP, ever. :)

And to be totally honest I'm not skilled enough on ipv6 - yet - to risk using it in production environment when it's more the superfluous.
 
DD said:
And to be totally honest I'm not skilled enough on ipv6 - yet -
Neither was I but it never hurts to be prepared for the future. It'll also give you an edge over your colleagues as they will scramble to get educated when they're forced to migrate and you already know how it works ;)

to risk using it in production environment when it's more the superfluous.
Ah, yes, understandable.

Slightly offtopic, the 6th of June will be another IPv6 day. http://www.worldipv6day.org/
 
SirDice said:
Neither was I but it never hurts to be prepared for the future. It'll also give you an edge over your colleagues as they will scramble to get educated when they're forced to migrate and you already know how it works ;)

Sure but I barely have the time to check on the new FreeBSD release, you know. It's merely a question of having the time to do a bit of studying.

SirDice said:
Ah, yes, understandable.

And you know what? I'll stick with the 8.2 for now.
 
This is how we do it on our 9.0 boxes:
Code:
ip6addrctl_enable="NO"                  # New way to disable IPv6 support
ip6addrctl_policy="ipv4_prefer"         # Use IPv4 instead of IPv6
ipv6_activate_all_interfaces="NO"       # Do not automatically add IPv6 addresses

Guess you have to search for "ip6" as well as "ipv6".
 
DD said:
I don't want the link-local on any interface, besides ntpd seems not able to bind the ipv6 addresses giving me error during startup.

Setting
Code:
ifconfig_bge0_ipv6="inet6 auto_linklocal"
in rc.conf (change bge0 to your interface) has fixed the ntpd warnings for me (9.0-RELEASE).

I would suggest NOT disabling the link-local IPv6 address when using a kernel with IPv6 support (GENERIC does), because this may result in unexpected behaviors of the kernel (see ifconfig(8) BUGS section). Even if you do not use IPv6 yet, you will eventually ;)
 
Back
Top