Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Can’t connect to internet

  1. #1

    Unhappy Can’t connect to internet

    None of my application programs running under Linux can access the internet. Router seems OK. Any ideas?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    16,725
    Blog Entries
    13

    Default Re: Can’t connect to internet

    Quote Originally Posted by davidcbryant1951 View Post
    None of my application programs running under Linux can access the internet. Router seems OK. Any ideas?
    Too many ideas to write down here . We need more info. How do you try to connect? Is this a laptop, a desktop? Which desktop environment? Wired/Wireless? Wicked/Networkmanager? Such info makes it less of a shooting in the dark.
    ° Appreciate my reply? Click the star and let me kow why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Smile Re: Can’t connect to internet

    Quote Originally Posted by Knurpht View Post
    Too many ideas to write down here . We need more info. How do you try to connect? Is this a laptop, a desktop? Which desktop environment? Wired/Wireless? Wicked/Networkmanager? Such info makes it less of a shooting in the dark.
    Well, I remembered I had a similar problem a while ago, so I looked up what “Wise Penguin” told me to do.
    Code:
    ip -s link
    ip a
    ip r
    grep -v -e ‘^#’  /etc/resolv.conf
    ping -c 4 192.168.1.1
    ping -c 4 8.8.8.8
    When I ran these commands everything looked good except for “/etc/resolv.conf” — nothing at all showed up, and when I ran it a few months ago it said “nameserver 192.168.1.1”. So I logged in as root and added the line “nameserver 192.168.1.1” to the file “/etc/resolve.conf” and voila! My internet connection works again.

    So now I’m left wondering how this file was corrupted. I didn’t edit the file (until just now, when I put the necessary information back in). The only weird thing that has happened lately is that my mail client (“Kmail”) died unexpectedly yesterday, so I filed a bug report.

    Well, all’s well that ends well, I guess, but I do wonder how that file was corrupted. Thanks!

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    8,222

    Default Re: Can’t connect to internet

    Your machine is set up as a DHCP client, normally at least one DNS server is assigned to you automatically.
    If your machine isn't set up as a DHCP client, you may have forgotten to configure that setting.

    In any case...
    You can always delete /etc/resolv.conf and reboot... the file will be re-created with whatever you have configured.
    and,
    Any direct edits to /etc/resolv.conf will function only for the existing session, with your next reboot those edits will be lost. You should instead configure your DNS settings in YaST or NM if necessary, or follow the instructions in the comments in /etc/resolv.conf.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Can’t connect to internet

    tsu2: It appears you're not quite right. I just rebooted my system, and the file "etc/resolv.conf" is unaltered. I did see another file "etc/resolv.conf.netconfig" that was apparently created the last time I re-booted the system; the two files are identical (except that they have different names, and one was created about two hours before the other one).

    Knurpht: Just to clarify, everything seems to be OK now. I have a desktop PC (32-bit) running the current Tumbleweed release (updated yesterday). I'm running the PLASMA5 desktop shell, KDE applications. I do have a wireless router, but this PC (my LINUX machine) is hard-wired to the router (an ethernet cable connects the EN port on the PC to slot #1 on my NETGEAR router). I guess I'm running "Wicked" -- I see a bunch of messages about "Starting Wicked Network Manager" whenever I boot the system, and the application "KSysGuard" shows about 5 or 6 processes named "Wickedxxx" running when my system is operating. I didn't try to tailor my Tumbleweed installation at all, except that I chose the "EXT4" file system -- "BTFS" was giving me a lot of headaches for some reason. I have no earthly idea how the file "etc/resolv.conf" got corrupted. My internet stopped working all of a sudden, so I re-booted the system, and when that didn't work I came to the forum for help. I was sure my ISP was working OK because I was able to update some firmware on my router -- even though Firefox wouldn't connect with the internet, it would connect with the router, so I logged in there as "admin" and verified that my connection was really OK, and updated the GUI interface (router firmware) while I was at it. Plus I could connect to the internet using the Wireless connection I use with my other PCs. Only the LINUX machine was malfunctioning.

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    16,725
    Blog Entries
    13

    Default Re: Can’t connect to internet

    As per contents /etc/resolv.conf should not be editted manually. Next time something like this happens, simply remove the file and do
    Code:
    rcnetwork restart
    . And tsu is correct, the info should be provided through DHCP. Are you using static ip addresses ?
    ° Appreciate my reply? Click the star and let me kow why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: Can’t connect to internet

    Quote Originally Posted by Knurpht View Post
    As per contents /etc/resolv.conf should not be editted manually. Next time something like this happens, simply remove the file and do
    Code:
    rcnetwork restart
    . And tsu is correct, the info should be provided through DHCP. Are you using static ip addresses ?
    Thanks for the information about "rcnetwork". I'll have to read about that.

    All the external addresses in my router are set automatically. Specifically, the router has this to say:

    Does your internet connection require a login? No

    Internet IP Address: Get dynamically from ISP.
    IP address 69.166.92.223
    IP Subnet Mask 255.255.255.192
    Gateway IP Address 69.166.92.193

    DNS Address: Get automatically from ISP
    Primary DNS 216.177.160.61
    Secondary DNS 216.177.160.242

    (Although these addresses are set automatically, it appears that they might as well be static, because they never seem to change.)

  8. #8
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,592

    Default Re: Can’t connect to internet

    No the addresses for the internal network. The outside addresses are assigned by you ISP. The inside addresses can be set to static or dynamically allocated through DHCP. If you did not assign any internal addresses then most likely it uses DHCP. But that is something need to be known for trouble shooting.

  9. #9

    Default Re: Can’t connect to internet

    Quote Originally Posted by gogalthorp View Post
    No the addresses for the internal network. The outside addresses are assigned by you ISP. The inside addresses can be set to static or dynamically allocated through DHCP. If you did not assign any internal addresses then most likely it uses DHCP. But that is something need to be known for trouble shooting.
    Oh. Of course, the Router is configured as the DHCP server for my LAN -- is that what you're asking about? I did not set any network parameters myself; I accepted the OpenSuse defaults, which, I'm pretty sure, are to let the router handle internal IP addresses. Anyway, my router says it's doing that, and currently my LINUX machine has been assigned to 192.168.1.4. My Ipad is currently 192.168.1.3, and the Windows machine out in my wife's workshop is 192.168.1.2. The printer (also directly connected to the router) is at 192.168.1.114. These addresses rarely change, since most of the devices are on all the time. But a couple of months ago the LINUX machine was at 192.168.1.3 (the Ipad was on the fritz for a while).

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    22,047

    Default Re: Can’t connect to internet

    Quote Originally Posted by davidcbryant1951 View Post
    None of my application programs running under Linux can access the internet. Router seems OK. Any ideas?
    I did not tune in until now because others already started helping.
    Normally these things are solved pretty soon. But I get the idea that you still have the problem you defined in what I quote here. Is that correct?
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •