2018-03-25 10:24:43 qq_38404440 阅读数 285
  • CentOS7 Linux入门实战视频课程

    此课程基于CentOS7.2 64位版本,讲解了CentOS7的安装、基础网络命令、网卡设置、文件与目录管理、进程与线程管理、VI编辑器、用户与权限、软件包管理、YUM软件仓库的搭建,在后教会大家如何地在Linux上搭建Discuz论坛。

    29237 人正在学习 去看看 杨璞
Linux CentOS 6.X 克隆网卡问题解决笔记解决方法如下:
进入克隆的Linux系统删除/etc/udev/rules.d/70-persistent-net.rules文件,重启系统。即可解决
2013-09-21 03:37:20 iomato 阅读数 2956
  • CentOS7 Linux入门实战视频课程

    此课程基于CentOS7.2 64位版本,讲解了CentOS7的安装、基础网络命令、网卡设置、文件与目录管理、进程与线程管理、VI编辑器、用户与权限、软件包管理、YUM软件仓库的搭建,在后教会大家如何地在Linux上搭建Discuz论坛。

    29237 人正在学习 去看看 杨璞
       配置并编译安装内核模块和内核后,解压附件firmware.tar.bz2,拷贝其中的rtlwifi文件夹到/lib/firmware下,然后

执行装载内核模块命令:

        


        

        

sudo modprobe rtl8192ce ( 若装载后显示device not ready,需要进入机子BIOS恢复默认设置,重启)

        

一些信息:

[ghui@BuildHost Desktop]$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
0c:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)

[ghui@BuildHost Desktop]$ lsmod | grep rtl
rtl8192ce              52838  0 
rtl8192c_common        41001  1 rtl8192ce
rtlwifi                80851  1 rtl8192ce
mac80211              219856  2 rtl8192ce,rtlwifi
cfg80211              134725  2 rtlwifi,mac80211
[ghui@BuildHost Desktop]$ lsmod | grep r8169
r8169                  40549  0 
mii                     2779  1 r8169

[ghui@BuildHost Desktop]$ ls /lib/firmware/rtlwifi/ -lash
total 332K
4.0K drwxr-xr-x.  2 root root 4.0K Sep 21 02:59 .
4.0K drwxr-xr-x. 45 root root 4.0K Sep 21 01:39 ..
4.0K -rwxr-xr-x.  1 root root 2.1K Sep 21 02:59 Realtek-Firmware-License.txt
 12K -rwxr-xr-x.  1 root root  11K Sep 21 02:59 rtl8188efw.bin
 16K -rwxr-xr-x.  1 root root  16K Sep 21 02:59 rtl8192cfw.bin
 16K -rwxr-xr-x.  1 root root  15K Sep 21 02:59 rtl8192cfwU_B.bin
 16K -rwxr-xr-x.  1 root root  15K Sep 21 02:59 rtl8192cfwU.bin
 24K -rwxr-xr-x.  1 root root  21K Sep 21 02:59 rtl8192defw_12.bin
 32K -rwxr-xr-x.  1 root root  31K Sep 21 02:59 rtl8192defw.bin
 80K -rwxr-xr-x.  1 root root  79K Sep 21 02:59 rtl8192sefw.bin
 88K -rwxr-xr-x.  1 root root  87K Sep 21 02:59 rtl8192sefw.old.bin
 24K -rwxr-xr-x.  1 root root  23K Sep 21 02:59 rtl8723fw_B.bin
 12K -rwxr-xr-x.  1 root root  12K Sep 21 02:59 rtl8723fw.bin


[ghui@BuildHost Desktop]$ modinfo rtl8192ce
filename:       /lib/modules/3.10.12/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
firmware:       rtlwifi/rtl8192cfwU_B.bin
firmware:       rtlwifi/rtl8192cfwU.bin
firmware:       rtlwifi/rtl8192cfw.bin
description:    Realtek 8192C/8188C 802.11n PCI wireless
license:        GPL
author:         Larry Finger	<Larry.Finger@lwfinger.net>
author:         Realtek WlanFAE	<wlanfae@realtek.com>
author:         lizhaoming	<chaoming_li@realsil.com.cn>
srcversion:     8F7DAD3B5887F2048AC7550
alias:          pci:v000010ECd00008176sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008177sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008178sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008191sv*sd*bc*sc*i*
depends:        rtlwifi,rtl8192c-common,mac80211
intree:         Y
vermagic:       3.10.12 SMP preempt mod_unload modversions CORE2 
parm:           swenc:Set to 1 for software crypto (default 0)
 (bool)
parm:           ips:Set to 0 to not use link power save (default 1)
 (bool)
parm:           swlps:Set to 1 to use SW control power save (default 0)
 (bool)
parm:           fwlps:Set to 1 to use FW control power save (default 1)
 (bool)
parm:           debug:Set debug level (0-5) (default 0) (int)

     至此,linux-3.10.12内核下的无线+有线网卡安装完成,enjoy...

2019-11-08 10:19:15 betterzhu 阅读数 8
  • CentOS7 Linux入门实战视频课程

    此课程基于CentOS7.2 64位版本,讲解了CentOS7的安装、基础网络命令、网卡设置、文件与目录管理、进程与线程管理、VI编辑器、用户与权限、软件包管理、YUM软件仓库的搭建,在后教会大家如何地在Linux上搭建Discuz论坛。

    29237 人正在学习 去看看 杨璞

修改文件:/etc/sysconfig/network-scripts/ifcfg-eth0

  1. DEVICE=eth0
  2. BOOTPROTO=static
  3. IPADDR=211.149.190.80
  4. NETMASK=255.255.255.0
  5. TYPE=Ethernet
  6. NM_CONTROLLED=no
  7. ONBOOT=yes

重启网络服务

重启服务
/etc/init.d/network restart

 

2016-10-06 16:37:05 farYang 阅读数 4724
  • CentOS7 Linux入门实战视频课程

    此课程基于CentOS7.2 64位版本,讲解了CentOS7的安装、基础网络命令、网卡设置、文件与目录管理、进程与线程管理、VI编辑器、用户与权限、软件包管理、YUM软件仓库的搭建,在后教会大家如何地在Linux上搭建Discuz论坛。

    29237 人正在学习 去看看 杨璞

系统:centos6.5

usb网卡:EDUP USB无线网卡 EP-N8508GS


1、检查无线网卡设备

#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

上面最后一行说明该网卡已经被系统检测到了

2、检查内核是否正确加载到该网卡模块

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0    IEEE 802.11bgn  ESSID:"TP-LINK_25D5"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 88:25:93:6E:25:D5   
          Bit Rate=72.2 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   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

上面显示的wlan0这块内容,说明内核已加载到该网卡模块,如果没有显示无线网卡的标识(这里是wlan0),那么需要去安装相应的网卡驱动程序


3、开启无线网卡,利用iwlist命令探测无线网络

# ifconfig wlan0 up
# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: E8:39:DF:C0:BC:A4
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=54/70  Signal level=-56 dBm  
                    Encryption key:on
                    ESSID:"123"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000002d736346b
                    Extra: Last beacon: 218ms ago
                    IE: Unknown: 0003313233
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 0706555320010E14
                    IE: Unknown: 200100
                    IE: Unknown: 23021000
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1A2C1817FF00000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080100000000000040
                    IE: Unknown: DD090010180201000C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 02 - Address: 88:25:93:6E:25:D5
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=70/70  Signal level=-40 dBm  
                    Encryption key:off
                    ESSID:"TP-LINK_25D5"
                    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
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000001fba281937d
                    Extra: Last beacon: 136ms ago
                    IE: Unknown: 000C54502D4C494E4B5F32354435
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: 2D1AAC011BFFFFFF0000000000000000000100000000000000000000
                    IE: Unknown: 3D1601050500000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080100000000000040
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: DD0900037F01010000FF7F

这里使用扫描到的Cell 02无线网络,也就是“TP-LINK_25D5”是本无线网卡下面需要连接的无线网络名称

注意:这里我的无线网卡没有设置密码


4、连接无线网络,并使用iwconfig查看连接是否成功

# iwconfig wlan0 essid "TP-LINK_25D5"
# iwconfig
lo        no wireless extensions.


eth0      no wireless extensions.


wlan0     IEEE 802.11bgn  ESSID:"TP-LINK_25D5"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 88:25:93:6E:25:D5 

ESSID显示为TP-LINK_25D5,说明连接成功

5、设置无线网卡ip参数

# vim /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
NAME=wlan0
HWADDR=e8:4e:06:35:59:ad
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
ESSID=TP-LINK_25D5
IPV6INIT=no
IPV4_FAILURE_FATAL=yes
NETMASK=255.255.255.0
GATEWAY=10.79.32.1
IPADDR=10.79.32.27
NM_CONTROLLED=yes
USERCTL=no
PEERDNS=yes


6、重新启动网络服务

# /etc/init.d/network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down interface wlan0:                             [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Determining if ip address 10.79.32.22 is already in use for device eth0...
                                                           [  OK  ]
Bringing up interface wlan0:  Determining if ip address 10.79.32.27 is already in use for device wlan0...
                                                           [  OK  ]


参考资料:

《鸟哥的linux私房菜-服务器架设篇》

ifconfig、ifup与ifdown命令用法---http://www.jbxue.com/LINUXjishu/21350.html

centos无线网卡配置----http://www.2cto.com/os/201401/273745.html




2018-08-08 22:08:49 taotongning 阅读数 4947
  • CentOS7 Linux入门实战视频课程

    此课程基于CentOS7.2 64位版本,讲解了CentOS7的安装、基础网络命令、网卡设置、文件与目录管理、进程与线程管理、VI编辑器、用户与权限、软件包管理、YUM软件仓库的搭建,在后教会大家如何地在Linux上搭建Discuz论坛。

    29237 人正在学习 去看看 杨璞

方法一

1.输入setup

2. 弹出界面,选择network configuration

3. 选择Device configuration

4.选择eth0

5. 配置

6. 保存退出

7.重启网卡

重启网卡有如下几种方法

            方法一: ifup eth0 

            

            方法二:/etc/init.d/network restart (这个更好,可以TAB补全)等价于service network restart

            

            

方法二

1. 也可以直接配置 vi /etc/sysconfig/network-scripts/ifcfg-eth0

2. 修改ONBOOT=yes 保存退出

3. 重启网卡,方法同方法一

 

没有更多推荐了,返回首页