Networking Forums

Networking Forums > Computer Networking > Linux Networking > Debian: How do I disable ipv6?

Reply
Thread Tools Display Modes

Debian: How do I disable ipv6?

 
 
Rick Jones
Guest
Posts: n/a

 
      05-25-2011, 08:03 PM
Mark Hobley <(E-Mail Removed)> wrote:
> How do I disable ipv6 in Debian?


> I have blacklisted the ipv6 module, but Debian has this compiled
> this into the monolithic core, rather than building it as a module.


> I have also added a file into the sysctl.d directory as follows:


> cat /etc/sysctl.d/disableipv6.conf
> net.ipv6.conf.all.disable_ipv6=1


> And I have rebooted the server, but ipv6 persists:


> Resolving ftp.uk.debian.org... 83.142.228.128, 2001:470:1f08:80b::2
> ^
> ipv6


That may be a function of whether the application making the
getaddrinfo() call is or is not setting the AI_ADDRCONFIG flag. If it
does, then addresses of a given family will only be returned if there
is an interface (other than loopback) configured with an address from
that family. If that flag is not set, even a "pure" IPv4 system may
return an IPv6 address via getaddrinfo(), having been given it by the
DNS server - even though/if the DNS query was carried in an IPv4
datagram.

> netstat -a
> tcp6 0 0 [::]:43801 [::]:* LISTEN
> tcp6 0 0 [::]:46874 [::]:* LISTEN
> tcp6 0 0 [::]:52607 [::]:* LISTEN
> tcp6 0 0 [::]:nfs [::]:* LISTEN
> tcp6 0 0 [::]:56389 [::]:* LISTEN
> tcp6 0 0 [::]:44584 [::]:* LISTEN
> tcp6 0 0 [::]:sunrpc [::]:* LISTEN
> tcp6 0 0 [::]:www [::]:* LISTEN


> ^ ^ ^
> More ipv6


Well, more addresses being displayed using IPv6 style at least, and
indicating that their owning applications may have been ported to be
able to accept connections via IPv6.

> I don't want any ipv6 on this leg of the network.


Are there any interfaces on the system configured with an IPv6
address? If not, then apart from the AI_ADDRCONFIG question,
everything else is really (IIRC) just cosmetic.

rick jones

> Mark.


> --
> Mark Hobley
> Linux User: #370818 http://markhobley.yi.org/



--
denial, anger, bargaining, depression, acceptance, rebirth...
where do you want to be today?
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
 
 
 
Mark Hobley
Guest
Posts: n/a

 
      05-25-2011, 08:56 PM
How do I disable ipv6 in Debian?

I have blacklisted the ipv6 module, but Debian has this compiled this into
the monolithic core, rather than building it as a module.

I have also added a file into the sysctl.d directory as follows:

cat /etc/sysctl.d/disableipv6.conf
net.ipv6.conf.all.disable_ipv6=1

And I have rebooted the server, but ipv6 persists:

Resolving ftp.uk.debian.org... 83.142.228.128, 2001:470:1f08:80b::2
^
ipv6

netstat -a
tcp6 0 0 [::]:43801 [::]:* LISTEN
tcp6 0 0 [::]:46874 [::]:* LISTEN
tcp6 0 0 [::]:52607 [::]:* LISTEN
tcp6 0 0 [::]:nfs [::]:* LISTEN
tcp6 0 0 [::]:56389 [::]:* LISTEN
tcp6 0 0 [::]:44584 [::]:* LISTEN
tcp6 0 0 [::]:sunrpc [::]:* LISTEN
tcp6 0 0 [::]:www [::]:* LISTEN

^ ^ ^
More ipv6

I don't want any ipv6 on this leg of the network.

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      05-26-2011, 07:03 PM
Hello,

Mark Hobley a écrit :
> How do I disable ipv6 in Debian?
>
> I have blacklisted the ipv6 module, but Debian has this compiled this into
> the monolithic core, rather than building it as a module.


You can add ipv6.disable=1 to the kernel command line in the boot loader
setup.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Should we disable IPv6 ? Desparate Dan Windows Networking 17 06-30-2009 01:40 PM
debian Lenny: forcing a IPv6 Router Sollicitation (configuring alinux isatap client) Kristoff Bonne Linux Networking 0 08-01-2008 09:32 AM
Disable sending ICMPV6 redirects on IPV6 ianbrn@gmail.com Linux Networking 1 03-26-2008 11:34 AM
Implementing a IPv6 network with dynamically assigned static IPv6 addresses. Ashish Shukla Linux Networking 2 02-13-2007 02:59 PM
Disable IPv6 in Red Hat? John Oliver Linux Networking 2 11-04-2006 09:27 AM



1 2 3 4 5 6 7 8 9 10 11