我只想告诉无线适配器是内部连接还是外部连接。我目前有一个外部和内部wifi适配器。我的wlan设备的“ifconfig”如下所示:
wlan0 Link encap:Ethernet HWaddr 68:a3:c4:0d:0a:40
inet addr:10.0.0.114 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: 2002:6cb2:6e48:0:6aa3:c4ff:fe0d:a40/64 Scope:Global
inet6 addr: fe80::6aa3:c4ff:fe0d:a40/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:790868 errors:0 dropped:0 overruns:0 frame:0
TX packets:6194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:187807213 (187.8 MB) TX bytes:1306797 (1.3 MB)
wlan1 Link encap:Ethernet HWaddr 00:c0:ca:1f:8b:42
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
我似乎无法找到一种独特的方式来判断适配器是内部还是外部。
答案 0 :(得分:3)
查看/sys/class/net/wlan0
符号链接指向的位置。如果您在路径中看到usb
,那就是它。