dhcpcd-discuss

Re: IPv6 PD - assign multiple static addresses

Maarten de Vries

Thu Mar 30 19:52:30 2017

On 30 March 2017 at 18:41, Roy Marples <roy@xxxxxxxxxxxx> wrote:

> Hi Arthur
>
> On 30/03/2017 15:59, Arthur Țițeică wrote:
> > I'm trying to assign multiple IPv6 addresses to the same interface.
> >
> > In the config I tried using multiple
> >
> > static ip6_address=2001:xxx:yyy::1/64
> >
> > but only the last line gets applied.
> >
> > Is there another option for this?
>
> Currently no, you can only assign one static IP address.
> This was initially discussed here:
> https://roy.marples.name/archives/dhcpcd-discuss/0001124.html
>
> No-one really spoke up about needing >1 at the time and providing a use
> case for it. Do you have one?
>

​One important use case is a server running multiple services on different
IP addresses, each with a different PTR record. I had to do this for my
outgoing mail on IPv6 since otherwise Google would mark the email as spam.
Besides, it looks really nice to have forward and reverse resolution match
with different host names for different services. And with IPv6 it is
easily affordable since everyone gets a ton of IPv6 addresses.

Another reason to want multiple IP addresses on one machine is to run the
*same* service multiple times without resorting to non-standard port
numbers. For example, one ssh server for git repositories and one for
regular ssh.

I think having multiple IP addresses per machine pretty much for free is
one of the most important benefits of IPv6. Right after the ability to
ditch NAT.

-- Maarten

References:
IPv6 PD - assign multiple static addressesArthur Țițeică
Re: IPv6 PD - assign multiple static addressesRoy Marples
Archive administrator: postmaster@marples.name