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
===================