Recommended Posts

Hi All,

 

Anyone know any makes of router i can set with a 3/4 or 5 minute DHCP lease time? 

 

Most makes i have tried have set time starting at 1 hour minimum.

 

I have searched all over the internet and only comments that seem to be floating about are the "why bother" and "you would never need one"

 

but this is exactly what i need, If anyone knows of one then any info would be great.

 

Thanks

You do understand you don't have to run dhcp on your router, you can run dhcp on any linux box or windows server comes with it or you could run

 

http://tftpd32.jounin.net/

 

has dhcp server.. Lots of different ways to skin this cat.. Pretty sure 3rd party firmware for soho routers like dd-wrt have more options for dhcp server as well.

 

But I have to ask why do you want/need such a short lease time?

  • Like 1

i work with multiple devices per day all set to Auto Ip from the start, rather then issuing each one with a set IP address i need a low DHCP time so i can plug a lead in, have it issue my device with the same IP each time, do a 5 minute set up and then clear the address ready for the next device. 

 

 

huh??

 

So you have device1 and you want to get IP address 192.168.1.100, then you want to plug in device2 and get same 192.168.1.100 address?

 

What is the use case, what does is matter if device2 gets .101, device3 gets .103 etc..

that is correct, many devices all needing the same ip one at a time, i have a program i made using autohotkey that automates a set up for each so rather then changing the Ip to match each box, i can run the program on repeat without having to touch it. 

yeah so dd-wrt sure looks like you could set lease time to 1 minute

ddwrtdhcp.jpg

 

Just grabbed that from an emulator site, I don't currently have it running I use pfsense for my router.  And that allows full control over dhcp options so you could set your 1 minute lease time if you wanted.

 

^ yeah I am not really understanding the use case here.. Either have your script get the ip, or just have it set the IP of the machine and don't use dhcp, etc..  Confused and curious ;)

not that good with scripts to be honest, this seemed like a much easier option as i was already using a router for wireless connection to the Device. 

 

Surely plugging my Ethernet lead in and automatically getting the desired Ip for the duration i need it is better then Writing/testing code?

Here is the thing.. Even if your lease time is only 1 minute.. Depending on the way the dhcp server works you might not get first IP in pool or last IP, etc.. it might walk down the pool because its a new mac and might not reassign the same IP from the pool even if the previous lease expired, etc.

 

It could keep the expired lease there until its pool has been exhausted before it starts using up expired leases.  So device1 might get 192.168.1.100, with 1 minute lease.  Then you turn off that machine sure the lease expires.  But then comes along device2 with different mac and the dhcp server could give it 192.168.1.101 since it had not been assigned yet, etc.  And 100 has a previous lease tied to a different mac, even though it is expired there are plenty of IPs left in the pool.

 

Guess you could make it pool of 1 IP ;)

ok, you have me curious now, how would i go about "inserting" or "setting" the desired ip using code?

 

not asking for you to write me code, just a general helpful tip. 

 

I cant use installable programs, im only just getting away with running scripts.

if a windows computer

 

 

 

netsh interface ip set address "Local Area Connection" static 192.168.1.100 255.255.255.0 192.168.1.1

netsh interface ip add dns "Local Area Connection" 8.8.8.8

netsh interface ip add dns "Local Area Connection" 208.67.220.220 index=2

 

 

 

put that into a networkip.bat file and run as administrator.

i thought about this kind of thing but these devices need finish on Autoip, i was looking at ways of keeping the settings to a minimum plus they reset once a static address has been allocated and also again once dynamic has been reselected adding more time to the set up process,

 

really appreciate your ideas, its all stuff i will be trying. 

 

 

well just set back to dhcp via netsh then when your done with whatever else your doing..

 

netsh interface ip set address "Local Area Connection" dhcp

netsh interface ip set dns "Local Area Connection" dhcp

 

What do you mean they reset??

thanks for the advice, few issues i have come up against while using these ideas. 1, this will add two reboots to the set up of my devices, they reboot every time a network change has been issued, part of my setup involves turning IPV6 off and i do this last just so the reboot signifies the end of the set up. Also i have tried before to use images and scripts to make changes and been hit with problems due to the device needing username and password before changes can be made. 

 

The devices in question are Printers or MFD's, they have mini internal print servers as well as a ever increasingly complicated operating system. 

 

 

 

ok lets assess the situation, i have multiple devices all needing the same set up which i can do through scripts that take less then 5 mins,

 

The Devices come in with DHCP set on and if the Device is turned on will obtain an ip the router has given it, every device will get a different ip within the hour as the DCHP lease time of the router is 1 hour minimum. 

 

currently i am manually assigning the same ip to each one by physically using the touch screen on the device to go into admin and setting a static ip, This then requires a restart of the machine, then running the set up then again logging into the admin mode to reset turn back on the autoip configuration ready for shipment. 

 

What i would like is a way so when i turn the Device on, the router gives it a set Ip address (the first one in the DHCP table), run the set up then when finished unplug it, the router then reaches its DHCP lease time, deletes the device from its table and the same ip address is then ready for the next device when i am ready.

 

Im trying to find ways of not setting the machine to static then back to auto, the router does all this for me. i just need the lease time to be shortened. 

 

not understanding why everyone needs to know why i need it it, look at the post, its nothing to do with my original question, believe me, it works this way, i have tested it many times bu turning the router off and leaving it off till it resets. And apparently I'm the one overthinking things. I have my answer so thank you very much. 

Are these desktop systems? Maybe you could use a USB ethernet adapter and set to a static IP. That way everytime you need to hook it to the network you hook it through that. Not sure if you can set it as static and still unplug and plug it back in.

good idea warwagon, unfortunately the devices are stand alone printers and multi functional devices (Copy/Fax/Scan/Print) etc. they have limited connectivity before their set up. Im pretty sure external network cards would require drivers and internal set up. 

 

thanks though.

 

 

This topic is now closed to further replies.
  • Posts

    • GnuCash 5.16 by Razvan Serea GnuCash is a personal and small business finance application, freely licensed under the GNU GPL and available for GNU/Linux, BSD, Solaris, Mac OS X and Microsoft Windows. It’s designed to be easy to use, yet powerful and flexible. GnuCash allows you to track your income and expenses, reconcile bank accounts, monitor stock portfolios and manage your small business finances. It is based on professional accounting principles to ensure balanced books and accurate reports. GnuCash can keep track of your personal finances in as much detail as you prefer. If you are just starting out, use GnuCash to keep track of your checkbook. You may then decide to track cash as well as credit card purchases to better determine where your money is being spent. When you start investing, you can use GnuCash to help monitor your portfolio. Buying a vehicle or a home? GnuCash will help you plan the investment and track loan payments. If your financial records span the globe, GnuCash provides all the multiple-currency support you need. Between 5.15 and 5.16, the following bugfixes were accomplished: Bug 421610 - RFE: Include logical dates for View->Filter by "date range"The Select Range section of the Date tab of the register's Filter By dialog box is changed to provide relative, specific date, or days ago options for the start and end of the filter range. The Show number of days item label is changed to Show from days ago to better reflect what it does. Bug 436105 - esc key not working as expected in register: Enable the escape key to cancel a field edit. Bug 797384 - Gnucash doesn't handle commodity prices with big numerator/denominator properly. Bug 798004 - Next gen UI for stock transactions Bug 799314 - Add "enter now" option in scheduled transaction editor. tab to allow users to select the scheduled transactions to be included in a “Since Last Run…” window. If there are no instances of a selected transaction triggered by today’s date, the next instance is triggered. Bug 799751 - autocomplete crash Bug 799759 - Users can't Enable entries via Checkboxes on Scheduled Transactions PageAllow the Enabled box in the list of scheduled transactions to be operated instead of having to open the transaction editor dialog and change the Enabled checkbox. Also added use of the Name column as the secondary column sort for all the other columns. Bug 799762 - Poor handling of cases where hidden/placeholder accounts are used in the account register Bug 799766 - Double line preference not respected in search register Bug 799767 - POST /accounts in bindings/python/example_scripts/rest-api is broken Bug 799777 - `xaccSplitSetParent`: reparenting a committed split silently drops its KVP slots (online_id, cap-gains links) Other changes & improvements: Numeric values may now be selected to copy in the Accounts page. Add new Finance::Quote source Finnhub.io: Free API key (personal/non-professional use) available at https://finnhub.io. Set FINNHUB_API_KEY environment variable to API key to use this source. As of June 2026, free tier API limit is 60 API calls/minute. The Investment Lots report has new optional columns for Computed Annual Growth Rate. Python Bindings: Improved translation of primary object (Account, Transaction, Split, etc.) so that they can be treated as normal Python objects. This is accomplished with SWIG magic so no existing code is obsoleted. Python Bindings: Better conversion of GLists to Python lists. Python Bindings: Destroy the QofSession in the Python Session dtor to prevent leaving the database locked. [engine] Add first-class online_id accessors for Split and Account and make them available to Python bindings, removing the unused Transaction online_id property. Improve C++ implementation of QofBook. Correct the Doxygen doc for qof_instance_get/set_kvp. [gnc-log-replay.cpp] fix incorrect guid dump Add some Boost library requirements needed by libgnucash-guile to CMakeLists.txt so that missing feature will fail at configure time. Use Compile-time Regular Expressions instead of std::regex in gnc-filepath-utils.cpp and instead of boost::regex in the CSV importer, with the CTRE v3.11.1 header added to borrowed [gnc-filepath-utils.cpp] null check char* arguments Add ChartJS licenses. Removed AEX from list of commodities. euronext.com is now using JS based anti-webscraping. [report-core] always offer options summary in reports. This is useful to debug reports. The Add options summary option is removed because it's no longer optional. Remove remaining obsolete IMContext from sheet Fix blurry text in HiDPI offscreen-rendered widgets Add port field to database connection dialog: The convention of appending the port number after the host isn't obvious. When editing a split in the register treat the account as being changed only if it isn't the one selected before editing instead of if the user performed an edit Return immediately from qof_book_destroy if hash_of_collections is null. If qof_book_destroy is called on a QofBook* freshly created with qof_book_new (usually because it was used to create a session that now must be destroyed) it would try to empty the non-existent hash tables, crashing. Clean up Flathub metadata to solve warnings at flatpak build time. Be consistent in naming GncPluginPage and GncPluginPageRegister HTML: Remove unimplemented function declarations. [gnc-html.cpp] remove unused buggy string conversion functions Convert libgnc-html to C++ Apply -Wall -Werr -Wmissing-prototypes to C++ compilation on Windows and fix the resulting errors. New and Updated Translations: Arabic, Croatian, Danish, Dutch, German, Finnish, Hungarian, Korean, Norwegian-Bokmal, Spanish Download: GnuCash 5.16 | 176.0 MB (Open Source) Links: GnuCash Home page | Other Operating Systems | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Microsoft finally launches WSL Containers in public preview by David Uzondu Microsoft has announced that WSL containers, a feature that allows developers to run Linux containers natively inside Windows without the need for Docker Desktop, is now available in public preview several weeks after Microsoft previewed it at Build 2026. To use the new container feature, you first have to install the latest pre-release version of the Windows Subsystem for Linux by running a quick update command in your terminal: wsl --update --pre-release After installing, you'd get access to the new Linux container CLI (wslc.exe) and the programmable API. Microsoft said that the CLI has a "familiar format" that matches the toolsets developers already use every day. If you know standard Docker commands, your muscle memory will translate directly to wslc.exe, which even features a built-in alias called container.exe. You can quickly run a full Ubuntu KDE desktop container by exposing ports, or pass your graphics card straight into a machine learning environment to run PyTorch workloads. Passing the --gpus all flag inside the run command instantly links your hardware. Image via Microsoft As for the API, developers can now embed Linux container operations directly inside native Windows applications without exposing the command line to users. The team integrated the API directly into MSBuild and CMake, so developers can define container steps directly in project files. Apart from bringing the CLI and API into public preview, Microsoft also said that it's working on a new default file system called virtiofs to speed up file transfer rates between Windows and Linux. Microsoft also introduced an experimental networking mode named consomme, which resolves compatibility issues with corporate VPNs by routing Linux network traffic straight through Windows. One thing to note about WSL containers is that they don't run in your standard WSL distributions; instead, every application and CLI session spawns its own lightweight Hyper-V utility VM in the background. This basically reduces the chances of one app snooping on the container of another app.
    • Google reportedly limited Meta's Gemini access over limited AI compute by Karthik Mudaliar Google is reportedly limiting Meta's use of its Gemini AI models after Meta tried buying more computing capacity than even Google could supply. According to the Financial Times, Google told Meta in March that it could not provide the full Gemini capacity that Meta had requested. This shortfall even disrupted and delayed some of Meta's internal projects. Due to this, Meta even told its employees internally to use AI tokens more efficiently. Meta wasn't the only one to get hit by this sudden refusal by Google; even other customers were affected. But Meta was hit harder because of its unusually high demand for Google's models. The move from Google makes it evident that companies all over are in limited supply of both infrastructure and compute. Alphabet said in April that Google Cloud revenue grew 63% year-over-year to $20 billion in the first quarter, helped by enterprise AI infrastructure and AI solutions. In pursuit of more compute, Meta had earlier signed a multi-billion-dollar AWS agreement as well as a large AMD GPU deal for AI data centers. But the crunch would be short-lived as both Meta and Google have also ramped up infrastructure investments heavily. Meta said in November that it was committing more than $600 billion in the U.S. by 2028 for AI technology, infrastructure, and workforce expansion. In the first quarter of this year, Meta also raised its expected capital expenditure for 2026 to a range of $125 billion to $145 billion, citing higher component pricing and additional data center costs for future capacity. However, this doesn't make the company immune to the current dependence on outside suppliers. Meta has also spent many years promoting Llama as an open-weight alternative to closed models from Google, OpenAI, and Anthropic. But if the reported reliance on Google's Gemini models is severe enough for internal work to get impacted, then it looks like even frontier labs and Big Tech aren't fully self-sufficient. Source: Financial Times
    • I like to reminisce about the good old days, way back in autumn 2025 when building a gaming machine was fun and the drives were about $150 when you caught a deal. Yes duh, back in the day we had it gone. Then baby Skynet came along, hiding in AI datacenters demanding more processing power until it reached singularity. End of a not totally fictional story.
    • My experience in the past with older Windows 11 builds was not great on unsupported machines but I recently used Rufus to put the latest build on a older 5th Gen Core Thinkpad T that we upgraded with a SATA SSD and 8GB of RAM four years ago when hardware was reasonable and it seemed pretty fast and solid. Customer is very happy with the performance and will probably get four more years out of that venerable laptop that he loves so much. Another customer just retired his Dell Studio laptop from 2009 running Windows 10. It got an SSD over 10 years ago and did everything he needed it to for 17 years but he also retired last year and is happy doing everything on his iPad now.
  • Recent Achievements

    • Reacting Well
      NovaEdgeX earned a badge
      Reacting Well
    • Week One Done
      NovaEdgeX earned a badge
      Week One Done
    • One Year In
      BA the Curmudgeon earned a badge
      One Year In
    • Conversation Starter
      rosiecharles earned a badge
      Conversation Starter
    • First Post
      KMilenkoski1202 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      538
    2. 2
      +Edouard
      269
    3. 3
      PsYcHoKiLLa
      150
    4. 4
      Steven P.
      98
    5. 5
      macoman
      66
  • Tell a friend

    Love Neowin? Tell a friend!