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

    • With the current hardware prices Microsoft should lift the restriction. Then if you have the correct TPM then allow you to use X feature, if you don't have the correct TPM then don't but still actually let you run windows. 11. With a disclaimer during install that X features would be unavailable.
    • It's good for recycling of course. But commence inflation of a second hand RAM bubble and price gouging on DDR 4 inventory in 3... 2... 1...
    • Bypassed Windows 11 shows surprising stability on ancient, completely unsupported hardware by Sayan Sen When Windows 11 was first released, one of the most complained-about issues with the new desktop Microsoft OS was its higher system requirements, which pushed many relatively modern and powerful processors and devices onto the officially unsupported list. Thankfully, they have not been updated again for the base OS, though systems require four times the memory and storage if they want to run AI-powered apps and features. As such, Windows 11 technically runs on 4GB of memory, and there is no imposed restriction on the generation of memory it supports. Speaking of memory, prices are extremely high nowadays for hardware, especially DDR5 and DDR4 kits due to the current silicon shortage, and there are also reports of it affecting DDR2 as well, and it might only be a matter of time before even DDR1 gets affected. Before that could happen, an enthusiast took an ancient DDR1-based system and decided to try out Windows 11 on it to see how well the modern OS would fare on such hardware. The system runs an outdated graphics card interface standard based on AGP, or Advanced Graphics Port, called AGP 3.0 or AGP8x. AGP was essentially succeeded by the modern PCI Express (PCIe) bus standard. The user behind the experiment is retro hardware enthusiast Omores, who built the system around an ASRock ConRoe865PE motherboard based on Intel's i865PE chipset from way back in 2003, around the time when AGP was still in fashion. What made this board special back in the day was its unusual support for newer Core 2 Duo and even Core 2 Quad processors while still retaining older DDR1 memory support and an AGP8X graphics slot, making it an ideal bridge or link between two vastly different generations. Powering the machine was Intel's Core 2 Quad Q6600 alongside 3GB of DDR1 RAM and an ATI Radeon HD 4650 AGP graphics card, one of the final and most capable GPUs released for the aging AGP interface. While installing Windows 11 itself was relatively easy by bypassing Microsoft's hardware checks, getting the graphics card fully functional proved to be some challenge. Microsoft had quietly dropped native AGP support after the earliest releases of Windows 10, meaning newer versions of Windows no longer include the necessary Graphics Address Remapping Table (GART) drivers required for proper AGP acceleration. Without them, AGP graphics cards typically boot up, though with limited functionality, and can often throw a Code 43 error in Device Manager. To work around the limitation, Omores extracted Intel's legacy AGP440 SYS driver from an early Windows 10 release and paired it with a modified INF file so Windows 11 would correctly recognize the chipset. Following this and combined with AMD's final 64-bit Catalyst AGP drivers from 2012, the Radeon HD 4650 was able to operate with full AGP 8X acceleration intact. The result was said to be surprisingly usable for hardware that is over two decades old. Hardware-accelerated H.264 video playback worked correctly and benefited apps like Firefox, while legacy applications and games ran without major graphical issues. The system also successfully completed the 3DMark 2001 benchmark, although performance naturally lagged behind what the same hardware achieves under Windows 7, which is significantly lighter than Windows 11. There was, however, one unavoidable limitation as Microsoft's Windows 11 version 24H2 introduces a mandatory SSE4.2 CPU instruction requirement that cannot be bypassed through installer modifications or registry tweaks. Since no AGP-era processor supports SSE4.2, Windows 11 version 23H2 effectively becomes the final release capable of running on such systems. Regardless, it is still a very cool feat and quite fascinating to see just how stable Windows 11 turned out to be on such unfamiliar hardware. Source: Omores (Patreon) via O_MORES (Reddit)
    • That will only really help other players that are also responsible for creating the problem.
    • Well, it's good to know that they have found a workaround to a problem that they helped create, I guess...
  • 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
      266
    3. 3
      PsYcHoKiLLa
      151
    4. 4
      Steven P.
      98
    5. 5
      macoman
      66
  • Tell a friend

    Love Neowin? Tell a friend!