• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [SOLVED] No internet connection after setting static ip in Ubuntu

    Scheduled Pinned Locked Moved
    Linux Problems
    3
    4
    15.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jaymes DriverJ
      Jaymes Driver Developer
      last edited by

      This includes but is not limited to:
      Ubuntu 12.04.4, 12.04.5, 14.04, 14.10

      If you set a static ip address by editing /etc/network/interfaces and you do not have an internet connection after rebooting, or restarting the service, you need to supply your dns server in your resolv.conf file.

      To do so: (wiki article) [url]http://fogproject.org/wiki/index.php/Ubuntu_14.04#Setting_static_IP[/url]

      open terminal and issue the following command:
      [code]
      sudo nano /etc/resolvconf/resolv.conf.d/head[/code]

      Ignore the warnings about settings being over written, this is the “Head” of the resolve conf file and anything in this file will be carried down to resolv.conf when it is generated. This warning is meant to be displayed in resolv.conf warning users that changes will be over written. We are supplying the name server manually to the resolve.conf file by letting the head file carry the information for us.

      Add the following line where x.x.x.x is the ip address of your DNS. If you need to supply multiple DNS entries, separate entries with a space (i.e. nameserver x.x.x.x y.y.y.y z.z.z.z)
      [code]
      nameserver x.x.x.x[/code]

      WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

      1 Reply Last reply Reply Quote 0
      • P
        phishphan
        last edited by

        BOOM! That did it. Awesome! Thanks so much. I really appreciate your assistance with all this. My next step is to attempt to mount my windows share through the VM. Learning as I go!

        1 Reply Last reply Reply Quote 0
        • S
          Scott Hill Banned
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S
            Scott Hill Banned
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            186

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project