You are on page 1of 2

How to disable IPv6 in Debian KarkomaOnline

http://www.karkomaonline.com/index.php/2009/04/how-t...

KarkomaOnline
a Blog for SysAdmins and Unix stu in general dig: basic usage 40 years of Unix

How to disable IPv6 in Debian


Ive recently installed a new LDAP server on Debian Lenny and I wanted to disable IPv6 as it is unnecessary for me in this moment. With netstat I checked the listening processes: netstat -tunlp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 2226/slapd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2215/sshd tcp6 0 0 :::389 :::* LISTEN 2226/slapd tcp6 0 0 :::22 :::* LISTEN 2215/sshd

and lsmod showed something like this:


Module Size Used by ipv6 235364 12 ...

So, to disable IPv6 I changed /etc/modprobe.d/aliases:


... # alias net-pf-10 ipv6 # Disable ipv6 alias net-pf-10 off alias ipv6 off ...

I also disabled these lines in /etc/hosts to avoid confusions:


... ## The following lines are desirable for IPv6 capable hosts #::1 localhost ip6-localhost ip6-loopback #fe00::0 ip6-localnet #ff00::0 ip6-mcastprefix #ff02::1 ip6-allnodes #ff02::2 ip6-allrouters #ff02::3 ip6-allhosts

Finally I restarted the server. shutdown -r now Now the situation is like this:
1 de 2 09/04/13 00:25

How to disable IPv6 in Debian KarkomaOnline

http://www.karkomaonline.com/index.php/2009/04/how-t...

netstat -tunlp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 2233/slapd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2216/sshd

lsmod|grep ipv6
...

No IPv6. Tags: IPv6, Tips and Tricks


This entry was posted on Thursday, April 23rd, 2009 at 6:08 pm and is led under Linux Debian, Tips and Tricks. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply
You must be logged in to post a comment. KarkomaOnline is proudly powered by WordPress Entries (RSS) and Comments (RSS).

2 de 2

09/04/13 00:25

You might also like