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

udhcpc: sending discover -- increase timeout?

Scheduled Pinned Locked Moved Solved
FOG Problems
3
6
1.7k
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.
  • M
    mig39
    last edited by mig39 Mar 20, 2019, 10:36 AM Mar 20, 2019, 4:18 PM

    I’m having an issue with some computers where my switch doesn’t finish negotiating speed/duplex, doing spanning-tree, etc, before the udhcpc process tries three times.

    Watching it in person, it looks like the interface on the switch comes up literally a second after the 3rd attempt to get a lease. Here’s a photo of the error I’m getting:

    IMG_2217.jpeg

    My question is: can I have this process try 4 or 5 times instead of 3 times? Is this a setting or piece of code I can alter somewhere?

    G 1 Reply Last reply Mar 20, 2019, 5:37 PM Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Mar 20, 2019, 5:00 PM

      @mig39 Unfortunately it’s not as simple as changing a setting. Although it’s not too hard to change the script code I am wondering why you think it would work trying longer.

      I suppose this is a Spanning Tree issue. Please connect a dumb Mini switch between the computer and your main switch. See if that makes a difference.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • G
        george1421 Moderator @mig39
        last edited by george1421 Mar 20, 2019, 11:38 AM Mar 20, 2019, 5:37 PM

        @mig39 It does sound like a spanning tree issue where you are not using one of the fast spanning tree protocols. The ideal solution is to update/fix your switches to use a fast spanning tree protocol (fstp, fast-stp, mstp, etc).

        The hacker way (not intended to be a bad term only methodology) would be either to unpack the inits, update them, and then repack the init or use a post init script to replace/update the /etc/init.d/S40network network startup script in FOS and then change the value on line #37 to some number larger than 3. As seen here: https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network

        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
        • M
          mig39
          last edited by Mar 20, 2019, 6:39 PM

          Thanks, will try a dumb switch and report back. And I can always adjust (or turn off) the spamming tree stuff on the switch, as it’s usually not connected to other switches.

          The reason I think just a second or two longer delay would work is that I literally watched the light on the switch interface 🙂 it is orange while negotiating and doing its thing, then green when it’s fully connected. The green happens literally a second after the third attempt 🙂

          The initial PXE boot from the laptop works just fine, BTW.

          1 Reply Last reply Reply Quote 0
          • M
            mig39
            last edited by Mar 22, 2019, 2:31 PM

            As predicted, it was the spanning tree protocol on the Cisco switch.

            I verified it worked just fine with a dumb switch connected through the Cisco switch. And it worked just fine.

            So I just turned off Spanning Tree on the switch, since it’s a standalone switch.

            Thanks for your help!

            G 1 Reply Last reply Mar 22, 2019, 3:28 PM Reply Quote 0
            • G
              george1421 Moderator @mig39
              last edited by Mar 22, 2019, 3:28 PM

              @mig39 I would only turn off spanning tree on a switch where you have 100% control of the switch ports. If any of the switch ports are user facing I would not disable spanning tree. Your cisco switch should support rapid-stp or fast-stp. That is all that is needed. Then you don’t run the risk of a loopback taking down your network.

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

              193

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project