Create the virtual interface:
# ifconfig eri0:1 plumb
# ifconfig eri0:1 192.162.2.161 netmask 255.255.255.0
# ifconfig -a
lo0: flags=1000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843 mtu 1500 index 2
inet 192.162.2.160 netmask ffffff00 broadcast 192.162.2.255
ether 0:3:ba:9:63:9b
eri0:1: flags=1000842 mtu 1500 index 2
inet 192.162.2.161 netmask ffffff00 broadcast 192.162.2.255
# ifconfig eri0:1 up
create /etc/hostname.eri0:1 (or edit the /etc/hostname.eri0 file) with hostname in it make sure the hostname is in /etc/hosts