[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 192.0.2.2
> netmask 255.255.255.0
> gateway 192.0.2.1
> up ip address add 192.0.2.3/24 dev eth0
> down ip address remove 192.0.2.3/24 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
address 192.0.2.2
netmask 255.255.255.0
gateway 192.0.2.1
up ip6 address add 2001:8b0:3a9::101/48 dev eth0
down ip6 address remove 2001:8b0:3a9::101/48 dev eth0
Regards,
Henrik
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list