![]() If you only need the addresses of network interfaces, have a limited set of platforms to support, and are able to handle C-extension modules, then you should instead check out the excellent netifaces package by Alastair Houghton ( It's significantly faster (thanks to it being C-code) and has been around a long time and seen widespread usage. It provides one function: get_mac_address() Remote hosts on the local network (by IPv4/IPv6 address or hostname).System network interfaces (by interface name).It provides a platform-independent interface to get the MAC addresses of: Typically, eth0 is for Ethernet connection, and wlp2s0 for Wireless connection.Pure-Python package to get the MAC address of network interfaces and hosts on the local network. Inet6 1:2:00:33:333/64 scope global mngtmpaddr noprefixroute dynamic Valid_lft 548176sec preferred_lft 61403sec Inet6 AB:AD:AK:AI/64 scope global temporary dynamic Valid_lft 61791sec preferred_lft 61791sec How to use FTP by command-line in Ubuntu 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000.Top reasons why systemd is a practical tool for sysadmins.How to move files and directories in Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |