Disabling IPv6 on *one* network interface in Debian
Frank Bulk
frnkblk at iname.com
Fri Feb 4 06:47:32 CET 2011
I tried that, no luck.
===================================
iface eth0.100 inet static
pre-up sysctl -w net.ipv6.conf.eth0/100.autoconf=0
pre-up sysctl -w net.ipv6.conf.eth0/100.accept_ra=0
address a.b.c.d
netmask 255.255.255.0
network a.b.c.0
===================================
Results in
error: "net.ipv6.conf.eth0.100.autoconf" is an unknown key
Of course, once the interface is up, I can execute sysctl manually. To change the autoconf and accept_ra.
root at nagios:/etc/network# sysctl -w net.ipv6.conf.eth0/100.autoconf=0
net.ipv6.conf.eth0/100.autoconf = 0
root at nagios:/etc/network# sysctl -w net.ipv6.conf.eth0/100.autoconf=0
net.ipv6.conf.eth0/100.autoconf = 0
root at nagios:/etc/network#
Frank
-----Original Message-----
From: Martin Millnert [mailto:martin at millnert.se]
Sent: Thursday, February 03, 2011 8:51 PM
To: frnkblk at iname.com
Cc: ipv6-ops at lists.cluenet.de; ipv6-techsig at mailman.internetnz.net.nz
Subject: Re: Disabling IPv6 on *one* network interface in Debian
Hi Frank,
On Thu, 2011-02-03 at 20:41 -0600, Frank Bulk wrote:
> Due to our network setup I have asymmetric traffic occurring (post-IPv4 NAT
> result) that can be resolved by disabling IPv6 on one of the server's VLANs.
> I removed the IPv6 addresses manually using "ip -6 addr del <IPv address>
> dev eth0.<VLAN number>" but that will only last until the next reboot.
>
> Any ideas on how to disable IPv6 on *one* network interface in Debian? My
> google fu has failed me.
>
> Frank
http://blog.easter-eggs.org/index.php/post/2010/08/23/Disable-IPv6-autoconfiguration
1. Explicitly load IPv6 module
2. Disable autoconf/accept_ra on the interface you want
HTH,
Martin
More information about the ipv6-ops
mailing list