当前位置:首页 > 电脑 > 正文

怎样查电脑ip地址和mac地址

  • 电脑
  • 2024-05-20 11:09:20
  • 8458
平台
查询IP地址
查询MAC地址
Windows
cmd > ipconfig
cmd > getmac
macOS
Terminal > ifconfig
Terminal > ifconfig | grep ether
Linux
Terminal > ifconfig
Terminal > ifconfig | grep ether


  • Windows


    • IP地址:cmd > ipconfig

    • MAC地址:cmd > getmac


  • macOS


    • IP地址:Terminal > ifconfig

    • MAC地址:Terminal > ifconfig | grep ether


  • Linux


    • IP地址:Terminal > ifconfig

    • MAC地址:Terminal > ifconfig | grep ether



专业介绍:
IP地址(互联网协议地址)是一个唯一的数字标签,用于标识网络上的设备。 它类似于邮寄地址,允许计算机通过互联网互相通信。
MAC地址(媒体访问控制地址)是一个在网络适配器(例如网卡或Wi-Fi适配器)上分配的唯一标识符。 它是在设备制造过程中烧入的,不能更改。
要查询计算机的IP地址和MAC地址,可以根据操作系统使用以下命令:
Windows:
IP地址:cmd > ipconfig
MAC地址:cmd > getmac
macOS:
IP地址:Terminal > ifconfig
MAC地址:Terminal > ifconfig | grep ether
Linux:
IP地址:Terminal > ifconfig
MAC地址:Terminal > ifconfig | grep ether