Virtual Network Adapter
HI all,
I'm trying to create a virtual network adapter on my computer.
Currently, I use my Mac as a router. However, I'd like to have a virtual network to attach virtual machines to. In this setup, my ifconfig should look like this:
lo0: bla bla bla
en0: bla bla bla 10-net-address bla bla bla
en4: bla bla bla public-address bla bla bla
virtual0: bla bla bla 192.168-net-address bla bla bla <--- this is the important line
bla bla bla
I'll then have my virtual machine bridge to virtual0, have pf block all [non-established] connections coming to virtual0 (so the VM can't connect to my machine) and have a few ports get routed to 192.168.xxx.xxx (the VM's address). I might want more than one VM to connect, but it's not an issue from my standpoint to have 2, 3, 4, etc VMs on virtual0 (and I can, later, create virtual1, virtual2, etc as needed).
Does anybody know how I can do this?
OS X Server