Add ip alias on macos like on ubuntu

by Ben   Last Updated April 15, 2019 20:12 PM

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

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 ?

Thanks



Related Questions


Updated August 20, 2018 01:12 AM

Updated January 11, 2017 08:05 AM

Updated March 21, 2017 08:12 AM

Updated March 25, 2017 18:12 PM

Updated April 10, 2017 08:12 AM