Ask Your Question

[solved]How to get network connection...

asked 2019-04-25 00:41:47 -0500

unmask gravatar image

updated 2019-04-25 14:27:31 -0500

Recently, i erased "cable" item<-Network<-Setup on GNOME by mistake.. After the accident, i cannot connect internet... While cable connection is established with ease(automatically),web browser doesn't work.. how could i deal with this problem...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-04-25 04:47:40 -0500

Night Romantic gravatar image

Short version, I'll provide additional details if you need them.

I'd first look at current IP address either in Gnome's network settings of with the use of ip a command in cli. If you know what your IP address should be and it's currently different -- then we need to resolve how your computer should receive an address (most likely from your router?) and why it doesn't do it. Please tell, if that's the case.

If you don't know, if IP address is correct one or not, then the most basic way to test connectivity is with the use of ping cli command. Basically, you need to test two things:

  1. Can you computer connect to some IP address in the Internet? ( or are good and easy ones to test)

  2. Can you computer resolve website addresses such as or

If both are yes then you have a good connection. If one of the answers is no -- you need to resolve the problem with it. And to resolve anything you first need to understand, which of the two is the problem.

First ping test would be

ping -c 10

If you see replies from and 0% packet lost in the statistics report -- then (most likely) you're connected to the Internet (and so your IP address should be the correct one). Then run the second ping test.

If the command seems to hang (that's because no replies are coming in), says Destination Host Unreachable, and says 100% packet loss in the statistics -- then you have no connection to the Internet.

Second ping test would be

ping -c 10

Again, if you see replies, then you dns config is the right one, you connection is ok. If the browser still can't connect -- we need to look at browser's configuration.

If there's an error like this: ping: Name or service not known, then your dns configuration is wrong. I'll try to provide some tips, if that's the case.

Please tell what's the results of the test are, or if you need additional help to perform them.

edit flag offensive delete link more


i checked /etc/sysconfig/network-scripts/ in network-scripts, It was ifcfg-enp3s0 that would be ifcfg-enp5s0... i changed ifcfg-enp3s0 into ifcfg-enp5s0. Now i can use the internet..without worrying... thanx, anyway

unmask gravatar imageunmask ( 2019-04-25 14:26:37 -0500 )edit

If you use Fedora with a GUI, in general you don't have to change/edit your network scripts, NetworkManager does that for you. Unless you've disabled it or something, of course.

Checked my network-scripts folder, and it too contains a script with a wrong device name. Still my connection works because configuration in NetworkManager was updated correctly to refer to new device name.

In any case glad you were able to resolve your problem.

Night Romantic gravatar imageNight Romantic ( 2019-04-26 02:09:39 -0500 )edit

Question Tools

1 follower


Asked: 2019-04-25 00:41:47 -0500

Seen: 417 times

Last updated: Apr 25 '19