如何获取mac的ip地址
一.命令行方式
1.打开命令行
2.输入输入命令:ifconfig en0
3.回车,即可:
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 90:9c:4a:b7:4b:f6 inet6 fe80::1044:95dd:82db:56de%en0 prefixlen 64 secured scopeid 0x6 inet6 2408:84e1:1:e8d5:14df:fcc0:6fb8:2fdf prefixlen 64 autoconf secured inet6 2408:84e1:1:e8d5:c4b3:bc80:8b01:6b92 prefixlen 64 autoconf temporary inet 192.168.43.31 netmask 0xffffff00 broadcast 192.168.43.255 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active
其中192.168.43.31就是你的ip地址
二。网络偏好设置里查看
面板-偏好设置-网络-状态下-也能查看本机的ip
本文来自博客园,作者:King-DA,转载请注明原文链接:https://www.cnblogs.com/qingmuchuanqi48/articles/13326462.html