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

    • Segra 1.6.3 by Razvan Serea Segra is a free, open-source OBS-powered game recorder offering fast gameplay capture, instant clips, AI highlights, deep game integration, and seamless uploads—perfect for gamers, streamers, and content creators. Lightweight, fast, zero bloat. Segra key features: Automatic Game Recording: Begin capturing gameplay the moment your game launches, with zero manual setup. Instant Clipping: Save important moments instantly using a customizable hotkey—perfect for highlights, montages, or quick shares. Segra AI Highlights: Let Segra automatically detect kills, assists, deaths, and key events to generate polished highlight reels without manual editing. Gameplay Uploads: Upload recordings and clips directly to Segra.tv for fast sharing and cloud access. Deep Game Integration: Enjoy advanced game-data tracking across hundreds of supported titles, enabling smart highlight generation and stat-informed clipping. High-Performance Capture: Record up to 4K at 144 FPS using OBS-powered technology with minimal performance impact, supporting NVENC, AMD VCE, and custom quality controls. Segra Editor: Edit recordings easily with timeline controls, segment management, and event-based navigation to build the perfect clip. Customization Options: Adjust hotkeys, output formats, storage paths, codecs, capture quality, and performance settings for a tailored recording experience. Segra 1.6.3 changelog: Recording: Reworked the whitelist/blacklist into per-game recording with individual setting overrides. Settings: Added Windows Game Mode and Startup window mode options. Audio: Improved noise suppression for microphone capture. Clips: Added a separate export mode for segment clips. Updates: Fixed pending update state not showing by replaying it when the frontend reconnects. Recording: Fixed an issue where audio could break or sources could linger between recordings. Stability: Fixed a rare crash that could happen when a game closed. Settings: Fixed settings not applying correctly on some non-English systems. Download: Segra 1.6.3 | 74.5 MB (Open Source) View: Segra Homepage | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • So, recently, I saw on the news (yes, on this website) that Samsung is introducing features where it can provide education using AI-powered sets, and because of this, I got concerned about whether the AI gives out wrong info during education sessions, causing controversies in the process. What are your thoughts on this? 
    • TCL's Bang & Olufsen soundbar is 40% off on Amazon by Ivan Jenic The TCL Design Series A65K is currently $299.99, down from $499.99. That's 40% off and $200 saved on a soundbar tuned by Bang & Olufsen, which is not a combination you'd normally expect at this price point (purchase link below). Bang & Olufsen doesn't typically show up in the sub-$500 category. The Danish audio brand is known for speakers that cost several times more, so having their acoustic tuning on a $300 soundbar is very appealing. TCL handles the hardware, B&O handles the sound engineering, and the result is what the company calls "accessible luxury." Still, accessible luxury isn’t full-fledged luxury, so don’t expect wonders. But this is a decent soundbar, nevertheless. The A65K is a true 3.1.2 channel system with nine physical drivers, including genuine up-firing height speakers for Dolby Atmos and DTS:X. Many soundbars at this price simulate overhead effects through virtual processing, rather than actual hardware. So, you’re getting the real deal. The design is unusually slim for a system with Atmos compatibility. The bar is just under 2 inches deep and should fit beneath most TV screens. The wireless subwoofer is also compact at roughly 14 x 14 x 5 inches. Total output is 460W, and you can connect to the soundbar via HDMI eARC, Bluetooth 5.3, or USB. There are also eight sound modes through the TCL Home app and an AI calibration capability. Although it’s worth mentioning that AI capabilities in most of these devices are inconsistent, to say the least, and that shouldn’t be the biggest selling point. Still, at $299.99, the A65K is a strong buy for anyone who wants a soundbar that sounds and looks noticeably better than what this price range usually offers. And the Bang & Olufsen branding surely sounds nice - pun intended. TCL Design Series Bang & Olufsen A65K - $299.99 | 40% off on Amazon Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • And he paid Joe Rogan $30M for podcasts. Terrible company.
    • I sure hope the AI does not give out wrong info during education
  • Recent Achievements

    • Apprentice
      jahara21 went up a rank
      Apprentice
    • 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
  • Popular Contributors

    1. 1
      +primortal
      529
    2. 2
      +Edouard
      263
    3. 3
      PsYcHoKiLLa
      148
    4. 4
      Steven P.
      96
    5. 5
      macoman
      60
  • Tell a friend

    Love Neowin? Tell a friend!