Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check mac address in Linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you how to check the mac address in the Linux system. The content is easy to understand and clear. I hope it can help you solve your doubts. Let the editor take you to study and learn the article "how to check the mac address in the Linux system".

Introduction to mac: MAC (Mediun access cntrol) address, used to represent the identifier of each site on the Internet, expressed in hexadecimal numbers, with a total of six bytes.

The first three bytes are the codes assigned to different manufacturers by RA, the registration authority of IEEE, also known as "compiling unique identifiers" (Organzationally Unique Identifier). The last three bytes have adaptation layer interfaces assigned to production by each manufacturer, called extension identifiers.

An address can generate 2 ^ 24 different addresses, and the MAC address is actually the adapter address or adapter identifier EUI-48.

Linux system checks the mac method: ifconfig-a, where the HWaddr field is the mac address.

Cat / sys/class/net/eth0/address check the mac address of eth0

Cat / proc/net/arp check the mac address of the remote ip connected to the local computer

Use the ioctl command of SIOCGIFHWADDR to obtain the mac address in the program

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

The above is about "how to check the mac address in the Linux system". If this article is helpful and well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report