How to disable ipv6?

Issues related to configuring your network
Post Reply
bsder
Posts: 2
Joined: 2007/04/27 02:09:39

How to disable ipv6?

Post by bsder » 2007/05/01 22:17:23

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.

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

How to disable ipv6?

Post by Lenard » 2007/05/01 23:53:47

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

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: How to disable ipv6?

Post by michaelnel » 2007/05/02 00:13:37

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

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: How to disable ipv6?

Post by Lenard » 2007/05/02 02:29:12

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.

houstonpcguy
Posts: 5
Joined: 2006/06/06 17:29:24
Location: Houston, Texas
Contact:

Re: How to disable ipv6?

Post by houstonpcguy » 2007/05/29 14:17:47

Thank you,

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

Have a great day. :-D

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: How to disable ipv6?

Post by Lenard » 2007/05/29 16:17:51

Your welcome to houstonpcguy, glad to help.

Post Reply