No internet on new install of 42.1

I have connectivity problems with a new install. I had to boot to windows to post this message. I can ping my router and another pc on my home network. But, I can’t get to the internet. I’ve tried Firefox, Chrome and also yast to get to repos. None will connect. What should my settings be? the ethernet card in which zone? Allow ip6 or not? What about the firewall?

Any help will be gratefully received.

Please show that you have a default route configured:

ip route

When that is the case and it shows the IP adress of your router as the default, then on to next step (when not we must try to repair that first).

Ping a system on the internet:

ping 130.57.66.6

When that works, your conclusion is wrong, you then have connection to the internet.

But it can still be true that host name resolution does not work. Check with e.g.

ping forums.opensuse.org

and/or

host forums.opensuse.org

The first command returns my router address. The second returns a ping.The third fails saying unknown host. The fourth fails with a time out. So, it looks like I need a DNS server?

While I will elaborate on what you tell, please note that when people ask you to do some command, they primaraly want to see that posted here: the prompt, the command, the output and the next prompt, all copied/pasted between CODE tags. Only then can people draw their own conclusions and do not depend on your’s. Remmeber that your conclusion (from the thread title) “No internet” is wrong. You can go on the internet as your ping proves.

And you need avvess to the DNS when you want to use host-domainnames instead of pure IP addresses (what is what most people like).

To check what is configured:

grep -v '^#' /etc/resolv.conf

Whenh that shows no nameserver statement, no DNS server is configured. We could try to find out why not, but a quick solution is adding

nameserver 8.8.8.8

to that file /etc/resolv.conf
Or

nameserver <IP of your router>

Where <IP of your router> should have been above when you would have posted the output of the commands.

I had that problem on one computer.

I tried

 ls /etc/resolv*

That showed two files, “resolv.conf” and “resolv.conf.netconfig”.

So, as root, I did:


cd /etc
mv resolv.conf.netconfig resolv.conf

I have not had any problems since then.

Thank you for your help. Here is the response if got to ip route

default via 192.168.1.1 dev eth0  proto static  metric 100  
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2  m
etric 100 

Please note that since I had no connection to the internet, I could not cut & paste the result to this thread. I responded from another computer. Pinging 130.57.66.6 got a normal response: every packet came back with no loss and within .68 ms. Nothing remarkable there, and since I am now connected to the internet, a copy & paste is not enlightening. But, showing me, through those two commands, that I was connected to the internet made me realize I had a nameserver problem. I fixed it the only way I knew how (before the responses here came up) and that was through yast on the Hostname/DNS tab of Network Settings. I found google’s DNS and used it. That solved the problem. Verizon is my internet provider and I use their router. I never had to set a nameserver before.

And you need avvess to the DNS when you want to use host-domainnames instead of pure IP addresses (what is what most people like).

To check what is configured:

grep -v '^#' /etc/resolv.conf

Whenh that shows no nameserver statement, no DNS server is configured. We could try to find out why not, but a quick solution is adding

nameserver 8.8.8.8

to that file /etc/resolv.conf
Or

nameserver <IP of your router>

Where <IP of your router> should have been above when you would have posted the output of the commands.
Using your commands, I see that I have two nameservers in place (as I expected after entering them in yast) and they are the one you suggest plus 8.8.4.4.

Thank you, again, for your help.

Thank you for this tip. I got only “resolve.conf” in response to the command; and, as you can see from my previous response, for some reason I had to manually add a nameserver. I googled the google DNS from my other machine and added it via yast. I don’t know why the Verizon DNS didn’t work. I use Verizon’s router and never had to add a nameserver before. I assumed that it was “hard wired” in some way. Now, I know better.

Thank you again.