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 dev eth0

On my mac I used this :

sudo ifconfig en0 alias

On ubuntu every computer on my local network can reach

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 ?


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