Disabling DHCPv6 requests

Karl Auer kauer at biplane.com.au
Mon Sep 12 22:59:52 UTC 2016


On Mon, 2016-09-12 at 15:35 -0300, Duane Whitty wrote:
> I would like to know if there is a method to tell dhclient to send an
> option in advance to the ipv6 capable router notifying it that this
> client isn't doing ipv6 or a response back when it makes the request
> to start ipv6 configuration

All that is happening is that the router is advising your subnet (and
thus your computer) that it has DHCPv6 available and the client should
use it *if it wants to do IPv6*. However, your computer does not have
to do DHCPv6,; it doesn't even have to do IPv6 at all.

So if it is your router, just remove IPv6 and any DCPv6 server from the
router interface serving your link.

But I'm puzzled as to why, if you have really disabled IPv6, you saw
any DHCPv6 information at all. You can check if you have really
disabled IPv6 by running ifconfig - if you see an address "::1" on the
lo interface, then you still have IPv6 enabled.

To disable it properly, set disable_ipv6 in /proc to 1:

   sysctl -w net.ipv6.conf.all.disable_ipv6=1

Make it permanent by editing /etc/sysctl.conf if you wish.

Regards, K.

PS: I do not recommend disabling IPv6.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list