Hug*_*ugo 11 macos networking wireless ethernet ifconfig
Linux多年来一直是我的主要系统.在Linux中,以太网硬件设备名称类似eth0或enp1s0(后者我只看到Arch Linux的).无线网卡的名称一直都是wlan0或者wlp2s0(后者在Arch上).在我的新MacBook Air上,分配了无线网络en0,我读过它代表以太网.此外,即使我没有以太网端口,也有一个en1.这个命名约定是什么意思?
Mar*_*gek 10
值得记住的是,OSX不是Linux,它基本上是BSD.在BSD中,网络接口以管理接口的设备驱动程序命名,不一定基于设备类型.我的猜测是,同一驱动程序支持Apple计算机上的内置WiFi接口和有线网卡.
您可以使用该命令列出所有接口
networksetup -listallhardwareports
Run Code Online (Sandbox Code Playgroud)
在我的Macbook上,它列出了许多接口(WiFi,蓝牙,Thunderbolt),它们都被命名为enX.
| 归档时间: |
|
| 查看次数: |
9804 次 |
| 最近记录: |