![]() |
![]()
| ![]() |
![]()
NAMENet::Address::Ethernet - find hardware ethernet address SYNOPSISuse Net::Address::Ethernet qw( get_address ); my $sAddress = get_address; FUNCTIONSThe following functions will be exported to your namespace if you request :all like so: use Net::Address::Ethernet qw( :all );
For example: { 'sAdapter' => 'Ethernet adapter Local Area Connection', 'sEthernet' => '12:34:56:78:9A:BC', 'rasIP' => ['111.222.33.44',], 'sIP' => '111.222.33.44', 'iActive' => 1, }, If any non-zero argument is given, debugging information will be printed to STDERR.
NOTESSEE ALSOarp, ifconfig, ipconfig BUGSPlease tell the author if you find any! And please show me the output of `arp <hostname>` or `ifconfig` or `ifconfig -a` from your system. AUTHORMartin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>. LICENSEThis software is released under the same license as Perl itself. #### This is an example of @ahInfo on
MSWin32: (
#### This is Solaris 8: > /usr/sbin/arp myhost myhost (14.81.16.10) at 03:33:ba:46:f2:ef permanent published #### This is Solaris 8: > /usr/sbin/ifconfig -a lo0:
flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
#### This is Fedora Core 6: $ /sbin/arp Address HWtype HWaddress Flags Mask Iface 19.16.11.11 ether 03:53:53:e3:43:93 C eth0 #### This is amd64-freebsd: $ ifconfig fwe0:
flags=108802<BROADCAST,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
|