苹果mac电脑查看本机ip和mac地址吗_苹果MAC电脑查看本机IP和MAC地址

更新时间:2020-03-11    来源:网络相关    手机版     字体:

【www.bbyears.com--网络相关】

windows命令行输入ipconfig即可查看本机的ip地址和mac物理地址,macbook终端输入什么命令查看本机ip和mac地址呢?

打开终端输入ifconfig命名,会显示一大堆关于网络、网卡的信息,如下:

tantengdeMacBook-Pro:~ tanteng$ ifconfig

lo0: flags=8049 mtu 16384 options=3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=1 gif0: flags=8010 mtu 1280 stf0: flags=0<> mtu 1280 en0: (本地以太网)flags=8863 mtu 1500 ether 34:36:3b:c6:87:20 (本机mac物理地址) inet6 fe80::3636:3bff:fec6:8720%en0 prefixlen 64 scopeid 0x4 net 192.168.0.103(本机当前ip地址) netmask 0xffffff00 broadcast 192.168.0.255 nd6 options=1 media: autoselect status: active en1: flags=963 mtu 1500 options=60 ether 72:00:08:40:c5:40 media: autoselect status: inactive en2: flags=963 mtu 1500 options=60 ether 72:00:08:40:c5:41 media: autoselect status: inactive p2p0: flags=8843 mtu 2304 ether 06:36:3b:c6:87:20 media: autoselect status: inactive awdl0: flags=8943 mtu 1484 ether de:0a:a7:73:58:90 inet6 fe80::dc0a:a7ff:fe73:5890%awdl0 prefixlen 64 scopeid 0x8 nd6 options=1 media: autoselect status: active bridge0: flags=8863 mtu 1500 options=63 ether 36:36:3b:6c:58:00 Configuration: id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0 maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200 root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0 ipfilter disabled flags 0x2 member: en1 flags=3 ifmaxaddr 0 port 5 priority 0 path cost 0 member: en2 flags=3 ifmaxaddr 0 port 6 priority 0 path cost 0 nd6 options=1 media: status: inactive

本文来源:http://www.bbyears.com/jiaocheng/86431.html

热门标签

更多>>

本类排行