Port-amd64 archive

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

Re: how do I disable IPv6?



Except for the noise messages detailed by the OP (which seem to be legitimate OS foibles) why would one *want* to disable IPv6?  Ultimately, IPv6 will (someday) replace v4 so why fight it? 


On Sun, Jan 5, 2020 at 10:28 AM Michael van Elst <mlelstv%serpens.de@localhost> wrote:
On Sun, Jan 05, 2020 at 07:03:00AM -0700, Andy Ruhl wrote:
> On Sat, Jan 4, 2020 at 11:05 PM Michael van Elst <mlelstv%serpens.de@localhost> wrote:
> >
> > ndp -i <interface> disabled
> >
> > See ndp(8) for details.
>
> I wanted to see this behavior in action so I started testing. Looks
> like ndp -i <interface> delete still leaves the autoconfigured IPv6
> addresses on the interface.

It just sets a flag that stops IPv6 processing.

ndp -i <interface> -auto_linklocal

stops adresses from being assigned in autohost mode. You can also
set the sysctl variable net.inet6.ip6.auto_linklocal=0 which disables
this for all interfaces and then enable individual interfaces with
ndp again.


dhcpcd has its own configuration file, and you can tell it to not
handle IPv6 on a particular interface.



Greetings,
--
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index