2

Up to Mac OS 12 it has been possible to add a second IP address to a network interface.

See here: Adding a Second IP Address to an Existing Network Adapter

Since Ventura, the UI has totally changed. The second IP address I added is still there, but I am no longer able to change the address or add a new one.

Is there any way via UI or terminal to achieve this?

1 Answer 1

1

Well, one of the solutions in your linked article is still valid for Ventura.

sudo ifconfig en0 alias 128.133.123.83/24 up will still give you an aliased IP on the adapter in question en0, and as long as your selected ip and CIDR block are in the correct range, all should work well.

sudo ifconfig en0 -alias 128.133.123.83/24 will remove the alias.

I was unable to figure out how this is done in the UI - sadly this seems to have been removed. :(

UPDATE: I found the aliased network interfaces in Venturaenter image description here

2
  • Thanks for reaching out. The option using ifconfig is good as workaround but is unfortunately not permanent, the setting is lost after a reboot. Using "Add Service" allows to add a second interface for my WiFi, but when I edit the details of that new interface to add a static ip address, my primary WiFi interface is changed, too.
    – Simon
    Jan 13 at 14:11
  • @Simon If adding a second IP with ifconfig en0 alias works but is lost on reboot, can't you add a LaunchAgent which runs once after reboot to set it again?
    – nohillside
    Jan 24 at 9:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .