Subject: Re: [vserver] Disable IPv6
From: Adrian Reyer <are@lihas.de>
Date: Tue, 14 Apr 2015 11:21:57 +0200

On Tue, Apr 14, 2015 at 09:44:35AM +0200, Christoph Pleger wrote:
> >> Or, the other way round, how can I, inside a vserver, add a default IPv6
> >> address to the default interface?
> > Just lika a normal IP-Address, e.g.:
> > /etc/vservers/VSNAME/interfaces/1/dev: lo
> > /etc/vservers/VSNAME/interfaces/1/ip:
> > 4242:4242:4242:4242:4242:4242:4242:4242
> > /etc/vservers/VSNAME/interfaces/1/prefix: 128
> That would define an additional interface, not assign an additional
> address to an already existing interface.

Whatever you meant to say by 'defining'.
If your IPv4 is on eth0, just use eth0, mine use lo and so I stats lo.
If it is about the subdirectory in interfaces, technically the name is
wrong, you don't make interfaces visible to the guest but IPs. And it is
one IP per directory.
In my specific case, "ip a l" gives the following output:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet 10.99.253.16/24 brd 10.99.253.255 scope global secondary lo:vs01lugs
       valid_lft forever preferred_lft forever
    inet6 4242:4242:4242:4242:4242:4242:4242:4242/128 scope global 
       valid_lft forever preferred_lft forever
No second Interface as this VServer only contains IPs linked to
Interface lo.

Regards,
	Adrian
-- 
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: lihas@lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart