Disabling IPv6 on *one* network interface in Debian

Tim Durack tdurack at gmail.com
Fri Feb 4 04:09:57 CET 2011


On Fri, Feb 4, 2011 at 2:41 AM, Frank Bulk <frnkblk at iname.com> 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.

you could add something like the following to /etc/network/interfaces:

interface <interface> inet <static|manual|dhcp>
  pre-up echo 1 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
  ...

-- 
Tim:>



More information about the ipv6-ops mailing list