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

Jason Clifford jason at ukfsn.org
Tue Apr 19 09:18:21 UTC 2011


On Tue, 2011-04-19 at 10:08 +0100, Henrik Morsing wrote:
> 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

Yes but when using "up" and "down" you need to explicitly specify the
full command to use. In this case that means something (from memory)
like:


iface eth0 inet static
	...
	up ip -6 addr add 2001:8b0:3a9::101/48 dev eth0
	down ip -6 addr del 2001:8b0:3a9::101/48 dev eth0

You probably also need to add an "ip route add default dev eth0" for
each as well.

Jason

--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list