Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
ifconfig eth02
ifconfig eth03

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?

share|improve this question

1 Answer 1

Interfaces don't respond to pings, machines do under the weak end system model for IPv4 that Linux uses, and this is deeply integrated into its entire networking stack. IP addresses are assigned to machines, not interfaces.

There's probably a way to do whatever it is you actually want to do and solve your actual problem. What are you trying to accomplish with multiple virtual interfaces numbered inside the same IP subnet?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.