I am trying to set up a static IP address for my Debian virtual machines. In my /etc/networking/interfaces
file I added:
iface ens33 inet static
address 192.168.75.XXX
gateway 192.168.0.1
netmask 255.255.255.0
In the /etc/resolv.conf
file I have added nameserver 8.8.8.8
. I believe my issue is that unless I have the NetworkManager
service enabled nothing shows up when I run route
or ip route show
. I tried adding a route to the routing table by running the following command: ip route add 192.168.75.0/24 via 192.168.75.XXX (my static ip) dev ens33
. This populates the routing table and the table now looks like:
Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.75.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
When I run ping I still get the same error: "Destination Host Unreachable". How can I fix this?