• 一步一步解决centos6.5配置无线网卡的问题


    1、配置本地yum源

    [local]
    name=local
    baseurl=file:///mnt/cdrom
    enable=1
    gpgcheck=0

    2、安装libnl

    rpm -ivh /mnt/cdrom/Packages/libnl-1.1.4-2.el6.x86_64.rpm

     

    3、安装wpa_supplicant

    rpm -ivh /mnt/cdrom/Packages/wpa_supplicant-0.7.3-4.el6_3.x86_64.rpm

    4、修改wpa_supplicant配置文件

    vim /etc/sysconfig/wpa_supplicant
    
    INTERFACES="-iwlan0"
    
    # Use the flag "-D" before each driver, like so:
    # DRIVERS="-Dwext"
    DRIVERS="-iDwext"


    6、确定网卡类型

    03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)

    7、确认是否有无线网卡驱动,如果输出如下,则证明没有无线网卡驱动

    [root@test data]# iwconfig
    lo no wireless extensions.
    
    
    eth0 no wireless extensions.

    8、安装网卡驱动确定系统内核版本

    [root@test rtl8192ce_linux_2.6.0005.1116.2010]# uname -r
    2.6.32-431.el6.x86_64

    9、下载对应的网卡驱动,编译安装

    root@test rtl8192ce_linux_2.6.0005.1116.2010]# make
    make: *** /lib/modules/2.6.32-431.el6.x86_64/build: No such file or directory. Stop.
    make: *** [all] Error 2


    10、如何输出上面的步骤,则需要安装kernel-devel

    yum install kernel-devel -y


    11、先做清理

    make clean


    12、安装gcc

    [root@test rtl8192ce_linux_2.6.0005.1116.2010]# make
    expr: syntax error
    make[1]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
    /usr/src/kernels/2.6.32-431.el6.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
    make[1]: gcc: Command not found


    13、再次编译make,输出如下,则编译通过

    CC [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/../../rtllib/rtllib_crypt_wep.o
    LD [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.mod.o
    LD [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.ko.unsigned
    NO SIGN [M] /data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192/r8192ce_pci.ko
    make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'

    14、编译安装

    [root@test rtl8192ce_linux_2.6.0005.1116.2010]# make install
    make[1]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
    Building modules, stage 2.
    MODPOST 1 modules
    make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
    make[1]: Entering directory `/data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192'
    make -C /lib/modules/2.6.32-431.el6.x86_64/build M=/data/rtl8192ce_linux_2.6.0005.1116.2010 CC=gcc modules
    make[2]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
    Building modules, stage 2.
    MODPOST 0 modules
    make[2]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
    find /lib/modules/2.6.32-431.el6.x86_64 -name "r8192ce_*.ko" -exec ls -l {} ;
    find /lib/modules/2.6.32-431.el6.x86_64 -name "r8192ce_*.ko" -exec rm {} ;
    install -p -m 644 r8192ce_pci.ko /lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/net/wireless/
    depmod -a
    make[1]: Leaving directory `/data/rtl8192ce_linux_2.6.0005.1116.2010/HAL/rtl8192'


    15、重启检查无线网卡已经ok

    [root@test ~]# iwconfig
    lo no wireless extensions.
    
    wlan0 802.11bgn ESSID:"HUAWEI-V4XJHU" Nickname:"rtl8192CE"
    Mode:Managed Frequency=2.462 GHz Access Point: C8:14:51:A7:D2:18
    Bit Rate=150 Mb/s
    Retry:on RTS thr:off Fragment thr:off
    Encryption key:C454-4CC5-9324-1F9D-AEF0-C306-5DE0-F0FC Security mode:open
    Power Management:off
    Link Quality=100/100 Signal level=-45 dBm Noise level=-120 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    
    eth0 no wireless extensions.
  • 相关阅读:
    valueOf与toString
    责任链模式
    Js中Symbol对象
    Vue路由懒加载
    updatedb命令
    策略模式
    Docker(3)- Centos 7.x 下 Docker 镜像加速配置
    Vmware
    Docker(2)- Centos 7.x 下安装 Docker
    Docker(1)- 什么是 Docker
  • 原文地址:https://www.cnblogs.com/bainianminguo/p/11729702.html
Copyright © 2020-2023  润新知