IT序号网

Mac OS X ifconfig命令解释

lxf 2021年05月25日 程序员 314 0

在command 命令运行ifconfig之后,出现很多名词

lo0 
gif0 
stf0 
en0 
fw0 
en1 
vmnet1

查查看

lo0 = loopback 
gif0 = Software Network Interface 
stf0 = 6to4 tunnel interface 
en0 = Ethernet 0 
fw0 = Firewire 
en1 = Ethernet 1 
vmnet1 = Virtual Interface


那en0 en1 en2 en3 en4 怎么这么多???
运行一下命令:

networksetup -listallhardwareports 
 
Hardware Port: Wi-Fi 
Device: en0 
Ethernet Address: c4:b3:01:bd:ad:1d 
 
Hardware Port: Bluetooth PAN 
Device: en3 
Ethernet Address: c4:b3:01:bd:ad:1e 
 
Hardware Port: Thunderbolt 1 
Device: en1 
Ethernet Address: 4a:00:07:4d:b2:b0 
 
Hardware Port: Thunderbolt 2 
Device: en2 
Ethernet Address: 4a:00:07:4d:b2:b1 
 
Hardware Port: Thunderbolt Bridge 
Device: bridge0 
Ethernet Address: 4a:00:07:4d:b2:b0

原来是Wi-Fi,蓝牙,thunderbolt…
————————————————
版权声明:本文为CSDN博主「旧人赋荒年」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yangziluomu/article/details/75043171


评论关闭
IT序号网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!