LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 11-14-2008, 10:58 AM   #1
Lord Estraven
Member
 
Registered: Aug 2004
Distribution: Pardus
Posts: 53

Rep: Reputation: 15
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?
 
Old 11-18-2008, 03:08 PM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 476
Blog Entries: 111

Rep: Reputation: 74
You could try 6to4:

http://www.netbsd.org/docs/guide/en/...tice-ipv6-6to4

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

http://www.netbsd.org/mirrors/#ftp
 
Old 11-21-2008, 10:04 PM   #3
Lord Estraven
Member
 
Registered: Aug 2004
Distribution: Pardus
Posts: 53

Original Poster
Rep: Reputation: 15
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?
 
Old 11-22-2008, 03:42 AM   #4
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 476
Blog Entries: 111

Rep: Reputation: 74
Quote:
Originally Posted by Lord Estraven View Post
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).

Last edited by rocket357; 11-22-2008 at 03:44 AM.
 
  


Reply

Tags
disable, ipv6, netbsd, pkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM
Disable IPV6 bjb_nyj101 Linux - Software 2 06-07-2007 09:54 PM
Configure and disable ipv6 on opera web browser tfm1 Linux - Software 4 10-27-2006 10:19 PM
Disable ipv6 in ubuntu? ksgill Linux - Newbie 7 03-25-2006 09:05 PM
how to disable ipv6 in Redhat Linux AS 4 ? adrianmak Linux - Software 1 08-16-2005 10:51 AM


All times are GMT -5. The time now is 03:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration