Multimac is a very simple Linux software that is able to emulate and use multiple virtual interfaces (with different MAC addresses) on a LAN using a single network adapter.
In fact, eth aliasing doesn’t allow to specify a different MAC address for aliases (e.g. if you setup an alias eth0:0 for eth0 you can’t provide a different MAC address to eth0:0).
multimac <number of taps>
The program will allocate N+1 taps (6 in this example, tap0 to tap5).
Tap0 is the “hub” interface: all traffic generated on tap1… tapN will be “cloned” on tap0.
The goal is bridging tap0 to eth0 and reply all the layer2 traffic
brctl addbr br0 brctl addif br0 eth0 brctl addif br0 tap0 ifconfig eth0 down ifconfig eth0 0.0.0.0 up ifconfig tap0 0.0.0.0 up ifconfig br0 [Lan ip address] up
Then, the virtual adapters can be initialized as follows:
tap1 hw ether [new mac address] tap1 [virtual IP address 1] up ... similarly up to tapN