[Gllug] Debian's 'interfaces', IPv6 and aliases

Henrik Morsing henrik at morsing.cc
Tue Apr 19 09:08:55 UTC 2011

On Tue, Apr 19, 2011 at 09:52:01AM +0100, Paul Cupis wrote:
> The syntax above is wrong. It should be something like:
> auto eth0
> iface eth0 inet static
>     blah
> iface eth0 inet6 static
>     blah

Sorry, I was doing it form memory and obviously not very well. My qustion wasn't about the syntax of the file but that I can't define an interface twice even using inet and inet6.

> You can use the 'ip' command to add address to an existing interface,
> such as this:
> iface eth0 inet static
>     address
>     netmask
>     gateway
>     up ip address add dev eth0
>     down ip address remove dev eth0

Hmm... Ok. Slightly more elegant. Will try that. Thanks.

Just thinking, looking at that, can I not use that for IPv6 as well then? Having:

iface eth0 inet static
    up ip6 address add 2001:8b0:3a9::101/48 dev eth0
    down ip6 address remove 2001:8b0:3a9::101/48 dev eth0

Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list