Re: How to turn off IPV6 (link local)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> > Ahh, i see, however you would have to set autoconf to off then *remove*
> > the link-local addresses, because they are setup before that variable is
> > changed? [or is there an option for this in the kernel? afaik its just
> > in proc (sysctl)]
> 
> you can set net.ipv6.conf.defaul.autoconf=0 and then up the interface. This
> will prevent it from getting any  announced prefixes, but it wont prevent it
> from getting linklocal prefix.
> 
> So my idea is, that autoconf=0 will prevent it from getting linklocal and
> advertised adddresses and accept_ra=0 will prevent it from getting announced
> prefixes.
Right, i really don't see why this is necessary, but it's good to have
it there and it should work as its supposed to :)

> > That said, the link-local addresses are *NOT* the issue here, and having
> > them will not cause said problems, the problem here is the user has 4
> > real world IPv6 addresses configured by a router on his network + user
> > configuration (the 6to4 address).
> 
> Well, the user does not have them now anymore and Mozilla uses the
> link-local. However I agree with you, that it might not help to remove
> (prevent autoconfgration) because mozilla still might suceed in AF_INET6
> binding and try the connect w/o failback.

mozilla is not _using_ the link local, its simply trying to connect() to
the address and its failing, and its not trying the other addresses.

I asume the same problem would occur if the host had two IPv4 addys and
the first one failed.

The key to it tryin to connect is being able to bind to a socket with
AF_INET6, for that to fail, the kernel has to have ipv6 support removed,
i re-iterate that it its *mozilla* thats broken, not anything else
(apart from autoconf=0 not behaving right, which should be fixed.)

> > Check out http://www.sixlabs.org/talks/, in my IPv6 programming talk I
> > have code showing how to use getaddrinfo() and try each address until
> > one suceeds.
> 
> There is btw an additional issue with sending AAAA requests on a host which
> is not fully configured for ipv6. In fact I think we should disable to
> compile ipv6 into the kernel, its so painfull to turn the AF off.

It should be a module, I would not like to see IPv6 disabled, we (the
ipv6 community) don't need more setbacks :)

Cheers,
Trent

-- 
Trent Lloyd <lathiat@bur.st>
Bur.st Networking Inc.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux