Subject: Different MAC-Adress in a vserver
From: Adrian Reyer <are@lihas.de>
Date: Mon, 29 Jun 2009 22:08:34 +0200

Hi,

today I ran into a programm that seperates clients by mac-address. Now
it happens all the clients are vservers and as such have interfaces
like eth0:5. while it is no big deal to change the MAC of a single
network interface this doesn't work for a virtual interface, it
changes all interfaces on the physical interface instead.
I know vserver does noch actually virtualize network interfaces, but I
found /etc/vserver/<NAME>/interfaces/<ID>/{tap,tun} which makes me
reconsider this. However, I have no idea to make real use of this, my
attempts to use brctl to do a virtual bridge with eth0 and the
tap-Interfaces failed so far. The host seemed to always announce the
mac of eth0, despite the vserver had a tap1 with a different mac.
All interfaces are on the same network.

How do I get this right?

Best Regards,
	    _are_
-- 
LiHAS - Adrian Reyer - Krehlstraße 1 - D-70563 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