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

    Linux Client Install Dual Nics

    Scheduled Pinned Locked Moved Unsolved Linux Problems
    5 Posts 2 Posters 49 Views
    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.
    • J
      JasonNaughton
      last edited by

      Hi All,

      I’ve been using the fog project for a while (5 years or so). I’ve been heavily relying on it to install various workstations. Today I ran into an issue that I never experienced before. I’ve installed clients with 2 nics without any issues. Normally the pxe boot would simply boot off of whatever nic was connected to the LAN. Today I was installing our standard image that I’ve been using for years, on a Dell Pro Max Slim workstation. Now I’ve installed this type of workstation in the past without any issues, but of course with only one nic. Today the system has 4 nics. Only 1 of the 4 nics is connected to the LAN. The system starts the PXE, and it appears to get it’s IP address and proceeds to the next stage. This time it gets it’s IP address but then scans through the remaining 3 nics… None of them have an IP address configured so they fail. It seems to forgotten that the first nic got the IP address without any issues. When it proceeds to go to the install stage it kacks out as it doesn’t believe it has a valid IP address. If I simply pull the 3 nics out and install the system everything works. Yet I have to re-configure the box with 4 nics in the end. Anyone have a way to tell the fog server, simply continue after getting the first card IP address. (ie stop searching for other nics).
      Screen-1.png Screen-2.png Screen-3.png

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

        @JasonNaughton Looking at the code the error would indicate that the target computer can’t reach the fog server.

        https://github.com/FOGProject/fos/blob/8893d32bfb702dcf7b8f5427ccd6748fac15df17/Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network#L64

        What I want you to do is to pxe boot the computer into debug mode. Schedule a deployment to this computer but before you hit the schedule task button tick the debug checkbox. Now pxe boot the target computer, you will still get the errors but you will be dropped to the fos linux command prompt.

        run this command ip a s that should show if your network interface has an IP address. If not then issue this command.
        /sbin/udhcpc -i enp128s31f6 --now where enp128s31f6 is the name I gleaned from your screen shot that appears to have picked up an IP address. See if it gets an IP address now. See if you can ping the fog server’s IP address.

        The ‘checker’ script makes this call to verify your fog server is reachable.
        curl -Ikfso /dev/null "${web}"/index.php --connect-timeout 5 replace the entire ${web} with the IP address of your fog server. See if that returns a value.

        Finally search the system messages to see if there is something related to firmware.
        grep -i -e firm /var/log/syslog I think syslog is the right file, if it returns nothing try /var/log/messages One error could be the network adapter needs a specific firmware for the network adapter to communicate. That firmware may need to be added to the linux kernel.

        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!

        J 2 Replies Last reply Reply Quote 1
        • J
          JasonNaughton @george1421
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • J
            JasonNaughton @george1421
            last edited by

            @george1421
            Thanks for getting back to me George… I didn’t think I had an issue with reaching the fog server seeing that I was getting the fog display. Turns out that the Dell system that I have boots with one mac address which we included in our DHCP. It get’s it’s IP address and then gets to the second stage of the fog boot. I was able to get to a fog debug mode screen and you are 100% correct that the interface inp128s31f6 which is connected to the LAN does not get an IP address when the udhcpc command is issued. Digging further I found that it’s using a completely different mac address… Odd thing is if I pull the 2 cards, that provides the additional 3 interfaces and pxe boot with the one network jack I’m able to install the box. I had conceded to have to install the network cards post install.

            To add some further thought to this, the system I have has an onboard network jack, one, 1 port PCIE ethernet and one 2 port PCIE ethernet card. I thought this might have something to do with the box doing LOM on the onboard NIC (not something I’m interested in using but it’s there). So I configured the single port NIC and setup dhcp. Again the system boots no issues but when I get to the debug console the card has a completely different mac address… Do you have any idea why this could be happening? It’s almost as if there’s some sort of privacy nic thing which has the mac address different at the second part of the boot or as if I’m passing through some sort of dock but I’m not.

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

              @JasonNaughton This is a strange one. The linux kernel just doesn’t just invent mac addresses. It would be interesting to look up the first 6 characters of the mac address to see if you could identify the manufacturer.

              So are you saying there are 4 physical nics in this computer. LOM, PCie 1, PCie 2? Does that mac address belong to the LOM?

              I can say that we are dealing with 2 kernels here. The iPXE boot loader, and FOS Linux. Its technically possible to get to the fog ipxe menu and then when you start up FOS it doesn’t get an IP address because either the nic order has changed or there is missing firmware that is needed to init certain nics.

              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
              • 1 / 1
              • First post
                Last post

              114

              Online

              12.4k

              Users

              17.4k

              Topics

              155.9k

              Posts
              Copyright © 2012-2025 FOG Project