Find the answer to your Linux question:
Results 1 to 8 of 8

Thread: no Internet?

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    no Internet?


    Hi people, having a bit of a connection problem. My setup consists of a router to hub to LAN. This all works fine but my Debian 9.2 for some reason won’t connect to the Internet via the hub. I can ping the router and ifconfig shows that the IP address of the machine is 10.0.0.7, which is correct, and the mask is set at 255.0.0.0 but I can’t see the gateway with this command? I think the gateway is set correct but could do with checking this somehow. Any suggestions appreciated, thx ASM

  2. #2
    Does setting the gateway with the route command help?

    Code:
    route add default gw <ip address of gateway> eth0
    If you can ping the router but not external addresses (try pinging 4.2.2.1), then I'd say your gateway isn't set properly. If you can ping external ip addresses, then your internet problem is most likely dns-related; you can set your nameservers in /etc/resolv.conf.
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  3. #3
    Thanks for your reply and direction, I know nothing about nameservers. I will have a look through my admin book and see where that takes me. Thx again

  4. $spacer_open
    $spacer_close
  5. #4
    So you can ping external addresses then? What does your /etc/resolv.conf file look like? All you would need to do to add a DNS server would be to add a line to your /etc/resolv.conf file...this would work:

    Code:
    nameserver    4.2.2.1
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  6. #5
    the file shows my webs address? yes i can ping the BT server. should the file show the IP of the router?

  7. #6
    The file should show the ip address of your DNS server. My example included a DNS server that I know works (it's Verizon's DNS server for this area).
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  8. #7
    Thanks for your reply again. That was the problem. I entered my DNS server and hey-presto! Thx again

  9. #8
    No problem...glad you're up and running.
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

Posting Permissions

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