Can access internet AND host can talk to it AND fixed IP
Posted: 20. Dec 2011, 05:38
I have a Ubuntu guest running on my Windows 7 host. Its sole purpose is to run Postgres in a special sandbox.
I need for the guest to be able to talk to the internet. I also need the guest's Postgres to be available to apps running on the host.
The only way I've found to do this feels like a workaround: Put the guests's network adapter in bridged mode. This presents a few problems:
On my home network, I could do static DHCP based on the guest OS's MAC. I could also prevent its DHCP from assigning a particular IP. I am running DD-WRT on the home router.
The documentation doesn't reveal a solution, although I'm not sure it excludes a workaround? I haven't found conclusive guidance on these forums, although I may not be searching correctly.
I need for the guest to be able to talk to the internet. I also need the guest's Postgres to be available to apps running on the host.
The only way I've found to do this feels like a workaround: Put the guests's network adapter in bridged mode. This presents a few problems:
- The IP can change, such as if I put the host machine to sleep for a day.
- Some networks, like my corporate network, won't assign an IP to the guest OS.
- The guest is accessible to other machines on the local network. I'd rather it be hidden.
- Fixed IP.
- Internet access for guest
- Accessible from host
On my home network, I could do static DHCP based on the guest OS's MAC. I could also prevent its DHCP from assigning a particular IP. I am running DD-WRT on the home router.
The documentation doesn't reveal a solution, although I'm not sure it excludes a workaround? I haven't found conclusive guidance on these forums, although I may not be searching correctly.