VinsWorldcom has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for a platform independent interface module to get interface information like:
- interface name
- device name
- IPv4 address
- IPv6 address
- MAC address
- default gateway (IPv4, IPv6 and MAC)
- MTU
- ...
I've found many possibilities, but all have shortcomings:
Module | Issue |
---|---|
IO::Interface(::Simple) | *nix only |
Net::Interface | *nix only (supposedly able to be expanded) |
Win32::IPHelper | Windows only and has bugs (rt://71842) |
Net::Libdnet | only 5 passes, ~300 other / I can't get it to compile on Windows |
What do other Monks use? Or do you just backtick ifconfig / ipconfig and parse?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cross Platform Network Interface Module
by Corion (Patriarch) on Apr 18, 2013 at 19:24 UTC | |
by VinsWorldcom (Prior) on Apr 18, 2013 at 19:53 UTC | |
by BossieSA (Novice) on Jun 30, 2015 at 08:04 UTC | |
by VinsWorldcom (Prior) on Jun 30, 2015 at 17:39 UTC | |
Re: Cross Platform Network Interface Module
by hardburn (Abbot) on Apr 18, 2013 at 20:26 UTC |
Back to
Seekers of Perl Wisdom