Re: changed to static IP, can't connect to internet
Still no DNS and still no gateway...
Please amend your /etc/network/interfaces to:
Code:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.132
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
Please verify that the address of the router/gateway is actually 192.168.0.1; you might check the network configuration on other devices on the same network.
Next, do:
Code:
sudo ifdown eth0 && sudo ifup -v eth0
Did you get the requested address?Can you reach the internet?
Code:
ping -c3 8.8.8.8
ping -c3 www.google.com
"Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.
Bookmarks