CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Networking Support
  How to disable ipv6?

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  4 Votes
  •  bsder
      bsder
How to disable ipv6?
#1
Newbie
Joined: 2007/4/27
From
Posts: 2
How do I disable ipv6 networking altogether?

alias net-pf-10 off
alias ipv6 off

in modprobe.conf doesn't seem to do it.

The only thing which seemed to work was removing ipv6.ko, but I get some annoying errors in my boot up log complaining that ipv6 isn't configured in the kernel (uh, like, duh, that is why I removed it).

What''s the correct way to do this?

Thanks.
Posted on: 2007/5/1 22:17
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: How to disable ipv6?
#2
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
The /etc/modprobe.conf file is the first step, you do not need the 'alias ipv6 off' line however, but it does not hurt.

You also need to edit some other files, the first is /etc/sysconfig/network and the others are for example the /etc/sysconfig/network-scripts/ifcfg-eth0 file and others like maybe ifcfg-wlan0 for example.

$ cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
NOZEROCONF=yes
HOSTNAME=Aspire5100

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=dhcp
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
ONBOOT=no

$ cat /etc/sysconfig/network-scripts/ifcfg-wlan0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Wireless
DEVICE=wlan0
HWADDR=
BOOTPROTO=dhcp
IPADDR=
NETMASK=
GATEWAY=
DOMAIN=
ONBOOT=yes
ONHOTPLUG=yes
USERCTL=yes
IPV6INIT=no
PEERDNS=no

Also check the /etc/hosts file is configured for IPv4 and not IPv6 only, a sample follows;

$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 Aspire5100 localhost.localdomain localhost
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/5/1 23:53
Create PDF from Post Print
Top
  •  michaelnel
      michaelnel
Re: How to disable ipv6?
#3
Professional Board Member
Joined: 2006/5/29
From San Francisco, CA
Posts: 1483
Great stuff, Lenard!

But they sure have made it a PITA to turn off a feature that almost nobody needs (yet). I think it would make a lot more sense to have the default be "IPV6 disabled".
Posted on: 2007/5/2 0:13
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: How to disable ipv6?
#4
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
Your welcome, but you have to remember the USA is being so very, very, very slow in adopting IPv6 while the rest of the world is doing so much (and have done so in many places) more quickly. It is a matter of $$$$ and the US ISP infrastructure is cheap and lazy on adding support when it affects the bottom line.
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/5/2 2:29
Create PDF from Post Print
Top
  •  houstonpcguy
      houstonpcguy
Re: How to disable ipv6?
#5
Newbie
Joined: 2006/6/6
From Houston, Texas
Posts: 5
Thank you,

Wasn't sure how to do this it helped a bunch.

Have a great day.
_________________
Michael A Cooper
Admin
HostHobo.com
Posted on: 2007/5/29 14:17
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: How to disable ipv6?
#6
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
Your welcome to houstonpcguy, glad to help.
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/5/29 16:17
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com