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

    Static IP on an Ubuntu 16 Server and VirtualBox

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    2
    5
    1.1k
    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.
    • H
      hobbicon
      last edited by hobbicon

      Hello,

      I am trying to set up FOG with an Ubuntu 16.04 LTS Server running on a VirtualBox.

      After reading a guide I followed the instructions and all worked really well until I had to set up a static IP.

      I use the command nano /etc/network/interfaces

      But after editing the files, my Ubuntu server loses connection to the internet.

      I change from
      alt text

      to

      alt text

      The numbers are different, of course.
      The address and netmask stays the same. The gateway and dns-nameservers are found out by using ipconfig /all an my Windows PC.

      Can anyone help me, please?

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        Did you happen to notice the differences in subnet between dhcp and static?

        Under dhcp you had a 10.x.x.xx subnet. That makes me think you are using a nat interface under virtualbox and not a bridged network interface.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        H 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator
          last edited by

          With your fog server configured in dhcp mode it would be interesting to compare the output of ip addr show using dhcp vs what you have configured for a static interface.

          Then once you are in static mode see if you can ping 8.8.8.8

          And lastly see if you can ping www.dell.com

          That will properly test your network connectivity.

          Also be aware if you have a virtual box VM.

          1. You must bridge the FOG server nic to the physical NIC.
          2. You install FOG after you have a static NIC defined. FOG does not like the IP address of the FOG server to change after FOG is installed.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          1 Reply Last reply Reply Quote 0
          • H
            hobbicon
            last edited by

            ip addr show
            

            for dhcp
            alt text

            for static
            alt text

            ping 8.8.8.8
            

            for a static IP address
            alt text

            ping www.dell.com
            

            alt text

            My two variants of the interfaces file look like this:
            static
            alt text
            dhcp
            alt text

            1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator
              last edited by

              Did you happen to notice the differences in subnet between dhcp and static?

              Under dhcp you had a 10.x.x.xx subnet. That makes me think you are using a nat interface under virtualbox and not a bridged network interface.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              H 1 Reply Last reply Reply Quote 0
              • H
                hobbicon @george1421
                last edited by hobbicon

                @george1421

                I found my mistake

                • The IP was wrong
                • the old VM snapshot had NAT instead of bridged network interface enabled

                Thank you very much for the fast support.

                alt text

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post

                228

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project