Wondering if there is a command that shows the relevant dhcp lease info in openSUSE (lease time, which dhcp server gave the lease, etc).
It’s one thing to look at the dhclient-xxx.lease files in /var/run but I was hoping there is a command that shows a summary on all cards.
Thanks for your input,
Here’s my drive-by thought:
Have a look in the file /etc/dhclient.conf
Mine has 3600 in there for lease time. I don’t know what that means or whether that’s relevant in your case.
No answer for you Magic31. But this is a common request. A DHCP plugin akin to the M$ Server plugin. An ability to easily veiw current leases and their default times etc.
It would only need to be a front end for the .conf file. But a handy one at that.
Some of the info is available in the YAST>DHCP Server module…but more would be nice…
Thanks for your replies. I’ll give some more searches on this but I think your comment is on the money saltyp & sorry swerdna, not totally what I meant.
Guess it’s one of those things that might pop up one of these days now Linux is getting a stronger user base. wish mode
Now if only I had those programing skills…
Like your signature btw saltyp! What a little self-knowledge can do!! lol
dhcpcd -T eth(n)
Will ouput some stuff like LEASETIME='86400
will give renewal in
bound to 192.168.0.0 – renewal in 12345 seconds
Some time maths and a little scripting I guess its possible. I’m presuming both commands are on Suse.
The commands are on (open)suse, the ‘dhcpdc -T’ command is a nice option to list dhcp options you would be getting, but does not retrieve the current values.
Nevertheless an interesting option.
As for the dhclient… I think running this disturbs the current link configuration, something I want to avoid in this case.
Thanks for the feedback,
Ok after this I step out I’m no networking guru it all confuses me. It seems you’re correct from reading the man but this lead to this on my system
Perhaps this helps.