`

CentOS 5 安装和配置无线网卡指南

阅读更多


1.下载无线网卡驱动程序;
2.安装无线网卡驱动程序;
3.配置无线拨号配置文件;
4.注意事项和备注。

1, 到http://snapshots.madwifi-project.org下载最新的madwifi- hal-0.10.5.6文件,如madwifi-hal-0.10.5.6-r4016-20090429.tar.gz;
2,解压后.gz文件后用make && make install编译安装,最好从新启动一下系统;
3,确保下列类似信息的存在:[simonsun@magic ~]$ /sbin/lspci | grep Ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
06:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
[simonsun@magic ~]$ dmesg | grep "HAL"
[simonsun@magic ~]$ /sbin/lsmod | grep ath
dm_multipath           24013  0
scsi_dh                11713  1 dm_multipath
ath_rate_sample        16256  1
ath_pci               230844  0
wlan                  203760  5 wlan_tkip,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal               305632  3 ath_rate_sample,ath_pci
dm_mod                 62201  11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
[simonsun@magic ~]$  /sbin/iwlist
Usage: iwlist [interface] scanning
              [interface] frequency
              [interface] channel
              [interface] bitrate
              [interface] rate
              [interface] encryption
              [interface] key
              [interface] power
              [interface] txpower
              [interface] retry
              [interface] ap
              [interface] accesspoints
              [interface] peers
              [interface] event
[simonsun@magic ~]$
即:网卡是否检测到、网卡驱动是否被系统识别、是否有错误信息等。
然后开始搜寻无线网络,如

[simonsun@magic ~]$ /sbin/iwlist ath0 scan
ath0      Scan completed :
          Cell 01 - Address: 08:10:74:2B:C3:90
                    ESSID:"NETCORE"
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Quality=46/70  Signal level=-49 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK 
          Cell 02 - Address: 00:22:B0:91:5B:D1
                    ESSID:"dlink-starsing"
                    Mode:Master
                    Frequency:2.417 GHz (Channel 2)
                    Quality=23/70  Signal level=-72 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK 
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK 
                    Extra:ath_ie=dd0900037f01010060ff7f
          Cell 03 - Address: 00:19:E0:AD:B1:5E
                    ESSID:"TP-LINK"
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Quality=17/70  Signal level=-78 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:ath_ie=dd0900037f01010008ff7f
          Cell 04 - Address: 00:21:27:BA:63:A2
                    ESSID:"TP-LINK_BA63A0"
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Quality=12/70  Signal level=-83 dBm  Noise level=-95 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:wme_ie=dd180050f2020101030003a4000027a4000042435e0062322f00
                    Extra:ath_ie=dd0900037f01010000ff7f
          Cell 05 - Address: 00:B0:0C:04:C4:D2
                    ESSID:"TENDA"
                    Mode:Master
                    Frequency:2.452 GHz (Channel 9)
                    Quality=15/70  Signal level=-80 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
          Cell 06 - Address: 00:23:CD:36:D3:C4
                    ESSID:"TP-LINK_36D3C4"
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Quality=11/70  Signal level=-84 dBm  Noise level=-95 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:ath_ie=dd0900037f01010008ff7f
          Cell 07 - Address: 00:B0:0C:03:B0:64
                    ESSID:"Tenda"
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Quality=17/70  Signal level=-78 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 12 Mb/s
                              24 Mb/s; 48 Mb/s
                    Extra:bcn_int=100
                    Extra:wme_ie=dd180050f2020101000003a4000027a4000042435e0062322f00
          Cell 08 - Address: 00:1B:11:8C:3B:8C
                    ESSID:"dlink"
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Quality=7/70  Signal level=-88 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 48 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 54 Mb/s
                    Extra:bcn_int=100

根据实际情况编辑如下文件,或者通过system-config-network的图形化界面配置,
[simonsun@magic ~]$ sudo vim /etc/sysconfig/network-scripts/ifcfg-ath0
# Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter
DEVICE=ath0
BOOTPROTO=none
ONBOOT=no
HWADDR=00:22:43:2d:ae:2b
NETMASK=255.255.255.0
DHCP_HOSTNAME=
IPADDR=192.168.0.152
DOMAIN=
TYPE=Wireless
ESSID=NETCORE
CHANNEL=
MODE=Managed
SECURITYMODE=off
RATE=auto
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=192.168.0.1


配好会有:
[simonsun@magic ~]$ /sbin/iwconfig ath0
ath0      IEEE 802.11g  ESSID:"NETCORE"  Nickname:"magic.linux"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 08:10:74:2B:C3:90  
          Bit Rate:48 Mb/s   Tx-Power:17 dBm   Sensitivity=1/1 
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=48/70  Signal level=-48 dBm  Noise level=-96 dBm
          Rx invalid nwid:38122  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


最后,激活配置好的无线网卡,
[simonsun@magic ~]$ sudo /sbin/ifconfig ath0 up
[simonsun@magic ~]$ sudo /sbin/ifup ath0
[simonsun@magic ~]$  /sbin/ifconfig ath0
ath0      Link encap:Ethernet  HWaddr 00:22:43:2D:AE:2B 
          inet addr:192.168.0.152  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::222:43ff:fe2d:ae2b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106106 errors:0 dropped:0 overruns:0 frame.:0
          TX packets:30806 errors:1 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:140732082 (134.2 MiB)  TX bytes:1976717 (1.8 MiB)

[simonsun@magic ~]$ ping www.google.com
PING www-china.l.google.com (66.249.89.99) 56(84) bytes of data.
64 bytes from jp-in-f99.google.com (66.249.89.99): icmp_seq=1 ttl=246 time=67.1 ms
64 bytes from jp-in-f99.google.com (66.249.89.99): icmp_seq=2 ttl=246 time=65.3 ms
64 bytes from jp-in-f99.google.com (66.249.89.99): icmp_seq=3 ttl=246 time=66.4 ms
64 bytes from jp-in-f99.google.com (66.249.89.99): icmp_seq=4 ttl=246 time=65.8 ms

--- www-china.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 65.352/66.205/67.137/0.714 ms
[simonsun@magic ~]$


4.注意事项,一般需要设置DNS,不要忘了;如果是根据mac地址限制网络使用的话,一定要将无线网卡的mac地址正确的添加到路由器;如果连接模式通过WPA-PSK进行加密登录的话,就需要用到wpa_supplicant:
[simonsun@magic ~]$ sudo yum install \*wpa\*

[simonsun@magic ~]$ /usr/sbin/wpa_passphrase NETCORE 123456781
network={
        ssid="NETCORE"
        #psk="123456781"
        psk=21135846dce955a6319561d7216a1407d1cb97b8fb339c05f8773a3f780d6663
}

[simonsun@magic ~]$ sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
修改如下:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

#network={
#       ssid="any"
#       key_mgmt=NONE
#}
network={
        ssid="NETCORE"
        #psk="123456781"
        psk=21135846dce955a6319561d7216a1407d1cb97b8fb339c05f8773a3f780d6663
}
[simonsun@magic ~]$ sudo vim /etc/sysconfig/wpa_supplicant
修改INTERFACES为前面装好驱动后识别的网卡,如ath0,我这里是:
# Use the flag "-i" before each of your interfaces, like so:
#  INTERFACES="-i eth1 -i wlan0"
INTERFACES="-i ath0"

# Use the flag "-D" before each driver, like so:
#  DRIVERS="-D wext"
DRIVERS="-D wext"

# Other arguments
#   -u   Enable the D-Bus interface (required for use with NetworkManager)
#   -f   Log to /var/log/wpa_supplicant.log
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log"

,然后启动wpa服务,
[simonsun@magic ~]$ sudo /etc/rc.d/init.d/wpa_supplicant start
Starting wpa_supplicant: /etc/wpa_supplicant/wpa_supplicant[确定]-i ath0 -D wext -u -f /var/log/wpa_supplicant.log

,然后拨号,平时上网,只执行如下脚本即可
sudo /sbin/ifconfig ath0 up
sudo /sbin/ifdown ath0
sudo /sbin/ifup ath0
sudo /etc/rc.d/init.d/wpa_supplicant restart
sudo /etc/rc.d/init.d/iptables restart

参考连接:
http://wiki.centos.org/HowTos/Laptops/WirelessAR5007EG
http://hi.baidu.com/netred/blog/item/6d7f061f708b8ccfa786691e.html

BTW,特别鸣谢秦公子网络环境方面的帮助。

2009-06-22,如果系统内核升级了,必须重新编译一下驱动,再次配置。

2011-07-11,现在CentOS 6 系列能自动识别大部分无线网卡了,一般不用像上面那么费劲的配置了 :) .
备注:
如果SSID名字改了,须要重新修改无线网络配置里的无线设置的网络名称的指定的,同时必须 (千万别忘了)重新生成一下密码钥匙,即:用/usr/sbin/wpa_passphrase 新名字 新密码,然后再次拨号即可。
其实最合理的是,从新建一个无线拨号连接,当然也得重新生成一下密码钥匙,添加到/etc/wpa_supplicant/wpa_supplicant.conf里。

附最新的Windows的无线网卡驱动,关于Atheros Communications Inc. AR5XXX Wireless Windows下的驱动。

 

分享到:
评论

相关推荐

    centos6.2文本界面下安装配置无线网卡教程.docx

    在 CentOS 6.2 的文本模式下安装和配置无线网卡是一个相对复杂的过程,特别是对于初学者来说。本文档提供了一个详细的步骤指南,用于在没有图形界面的情况下设置无线网络连接。 首先,你需要确定你的无线网卡型号。...

    实测可用 联发科 Ralink MT7601U无线网卡Centos linux驱动(腾达U2水星MW150UH)含安装教程360wifi,小米wifi

    水星MW150UH),含实测过的驱动安装教程,都包含在压缩包里面”进一步证实了这个压缩包包含了驱动程序和安装指南,用户只需要解压并按照指导操作,即可在CentOS系统上为指定的USB无线网卡安装驱动。 标签中的...

    CentOS 5.5 图形安装教程(超详细 word2007版) 附 word2003版

    【CentOS 5.5 图形安装教程】是针对初学者和那些希望了解如何在Linux环境中部署CentOS系统的用户设计的详细指南。本教程提供了一个Word2007和Word2003版本,以满足不同用户的需求。CentOS是一个基于Red Hat ...

    linux安装NW392无线网卡驱动.doc

    Linux 安装 NW392 无线网卡驱动指南 Linux 操作系统中,安装 NW392 无线网卡驱动是件很重要的事情,本文将详细介绍如何在 Centos 7 中安装 NW392 无线网卡驱动。 驱动下载 首先,我们需要从官网下载 NW392 无线...

    net-core磊科NW392无线网卡Linux系统驱动

    磊科NW392是一款常见的USB接口无线网卡,通常在Windows系统中可以自动识别和安装驱动,但在Linux环境下则需要手动处理。 描述中提到的“针对net-core磊科NW392无线网卡在Linux系统下驱动安装”的教程,暗示了用户...

    TL-WDN5200的Linux网卡驱动及配置指南

    总的来说,为TL-WDN5200无线网卡在Linux环境下安装和配置驱动是一个相对复杂的过程,但遵循上述步骤,大部分用户应该能够成功完成。记住,遇到问题时,查阅官方文档、Linux社区论坛或在线资源都能找到解决方案。在...

    linux RTL8192EU 无线网卡驱动,亲测可用

    总的来说,"Linux RTL8192EU 无线网卡驱动"是Linux用户解决Realtek RTL8192EU芯片无线网卡连接问题的重要工具,通过适当的安装和配置步骤,可以确保在开源操作系统上实现稳定的无线网络连接。对于那些在Linux中遇到...

    CentOS6.5 实现Hotspot功能

    本文将详细介绍如何在CentOS 6.5系统上利用Intel无线网卡实现Hotspot功能。不同于通常使用的NetworkManager来实现此功能,我们将采用脚本来实现自动化部署和配置开启功能,以适应更加灵活多变的应用场景。 #### 二...

    RTL8192EU_ 802.11bgn_WLAN_Adapter_for_Linux.rar

    综上所述,这个压缩包提供了在CentOS 7.6上安装和配置Realtek RTL8192EU(如TL-WN823N)无线网卡所需的所有资源,包括驱动程序源码、配置脚本以及编译和运行指导。用户需要按照`README.md`中的指示操作,结合`ifcfg-...

    Tenda无线网卡832U驱动

    4. 按照屏幕上的指示进行操作,通常会先检测到无线网卡设备,然后选择合适的安装位置,最后点击“安装”或“下一步”按钮。 5. 安装过程中,可能会要求重新启动计算机以完成驱动的加载和初始化。 6. 重启后,检查...

    Qualcomm Atheros AR9462 WiFi Adapter_10.0.3.456(含Killer N1202、AR5B22).zip

    总的来说,这个驱动程序包是为了解决特定版本Win10上Qualcomm Atheros AR9462无线网卡以及兼容的Killer N1202和AR5B22芯片的驱动安装问题。用户需要遵循特定步骤,如禁用驱动程序强制签名,才能成功安装。对于不熟悉...

    BCM43142官方驱动文件

    总之,对于使用博通BCM43142无线网卡的CentOS 7用户来说,确保安装并正确配置官方驱动是保持无线网络连接的关键。遵循提供的安装说明,可以有效地解决可能的无线网络问题,享受无缝的上网体验。

    Linux安装与配置简明手册

    - **硬件驱动**:检查并安装必要的硬件驱动,特别是显卡、无线网卡等可能需要额外驱动的设备。 - **桌面环境**:根据个人喜好调整桌面环境,例如更换主题、图标等。 - **软件源**:配置软件源以获取更快的软件...

    TP-LINK TL-WN725N V3 Linux 驱动

    5. **编译和安装驱动**:进入解压后的目录,运行`make`命令编译驱动,然后以root权限执行`sudo make install`来安装。如果编译过程中出现错误,可能需要确保你的系统已经安装了必要的开发工具和库,如kernel headers...

    brcmfmacb.rar

    因此,这样的压缩包可能包含了编译和安装驱动所需的步骤、配置文件或额外的依赖库。 在处理这个压缩包时,用户首先需要解压文件,然后按照“brcmfmac43455-sdio.raspberrypi,4-model-b.txt”中的说明进行操作。这...

    USB蓝牙加网卡LINUX.rar

    "USB蓝牙加网卡LINUX.rar"这个压缩包可能包含了针对特定硬件型号的驱动程序和安装指南,如RTL8723BU和8723系列的无线网卡。让我们深入了解一下这两个关键组件以及在Linux环境中如何处理它们。 首先,RTL8723BU是...

    rtl8192eu_linux x86_64

    从压缩包的文件名称“linux RTL8192EU 无线网卡驱动,亲测可用.zip”我们可以推断,这个压缩文件包含了一个或多个用于安装和配置RTL8192EU无线网卡的文件。用户在下载后,需要解压文件,然后按照提供的指南或脚本...

    PacketFence指南.docx

    - **集中式有线和无线管理**:统一管理有线和无线网络设备,简化了网络管理员的工作负担。 - **强大的客户端管理选项**:提供灵活的客户端管理机制,确保网络的安全性和合规性。 - **802.1X 支持**:支持802.1X 认证...

    rtl8192eu-linux-driver-realtek-4.4.x.zip

    用户在使用时,通常需要解压文件,遵循提供的编译和安装步骤,可能包括运行make命令来编译驱动,然后使用sudo make install来安装到系统中。在安装完成后,可能需要重新启动计算机或者使用modprobe命令加载驱动模块...

    Linux 安装资料

    3. **驱动程序**:确保硬件驱动正确安装,特别是显卡、无线网卡等可能需要额外安装的驱动。 4. **软件安装**:利用包管理器(如apt、yum、dnf等)安装所需的办公软件、编程环境、多媒体工具等。 5. **系统优化**:...

Global site tag (gtag.js) - Google Analytics