16ef0 [Solved] FreeBSD 9, disable ipv6 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old January 19th, 2012, 11:18
DD DD is offline
Junior Member
 
Join Date: Jan 2012
Location: Milan, Italy
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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.

Last edited by DutchDaemon; January 19th, 2012 at 11:42.
Reply With Quote
  #2  
Old January 19th, 2012, 11:27
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,844
Thanks: 48
Thanked 2,060 Times in 1,890 Posts
Default

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
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old January 19th, 2012, 11:31
DD DD is offline
Junior Member
 
Join Date: Jan 2012
Location: Milan, Italy
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
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.
Reply With Quote
  #4  
Old January 19th, 2012, 11:57
DD DD is offline
Junior Member
 
Join Date: Jan 2012
Location: Milan, Italy
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #5  
Old January 19th, 2012, 12:07
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,844
Thanks: 48
Thanked 2,060 Times in 1,890 Posts
Default

Quote:
Originally Posted by DD View Post
Anyway, still don't care for the ipv6 stuff.
You should. It won't be long until all IPv4 addresses are completely depleted.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #6  
Old January 19th, 2012, 12:13
DD DD is offline
Junior Member
 
Join Date: Jan 2012
Location: Milan, Italy
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
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.
Reply With Quote
  #7  
Old January 19th, 2012, 12:21
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,844
Thanks: 48
Thanked 2,060 Times in 1,890 Posts
Default

Quote:
Originally Posted by DD View Post
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

Quote:
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/
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #8  
Old January 19th, 2012, 12:32
DD DD is offline
Junior Member
 
Join Date: Jan 2012
Location: Milan, Italy
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
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.

Quote:
Originally Posted by SirDice View Post
Ah, yes, understandable.
And you know what? I'll stick with the 8.2 for now.
Reply With Quote
  #9  
Old January 19th, 2012, 16:36
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,178
Thanks: 43
Thanked 714 Times in 587 Posts
Default

# grep ipv6 /etc/defaults/rc.conf
Read the comments attached to those, and the rc.conf(5) man page for details.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #10  
Old January 19th, 2012, 16:45
DD DD is offline
Junior Member
 
Join Date: Jan 2012
Location: Milan, Italy
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by phoenix View Post
# grep ipv6 /etc/defaults/rc.conf
Read the comments attached to those, and the rc.conf(5) man page for details.
That's the first thing I did, but I'm sure I missed something.

Last edited by phoenix; January 19th, 2012 at 17:23. Reason: fist -> first
Reply With Quote
  #11  
Old January 19th, 2012, 17:02
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 832
Thanks: 77
Thanked 120 Times in 80 Posts
Default

Why not just rebuild kernel without IPv6?
Reply With Quote
  #12  
Old January 19th, 2012, 17:29
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,178
Thanks: 43
Thanked 714 Times in 587 Posts
Default

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".
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
The Following User Says Thank You to phoenix For This Useful Post:
DD (January 20th, 2012)
  #13  
Old April 16th, 2012, 14:10
Wout Wout is offline
Junior Member
 
Join Date: Mar 2009
Location: Belgium
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DD View Post
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

Last edited by DutchDaemon; April 16th, 2012 at 16:01. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable ipv6 completely? wonslung Networking 3 March 31st, 2012 05:57
[FreeBSD 9] Unplugging mouse disable laptop keyboard Nesousx X.Org 4 August 18th, 2011 21:22
Disable IPv6 on one interface? dieselnutjob Networking 3 June 10th, 2011 09:33
FreeBSD Foundation and iXsystems Announce IPv6-only Testing Versions of FreeBSD and P admin News & Announcements 0 June 6th, 2011 13:10
IPv6 DAD disables IPv6 Traffic, how to turn IPv6 back on? benzh512 Networking 6 March 10th, 2009 16:57


All times are GMT +1. The time now is 23:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0