I created several virtual interfaces like this:
ip link add link eth0 name eth01 type macvlan ip link add link eth0 name eth02 type macvlan ip link add link eth0 name eth03 type macvlan
and assigned different IP addresses to them:
ifconfig eth01 192.168.0.101 ifconfig eth02 192.168.0.102 ifconfig eth03 192.168.0.103
The problem is that when I ping either one from another machine and look at the reply packets in Wireshark, they all come with the same source MAC address corresponding to one of the interfaces (the one that was created first).
Is there any way to get each of them reply with their corresponding MAC address?