I want to connect a Linux VM running in VMWare on a Windows 7 laptop to an enterprise network using host-only configuration.
I was able to setup bidirectional routing between "host-only" VMWare network and the enterprise network. If I add DNS servers to /etc/resolv.conf
and a default route then there is full bidirectional connectivity. Traffic flows between enterprise network and host-only network, and NAT is performed later by the enterprise WAN gateway.
However, out of the box no default route is passed over DHCP, and the DNS server provided doesn't work.
I have the following topology:
VM - 192.168.4.3 -- host only network -- 192.168.4.1 -- laptop VMWare host -- 192.168.1.4 -- enterprise network -- 192.168.1.1 -- WAN Gateway -- Internet
DHCP sets up 192.168.4.1
(the laptop interface facing host only network) as the DNS server on the VM host. VMWare has a DNS proxy which works fine in NAT mode but it refuses to work in host-only mode.
So I have 2 questions:
How do I configure VMWare so it sets correct DNS (either DNS known on host, e.g.
192.168.1.1
, a working VMWare DNS Proxy or a good static DNS e.g.8.8.8.8
/8.8.4.4
Google Public DNS)How do I configure VMWare so it sets a proper default route to
192.168.4.1
?
0 Answers