-   *BSD (
-   -   How to disable ipv6 on NetBSD? (

Lord Estraven 11-14-2008 10:58 AM

How to disable ipv6 on NetBSD?
Because pkg_add always tries ipv6 first, I am getting long, unnecessary delays when using pkg_add to install packages over the internet. As I have absolutely no need whatsoever for ipv6, I would like to disable it, but the only stuff on disabling it I've been able to find involves a kernel recompile, which I simply do not have the time to do. Can anyone tell me how to disable ipv6 so that pkg_add doesn't annoy me?

rocket357 11-18-2008 03:08 PM

You could try 6to4:

Or you could use a non-ipv6 mirror in your PKG_PATH:

Lord Estraven 11-21-2008 10:04 PM

I'm using a non-IPV6 mirror, and NetBSD tries IPV6 anyway. And I'd really rather not bother with IPV6 over IPV4 tunneling... Isn't there just a sysctl.conf option or something?

rocket357 11-22-2008 03:42 AM


Originally Posted by Lord Estraven (Post 3350572)
I'm using a non-IPV6 mirror, and NetBSD tries IPV6 anyway.

That's...strange. Have you tried switching to a different non-ipv6 mirror? It's always possible it's listed as non-ipv6 when in reality it is ipv6. You can run "ftp -4 <your mirror url>" to force it to use an ipv4 address for that url, but I don't know how effective that would be over time.

As for sysctl.conf, you can likely run "sysctl net.inet6" to see what your options are for monkeying around with sysctl options. If you find one you want to tweak, you can assign to it like such: "sysctl net.inet6.ip6.forwarding=1" (0 to turn off, 1 to turn on, usually).

All times are GMT -5. The time now is 05:40 AM.