How can I set up Ethernet aliases?

If the alias is on the same subnet as an address already configured on the interface, then add netmask 0xffffffff to your ifconfig(8) command-line, as in the following:

    # ifconfig ed0 alias netmask 0xffffffff

Otherwise, just specify the network address and netmask as usual:

    # ifconfig ed0 alias netmask 0xffffff00
Suggest a Site