Assigning multiple IP's on a single NIC

  1. # ifconfig hme0:1 plumb

  2. # ifconfig hme0:1 123.123.123.124 netmask 255.255.255.0 up

  3. # ifconfig -a to check.

  4. /etc/hosts
        127.0.0.1       localhost
        123.123.123.123 serverA   loghost
        123.123.123.124 serverB
        
  5. /etc/hostname.hme0:1
        ServerB