N900 disable ipv6
Hello,
So, I seem to find some infos about how to enable ipv6 on the N900 but not on how to completely disable it. I don't use ipv6 and sometimes the dns queries are slow because an ipv6 is first looked for before asking for an ipv4. And also because I would rather use ipv4 only (I understand the usefulness of ipv6 but I never completely understood how it worked). I've tried : Code:
sysctl -w net.ipv6.conf.all.disable_ipv6=1 Any ideas? |
Re: N900 disable ipv6
are you sure about ipv6??? N900 isn't really IPv6-friendly by default. it is possible to use IPv6 on it after a lot of 'sweat'
So I think it's most likely you have a completely different problem/cause for your slowness, not IPv6. What is in your resolv.conf files (in /etc and /var/run) ... remove any IPv6 nameservers if you have them. Do you get any IPv6 addresses assigned to your connections? |
Re: N900 disable ipv6
No ipv6, at least on grps, on wlan I have an ipv6 when connected at home but my network doesn't have ipv6 so I suppose it is a local ipv6 (as said I don't understand much of ipv6), and I'm not at home now to get the ip.
Code:
gprs0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 Code:
Server: 127.0.0.1 When activating dnsmasq log-queries I get a lot of querie[AAAA] before getting querie[A], so it is looking first for an ipv6 before asking for an ipv4. As stated before, I don't really understand how ipv6 works and therefore I would rather disable it, as for now it is not really needed (don't have ipv6 enabled on any of my other devices and they work as they should). Any idea how to avoid any interaction with ipv6 on the N900? |
Re: N900 disable ipv6
On my home wlan I get this ipv6 :
Code:
inet6 addr: fe80::5e57:c8ff:fe5d:df13/64 Scope:Link On an nslookup of google.com I get : Code:
Server: 127.0.0.1 |
Re: N900 disable ipv6
You can disable ipv6 in about:config within MicroB.
v6 is enabled on most modern stuff now to aid transition to v6. I assume you have a router that is v6 compatible at home? The address you are getting is link-local fe80 |
Re: N900 disable ipv6
Quote:
Quote:
Quote:
Quote:
|
Re: N900 disable ipv6
|
Re: N900 disable ipv6
For you to get AAAA queries something on the router must be allowing v6 connections.
I would say if you are only having issues at home then it's the router you need to play with. |
Re: N900 disable ipv6
Some notes from my side:
1) Stock kernel does not support IPv6, so by default there is no way to open/bind IPv6 socket 2) Basically all default Maemo 5 applications have disabled IPv6 support, so they do not try to open/bind IPv6 socket (even you have kernel with IPv6 support) 3) Disabling IPv6 support can be achieved by sysctl which you already wrote. When disable_ipv6=1 then *no* userspace application is able to open/bind IPv6 socket. Kernel acts same as if IPv6 support was disabled at compile time. 4) Asking DNS server for AAAA record has nothing and absolutely nothing with IPv6 support. You can ask for AAAA record of some hostname via IPv6 DNS socket and also via *IPv4* DNS socket. POSIX applications uses getaddrinfo() function (see man 3 getaddrinfo) which is supposed to do DNS lookups. 5) Router has nothing allowing IPv6 connections and AAAA queries. Those are two different things which has nothing in common. DNS is application protocol (layer 7) and IPv6 is network protocol (layer 3). 6) DNS resolving does not have to be slow "because of IPv6". You can ask (and system libraries probably do it) for ANY address for some host and you get both IPv4 and IPv6 address. 7) IPv6 Link-Local address cannot be used for making "internet" connection and IIRC connect() is not possible. So... In IPv4-only network there should be absolutely no penalty with enabled IPv6 support in kernel or applications. Problem can be in IPv4-only network which advertise IPv6 availabilty (which is non-working). But simple disabling IPv6 in kernel fixes it. So if you are seeing some problems even after disabling IPv6 then it is probably not IPv6 related. |
Re: N900 disable ipv6
Thanks pali for the clarifications, really instructive.
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
So to resume : Where can I add the disable_ipv6=1 to disable ipv6 at boot, as Maemo doesn't seem to have /etc/sysctl.conf. How to prevent dnsmasq from querying ipv6? Thanks. |
All times are GMT. The time now is 18:22. |
vBulletin® Version 3.8.8