
On 25/11/11 8:08 PM, Russell Coker wrote:
On Fri, 25 Nov 2011, "James Harper" <james.harper@bendigoit.com.au> wrote:
What distribution are you using? Last time I tried using the IPv6 stuff in /etc/network/interfaces under Debian it was an exercise in frustration. It treated the IPv6 as a separate interface, which is (IMHO) very stupid as it meant that all the bridge and vlan
commands
tried to do their thing in both interfaces with hilarious results. That was around 5 years ago now though I think... but I've just stuck with 'ip -6 addr add' commands in each interface since then. It's Debian. I just put the ip and route commands on "up" lines in /etc/network/interfaces.
/etc/network/interfaces ---- auto eth0 iface eth0 inet static address x.x.x.242 netmask 255.255.255.192 gateway x.x.x.254
iface eth0 inet6 static address x:4200:401:10::3 netmask 64 gateway x:4200:401:10::1
Maybe it works these days, but last time I tried it it didn't if your interface was a vlan interface (eg eth0.42), or a bridge. Or if you wanted any up or down commands. Frankly the idea of treating them as separate interfaces when they aren't is just dumb, and leads to all sorts of problems. James