I'm trying to set up an Ubuntu server on a virtual machine hosted on a windows OS. When I set it to the default DHCP the internet works fine. When I attempt to setup a static IP I get TX but no RX.
The following is my /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# Primary network interface
auto enp0s3
iface enp0s3 inet static
address 192.168.1.151
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
I got the address from my host machine when I did an ipconfig /all
Most of the solutions ive seen to similar problems have to do with not having a DNS server named but I do have one so I'm not sure what else to do.
Any help is greatly appreciated. Thanks!