返回首页
当前位置: 主页 > 操作系统 > Mac OS教程 >

Mac终端如何查看本机ip和mac地址

时间:2015-10-12 20:41来源:电脑教程学习网 www.etwiki.cn 编辑:admin

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

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

tantengdeMacBook-Pro:~ tanteng$ ifconfig

 

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

options=3<RXCSUM,TXCSUM>

inet6 ::1 prefixlen 128

inet 127.0.0.1 netmask 0xff000000

inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1

nd6 options=1<PERFORMNUD>

gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280

stf0: flags=0<> mtu 1280

en0: (本地以太网)flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> 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<PERFORMNUD>

media: autoselect

status: active

en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500

options=60<TSO4,TSO6>

ether 72:00:08:40:c5:40

media: autoselect <full-duplex>

status: inactive

en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500

options=60<TSO4,TSO6>

ether 72:00:08:40:c5:41

media: autoselect <full-duplex>

status: inactive

p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304

ether 06:36:3b:c6:87:20

media: autoselect

status: inactive

awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484

ether de:0a:a7:73:58:90

inet6 fe80::dc0a:a7ff:fe73:5890%awdl0 prefixlen 64 scopeid 0x8

nd6 options=1<PERFORMNUD>

media: autoselect

status: active

bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

options=63<RXCSUM,TXCSUM,TSO4,TSO6>

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<LEARNING,DISCOVER>

ifmaxaddr 0 port 5 priority 0 path cost 0

member: en2 flags=3<LEARNING,DISCOVER>

ifmaxaddr 0 port 6 priority 0 path cost 0

nd6 options=1<PERFORMNUD>

media: <unknown type>

status: inactive

顶一下
(0)
0%
踩一下
(2)
100%
标签(Tag):Mac操作系统
------分隔线----------------------------
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片
推荐内容