macOS 查看网络接口信息

networksetup -listallhardwareports

执行结果:

Hardware Port: Ethernet Adapter (en4)
Device: en4
Ethernet Address: 6a:d9:f9:5e:a8:e6

Hardware Port: Ethernet Adapter (en5)
Device: en5
Ethernet Address: 6a:d9:f9:5e:a8:e7

Hardware Port: Ethernet Adapter (en6)
Device: en6
Ethernet Address: 6a:d9:f9:5e:a8:e8

Hardware Port: Thunderbolt Bridge
Device: bridge0
Ethernet Address: 37:d3:98:60:9c:00

Hardware Port: Wi-Fi
Device: en0
Ethernet Address: c8:99:f3:ea:69:3e

Hardware Port: Thunderbolt 1
Device: en1
Ethernet Address: 37:d3:98:60:9c:00

Hardware Port: Thunderbolt 2
Device: en2
Ethernet Address: 37:d3:98:60:9c:04

Hardware Port: Thunderbolt 3
Device: en3
Ethernet Address: 37:d3:98:60:9c:08

VLAN Configurations
===================
posted @ 2024-01-21 22:01  Undefined443  阅读(56)  评论(0编辑  收藏  举报