ubuntu server 14.04 无线网卡配置

时间:2022-11-11 21:34:26

1. 网卡类型

root@spch2008-server:~# lspci -vnn -d 14e4:
04:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)

2. 工具下载

http://bues.ch/b43/fwcutter/b43-fwcutter-018.tar.bz2

make

make install

3. 驱动下载

http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2

4. 安装驱动

b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o

5. 加载驱动

modprobe b43

6. wifi链接

   配置无线网卡 /etc/network/interface

   auto wlan0
   iface wlan0 inet dhcp
   dns-namservers 192.168.1.1 8.8.8.8   #192.168.1.1 为无线路由器网关,8.8.8.8为谷歌dns

链接路由器

root@spch2008-server:~# wpa_passphrase ssid passwd > passwd
root@spch2008
-server:~# wpa_supplicant -B -i wlan0 -Dwext -c ./passwd
root@spch2008
-server:~# iwconfig wlan0
root@spch2008
-server:~# dhclient wlan0

验证链接情况

root@spch2008-server:~# iwconfig
wlan0 IEEE
802.11abg ESSID:"TJing"
Mode:Managed Frequency:
2.437 GHz Access Point: 08:10:79:4A:72:B6
Bit Rate
=54 Mb/s Tx-Power=200 dBm
Retry
long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality
=70/70 Signal level=-38 dBm
Rx invalid nwid:
0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:
0 Invalid misc:0 Missed beacon:0

测试网络

root@spch2008-server:~# ping www.baidu.com
PING www.a.shifen.com (
119.75.218.70) 56(84) bytes of data.
64 bytes from 119.75.218.70: icmp_seq=1 ttl=57 time=4.17 ms
64 bytes from 119.75.218.70: icmp_seq=2 ttl=57 time=3.35 ms

 

参考:

http://www.linuxidc.com/Linux/2014-04/100115.htm

http://blog.csdn.net/judwenwen2009/article/details/17026389