Cant set up static ip address. getting error 105 in chrome

First I read up a bit and then I played with Yast for several hours, but I cannot seem to get it to accept a manual static ip address. When I go through all of the instructions and uncheck DHCP, I always get an “Error 105 (net::ERR_NAME_NOT_RESOLVED): The server could not be found.” message when trying to use chrome afterwards. Even when I tried to manually set the IP to the same ip address it gave me through DHCP.

ifconfig eth0


eth0      Link encap:Ethernet  HWaddr *removed*
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15348 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15224 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11287073 (10.7 Mb)  TX bytes:2751994 (2.6 Mb)
          Interrupt:23 Base address:0xc000 

route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.13.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
192.168.8.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

After giving up on Yast I tried

ifconfig eth0 192.168.1.100

and that didnt work either. I tried several 192.168.1.* combinations

Can someone please help me figure this out? Thanks for your help.

try:

ifconfig eth0 inet 192.168.1.100 netmask 0xffffff00
  • You should do that as root!

So my first question is why? Why do you want to setup a fixed IP on your openSUSE machine?

Next question, what is the IP address of your local router? Is it 192.168.1.1?

What IP adddress do you want to give your PC. I see 192.168.1.100, but if your router also includes DHCP in it, you must use an address below 100 for most routers to keep out of the auto IP address range. Lets say you will use 192.168.1.50 and the network mask is 255.255.255.0 also known as /24. Is that correct?

Finally, what are the DNS addresses being used by your router? For instance, If I input 192.168.1.1 to my router, enter the user name and password, I can then examine the DNS addresses I am being given and I can duplicate these in my setup of openSUSE. My router shows two DNS numbers.

Dig up these addresses and I will tell you what to do with them next. Otherwise, consider using DHCP as it is simpler. You will go into YaST / Network Devices / Network Settings to do the deeds. You do not use NetworkManager.

Thank You,

Certainly not! And even if some routers are preconfigured to deliver let’s say 50 ips, that’s definitely something you can change in the router setup. If you suse a static ip, it doesn’t matter anyway. I doesn’t even matter whether your router is running a dhcp server or not. Not to mention that you could also tell the dhcp server to assign a fixed ip to a given MAC address.

Certainly not! And even if some routers are preconfigured to deliver let’s say 50 ips, that’s definitely something you can change in the router setup. If you suse a static ip, it doesn’t matter anyway. I doesn’t even matter whether your router is running a dhcp server or not. Not to mention that you could also tell the dhcp server to assign a fixed ip to a given MAC address.
Now please_try_again, if you don’t know how to setup openSUSE for a static IP, then you may not be aware of how your router works either. It is fairly common for the router DHCP to start around 100, allowing addresses below for fixed IP addresses. In any event, it is a minor point I would think. The thought is to start thinking about what your router is doing for you. Do you know its address, do you know its username and password. You need to know how it works before you modify how openSUSE works, in my opinion.

The better thing to do, again in my opinion, is for you to offer even better help than I to the user, which is not all that hard to do and I will look, read and learn.

Thank You,

I don’t know about that. But again, it is irrelevant if you assign a static IP to a NIC. What you call the “auto IP address range” (even if I can figure out what you mean) doesn’t have influence of the ips you assign statically inside the IP range defined by your netmask. So in that particular case, you can use any ip between 192.168.1.2 and 192.168.1.254, 192.168.1.1 being the router and 192.168.1.255 the broadcast addresses.

The thought is to start thinking about what your router is doing for you. Do you know its address, do you know its username and password. You need to know how it works before you modify how openSUSE works, in my opinion.

The IP was given by the the outpout of ifconfig eth0 and the router’s IP appeared in the outuput of route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.13.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
192.168.8.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

The U flag above means the route is up and the G flags shows it’s the gateway used by device eth0. According to this ouput, we can assume that the OP is already aware of his router’s IP.

If you cannot assign a static IP to a device, either you’re not root, or you’re outside the IP range defined by your netmask (in this case you would still be able to assign the IP, but it won’t simply connect to anyone) or … the NetworkManager is running and don’t let you change the IP or just reverse anything you’re trying to do. The default under openSUSE is to use the ‘Traditional Method with ifup’. If you’re using the NetworManager, you’re not supposed to set up ips manually … although it’s possible too. In such a case, you should do that within the NetworkManager, not in the CLI.

If it’s about connecting to the Internet, you can also use a free DNS like the openDNS ones, so you can resolve ip addresses without the help of your router’s dhcp - if you don’t know your provider’s DNS ips.
So for testing purpose, you can dig that DNS first :

dig 208.67.222.222

to see if/how fast you can reach it and if so, write the following line in /etc/resolv.conf :
nameserver 208.67.222.222

Defining DNS that way won’t survive a reboot, but it’s nice for testing.

Of course it does matter if you use a static IP address in the range the DHCP server is serving. Another system in the LAN could get the same address.

And the OP seems not to be able to get his network and/or internet connection functioning. What do you think he would know about changing the configuraion of his router’s DHCP server? Of course you can do that, but let us keep it simple.

If I input 192.168.1.1 to my router, enter the user name and password

this seems to be the problem. “admin” doesnt work and I tried entering in the password for using wireless and that doesnt work either. I didnt set up the router so it seems like i have to figure it out without being able to access that info.

Im probably giving up on it, since it looks like Ive done everything mentioned (several times, in several different ways). But Ill keep checking the thread in case anyone thinks they know what the problem is

What brand router are you using Supreme1012? We could most likely determine the default username/password. And, if your press the internal reset, it will go back to default. I don’t know what kind of internet connection that you have. For instance, I use Time Warner Cable and the default settings just work, but other setups do not work by default. Hitting the reset button might not be good. It is hard to know what to say, but the brand and model is a good place to start.

Thank You,

On Fri September 10 2010 07:36 pm, Supreme1012 wrote:

>
> First I read up a bit and then I played with Yast for several hours, but
> I cannot seem to get it to accept a manual static ip address. When I go
> through all of the instructions and uncheck DHCP, I always get an “Error
> 105 (net::ERR_NAME_NOT_RESOLVED): The server could not be found.”
> message when trying to use chrome afterwards. Even when I tried to
> manually set the IP to the same ip address it gave me through DHCP.
>
> ifconfig eth0
>
> Code:
> --------------------
>
> eth0 Link encap:Ethernet HWaddr removed
> inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:15348 errors:0 dropped:0 overruns:0 frame:0
> TX packets:15224 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:11287073 (10.7 Mb) TX bytes:2751994 (2.6 Mb)
> Interrupt:23 Base address:0xc000
> --------------------
>
>
> route -n
>
> Code:
> --------------------
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
> 192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0
vmnet8
> 192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0
vmnet1
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
eth0
> --------------------
>
>
>
> After giving up on Yast I tried
>
> Code:
> --------------------
> ifconfig eth0 192.168.1.100
> --------------------
>
> and that didnt work either. I tried several 192.168.1.* combinations
>
> Can someone please help me figure this out? Thanks for your help.
>
Supreme1012;

Can you ping www.google.com by IP. From a terminal window enter


ping -c 3 209.85.225.103

If this succeeds your problem is with your DNS settings. Using Yast set your
DNS server to the IP’s given you by your ISP; these are generally published
on there web site if you do not know what they are, look on your ISPs web
site. Alternatively you can use the Google public DNS, 8.8.8.8 and 8.8.4.4

You should be able to configure everything from YaST. I would suggest you use
the traditional ifup, configure your IP address, net mask, gateway and DNS
servers. It looks like you have the first 3 done correctly. But there is no
mention of DNS in your posts.

As has been pointed out by other posters, you need to be sure that your dhcp
server does not dish out the same IP you assign to another machine. If you
own the router, check the manufacturers web site for information on the range
it uses by default and help logging on. If the router belongs to someone
else (ISP, school, corporation etc.) check with your IT people.

This Howto might be helpful to you:
http://opensuse.swerdna.org/susenic.html


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

It looks to me as if you did it right, but you forgot to also define the DNS servers to use (DNS resolver settings). When you use DHCP, that part is handled automatically. Once you assign a static IP, you lose that automatic setting.

Before you try again, look in “/etc/resolv.conf”. That will tell you what DNS server you are using with DHCP. With many routers, that will just be the IP address of your router. Or you can directly enter your ISP provided DNS servers, which are probably listed in the WAN status information of your router.

I am using opensuse 11.3. When I get into network settings in YAST, there’s a tab for “HOSTNAME and DNS” (or something similar). You can define the DNS servers there.

As others have indicated, it is best to assign an IP that is outside the range that your router assigns with DHCP. What that range is will vary from router to router, and you can probably find the information in the router LAN settings page.

Oops! I missed a detail. You also need to make sure that you have defined a router. For that, use the IP address of you own router.

Incidently, unless you have a special reason for assigning a static IP, it is better to use DHCP.

In my case, I do use a static IP for my home desktop. That’s mainly because I prefer to run bind as my own caching DNS server.