On 24 Feb 2011, at 19:22, Andy Smith <andy(a)bitfolk.com> wrote:
Hi Aaron,
On Thu, Feb 24, 2011 at 06:06:24PM +0000, Aaron B. Russell wrote:
Just wondered if anyone had any experience with
making an interface listen to a whole range of IPs without using interface aliases?
I want to use a lot of my IPv6 address space, not just one IP (I'd like to be able to
give each website hosted with File Sanctuary it's own IPv6 address), and I want to be
able to define a range of IP addresses for the server to listen on, but creating lots of
interface aliases, one for each IP, in /etc/network/interfaces is going to be a) ugly and
b) probably very bad practice.
I don't believe there is anything wrong with lots of IP aliases
using "ip -6 addr add ..."
I don't know how to achieve what you're trying to do in any other
way, but I'd be interested to hear. Maybe you could do a NAT to a
single IPv6 or something. Adding addresses sounds better. :)
You might be able to subnet your ip6 allocation and route it to the lo
interface.
I managed to do this by accident once, but not sure how well it'd work.
Something like "ip -6 ro add 2001::xxx/64 dev lo" might work. Although
last time I managed it it was with v4 and quagga.
Cheers,
Jon