Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2106  / 2 Years ago, sat, april 16, 2022, 11:35:26

First, yes, this question's "question" will be an exact duplicate of static ip - what am I doing wrong? , but the question was never resolved in a way that helps.

What I am trying to do is make my Ubuntu Server have a static IP address. I am not entirely sure on the numbers to plug in, but I am sure it has something to do with correctly setting up the DNS servers.

Information I have:

  • I want the address of the computer to be

  • The router's address is

  • The subnet mask is

  • I assume that the network is

  • I assume that the broadcast is

  • According to my router, the DNS servers are and No idea if this is correct or not.

This is what my files look like currently:


auto eth0
iface eth0 inet static


#these are all commented out, I was trying ideas, but no combinations worked.

Currently, as with the similar question, I can ping every other computer on my local network. But as soon as I try to ping, I get unknown host

If anyone has any suggestions, it would help a lot.

suggestion: Why doesn't this custom static IP network configuration work? (the first comment)

More From » server


Ok, I am not sure why, but I got it to work. I am not going to mark it as the answer until I am conviced that I solved the issue.

First what I did was go to this tutorial, and noticed that they have search in their /etc/resolv.conf file, followed by the dns servers they want to use. Remembering that this "search" line is similar to the one that was automatically generated in my copy of the file, I formatted the file to look like this:


These DNS number I had to get from this website (I use comcast).

I restarted the computer and magicly I can ping Google! Also, the search line has been removed from the /etc/resolv.conf file, but I think that's ok.

Also, I don't know if this helps/hurts, but I put in the line


in my /etc/network/interfaces file, as the last line.

I will update this post if this turns out to work or not.

[#36358] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 35
Total Questions: 124
Total Answers: 112

Location: Federated States of Micronesia
Member since Sat, Jun 4, 2022
2 Years ago