[vserver] Different MAC-Adress in a vserver

From: Adrian Reyer <are_at_lihas.de>
Date: Mon 29 Jun 2009 - 21:08:34 BST
Message-ID: <20090629200834.GA8908@lihas.de>

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_at_lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
Received on Mon Jun 29 21:08:53 2009
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 29 Jun 2009 - 21:08:56 BST by hypermail 2.1.8