FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

LinkBack Thread Tools
Old 02-10-2010, 12:40 AM
Jimmy Stewpot
Default multiple IPv6 addresses in /etc/network/interfaces


I currently have a production system which we manage remotely. We have the existing configuration running with both IPv4 and IPv6 address space configured. All has been working well for some time. Unfortunately we need to deploy an additional IPv6 address which is persistent across reboots. Currently we have the second address being added using an ifconfig line. Is there any way to automate the additional addresses using /etc/network/interface without doing post/pre up stuff? Like we do with IPv4 below?

cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
post-up /sbin/iptables-restore < /etc/iptables/rules
post-up /sbin/ip6tables-restore < /etc/iptables/rules6

iface eth0 inet6 static
address <IPv6_address_here>
netmask 56
post-up /sbin/ifconfig eth0 inet6 add <IPv6_address_here>
post-up /sbin/iptables-restore < /etc/iptables/rules
post-up /sbin/ip6tables-restore < /etc/iptables/rules6

auto eth0:0
iface eth0:0 inet static
post-up /sbin/iptables-restore < /etc/iptables/rules
post-up /sbin/ip6tables-restore < /etc/iptables/rules6

It just feels like its a little bit of a hack rather than some sort of standard way of doign IPv6.. Any advice would be greatly appreciated.


Jimmy Stewpot.

ubuntu-server mailing list
More info: https://wiki.ubuntu.com/ServerTeam

Thread Tools

All times are GMT. The time now is 11:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org