平台 |
查询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
![](http://img0.baidu.com/it/u=1830446558,40471137&fm=253.jpg)