I have an Ubuntu server and I cannot get Internet connection over this. The IP,subnet,gateway and the 2 DNS servers that I have been given is standard addresses that I must put into. I will give details of this:
Network is unreachable
sudo nano /etc/network/interfaces
is set to
#The loopback network interface auto lo iface lo inet loopback #The primary network interface #auto eth0 <-- this is a comment iface eth0 inet static address "My_static_ip_here" netmask 255.255.255.0 gateway "My_Gateway_here"
sudo nano /etc/resolve.conf
is set to
nameserver "My_DNS_server_1_here" nameserver "My_DNS_server_2_here"
returns 127.0.0.1 address and a subnet 255.0.0.0 ofcourse on lo I cannot give detailed ifconfig here because of the limitations that I got. PS: This is a virtual machine that I am using. PS2: I tried to auto-dhcp it with iface eth0 inet dhcp but during the networking restart it kept loading and loading forever, so that does not work and I want to give this static IP.