![]() Print 'Searching for New DHCP IP address for MAC address %s. Thanks to all who helped me accomplish this task. If anyone sees any major issues, please let me know. Here's what I have in my script and it works. Just to share with the community - View image here:. There are numerous tools that will do this for you. No, I'm referring to ping sweeping, not pinging a broadcast addres.that is, ping each address in your subnet, incrementally. I was thinking maybe using Dynamic DNS and that way I could simply just use the host name of my device whether it has a static IP or using DHCP? But to do this I believe I would need to setup a server system to act as the DHCP and DNS server? Could there be a terminal command to display this lease table in Linux from my router? ![]() ![]() I can see the DHCP lease table through the web GUI to my router (and possibly some CLI commands to the router) but I would like to keep my scripts generic enough that they would work on other networks with different DHCP servers. When you say Ping sweep the subnet, are you referring to broadcast pinging? ie: ping -b 192.168.20.255 to find all the devices on subnet 20?īroadcast ping does not seem to use arp requests and therefore does not update the arp table.
0 Comments
Leave a Reply. |