On OSX (and, I suspect, vanilla FreeBSD), this looks like (replacing 127.1.2.3 with the address you want to use; 0xff000000 must stay the same, since netmasks of all addresses on an interface must not confict if they're on the same subnet):
sudo ifconfig lo0 alias 127.1.2.3 0xff000000
And then, when you're done: sudo ifconfig lo0 -alias 127.1.2.3
to tear it back down.