Creating multiple IP addresses on MacOS - belaban/JGroups GitHub Wiki

Use the following command to create additional (alias) IP addresses on a given interface (e.g. en0) in Mac OS:

  • sudo ifconfig en0 alias 192.168.2.2
  • sudo ifconfig en0 aliasi 192.168.3.3 etc

Delete them again with sudo ifconfig -alias 192.168.2.2 etc