I am pretty new to Ubuntu so i tried to change my static ip and it didn't work. I tried everything still didn't work and no internet. I edited in /etc/network/interfaces/

auto enp0s3
    iface enp0s3 inet static
    gateway ............

i have verify thats enp0s3 its the ethernet plus i cant find on my router dhcp what should i do?

  • I've also tried Google IPv4 nameservers nameserver nameserver

But it did not work.

  • What do you mean by didn't work?
    – SYN
    Mar 10 '17 at 0:31

First of all, you are far better off to set the static IP address in Network Manager as discussed here: static ip network guide Second, you can't just ignore the gateway address. I suggest that you check other devices, even iPads or phones, on the network to see what the router address is. That is the gateway address you need to specify. Third, please verify that your ethernet interface is enp0s3; run the terminal command:


Finally, please be certain that the address you've selected is outside the range used for DHCP in the router. Here is an example: http://www.mathgamehouse.com/oldmgh/istorm/help/manual/images/linksys.gif

In the example, the DHCP pool extends from to If it isn't otherwise reserved, a static address of, in this example, would work perfectly.

I recommend that you correct your process.

  • The gateway is fake didnt want people to know my gateway. my real gateway is there
    – A guy
    Mar 10 '17 at 8:01
  • Assuming that the real gateway is either or, which is true for half the world, what possible harm could it bring to reveal it? If it isn't 192.168.0.xx, perhaps that is the issue.
    – chili555
    Mar 10 '17 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.