PDA

View Full Version : Disable IPv6 in Fedora 8


Lukast
2007-12-27, 03:40 PM CST
hi, im trying to disable IPv6 on my Fedora 8.

I followed some tuts for Fedora 7, but without success.

I often use wget and it takes so much time to resolve ip from DNS...i have dual boot (Windows XP) where i use wget and it goes really quick.

I used Wireshark to detect problem and it goes like this:
there is AAAA query on DNS and the response is always No such name...
after that there is A query (ipv4) to DNS that is fast.
So when i use wget -4 www.google.com it goes so fast as on Windows, but
im looking for solution where i do not need to pass and -4 argument.


# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mmx.pc
# from tutorial for FC7
NETWORKING_IPV6=no


# system-config-network
I have disabled IPv6 for interface eth0

In Firefox
about:config
network.dns.disableIPv6 -> true (speeds up surfing through firefox)


cat /etc/modprobe.conf

alias eth0 sis900
alias scsi_hostadapter pata_sis
options snd-emu10k1 index=0
options snd-intel8x0 index=0
alias snd-card-2 snd-mpu401
options snd-mpu401 index=2
options snd-intel8x0 index=0
alias snd-card-0 snd-emu10k1
options snd-card-0 index=0
alias net-pf-10 off
alias ipv6 off


But still wget -4 www.google.com is 10 times faster than wget www.google.com
I didnt disabled AAAA DNS queries...How can i do that?

sideways
2007-12-27, 07:41 PM CST
This is a pita in F8, especially since the wireless networking seems to be even worse than F7, however you do it by blacklisting the ipv6 module, so add this line to /etc/modprobe.d/blacklist
blacklist ipv6

Also edit /etc/sysconfig/network to include NETWORKING_IPV6=no as you described above, remove the line referencing locolhost6 in /etc/hosts, and ensure your network adapter is configured not to use ipv6 (This is an easy edit in the system-config-network gui, or do it manually in /etc/sysconfig/network-scripts/ifcfg-eth0 (ammend for name of your adapter), 'IPV6INIT=no')

Now enjoy a slightly smoother network experience.

ipv6 is being pushed far too aggressively in fedora, how many of us really need it :confused:

Lukast
2007-12-29, 08:35 AM CST
I tried everything you suggested, but when i use wget, it still use AAAA query for DNS and so it has to wait for time outs and message Name not found.

Could somebody help me with little stupid solution... i think that i can set
wget -4 as alias for wget , am i right?

But i dont know how to set alias and that alias will survive reboot of pc...

sideways
2007-12-29, 10:15 AM CST
alias wget="wget -4"

put the line in ~/.bash_profile (in your home_directory)

(type 'help alias' to get help on the alias command)


When you type ifconfig do your adapters have an inet6 address assigned? Blacklisting the ipv6 module should have worked, you did all the other edits, including "alias ipv6 off" in modprobe.conf?

Ensure the ip6tables service is also stopped, 'chkconfig ip6tables off', then reboot