Skip to content

Creating multiple IP addresses on MacOS

Bela Ban edited this page Jun 5, 2023 · 1 revision

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