大多无线网卡还需要固件。内核一般会自动探测并加载两者,如果您得到类似 SIOCSIFFLAGS: No such file or directory 的输出,意味着您得手动加载固件。若不确定,用 dmesg 查询内核日志,看看有没有来自无线网卡的固件请求,命令如下:
[html] view plain copy
[html] view plain copy
[html] view plain copy
[html] view plain copy
4. 查看无线网络连接情况
[html] view plain copy
刚开始应该会显示无连接
5. 扫描可连接的wifi
[html] view plain copy
7. 用dhcp 获得 IP 分配
[html] view plain copy
8. 测试是否成功地从路由器获取了ip
[html] view plain copy