Virtual network interface in Mac OS X

前端 未结 12 2258
礼貌的吻别
礼貌的吻别 2020-12-12 10:15

I know that you can make a virtual network interface in Windows (see here), and in Linux it is also pretty easy with ip-aliases, but does something similar exist for Mac OS

12条回答
  •  离开以前
    2020-12-12 11:09

    Go to Network Preferences.

    At the bottom of the list of network adapters, click the + icons

    Select the existing interface that you want to arp (say Ethernet 1), and give the Service Name that you want for the new port (say Ethernet 1.1) then press create.

    Now you have the new virtual interface in the gui and can manage IP addresses etc it in the normal way.

    ifconfig -a will confirm that you have multiple IPs on the interface, and these will still be there when you reboot.

    Its a Mac. Don't fight it, do it the easy way.

提交回复
热议问题