This question already has an answer here:
I want to add a second IP address on my Mac like on Ubuntu.
On Ubuntu I use this:
$ sudo ip addr add 192.168.1.12/24 dev eth0
On my Mac I used this:
$ sudo ifconfig en0 alias 192.168.1.12/24
On Ubuntu every computer on my local network can reach 192.168.1.12, however on my Mac it's not the same behavior, I can reach the local IP only on the computer and not on the others.
Do you know what can be the problem?