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.
How to disable ipv6?
How to disable ipv6?
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
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
-
- Posts: 1478
- Joined: 2006/05/29 16:50:11
- Location: San Francisco, CA
Re: How to disable ipv6?
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".
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".
Re: How to disable ipv6?
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.
-
- Posts: 5
- Joined: 2006/06/06 17:29:24
- Location: Houston, Texas
- Contact:
Re: How to disable ipv6?
Thank you,
Wasn't sure how to do this it helped a bunch.
Have a great day. :-D
Wasn't sure how to do this it helped a bunch.
Have a great day. :-D
Re: How to disable ipv6?
Your welcome to houstonpcguy, glad to help.