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
It's possible to use TUN/TAP device. http://tuntaposx.sourceforge.net/