LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 553|回复: 8

ifconfig -a后没有wlan0

[复制链接]
发表于 2011-12-12 19:13:48 | 显示全部楼层 |阅读模式
如何才能让wlan0出现?

谢谢
发表于 2011-12-12 20:27:25 | 显示全部楼层
1.lspci 查看网卡型号;
2.编译内核加上相应驱动;
3.运行“ln -s net.lo net.wlan0”

有的无线网卡为net.eth1、net.ath1等!
回复 支持 反对

使用道具 举报

发表于 2011-12-13 10:28:15 | 显示全部楼层
内核没配好吧,请贴:
cat /etc/udev/rules.d/70-persistent-net.rules
回复 支持 反对

使用道具 举报

发表于 2011-12-13 12:18:41 | 显示全部楼层
Post by zhou3345;2156920
内核没配好吧,请贴:
cat /etc/udev/rules.d/70-persistent-net.rules


我觉得他应该没有去改这个。应该是内核模块沒编好。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-12-13 16:40:52 | 显示全部楼层
Post by zhou3345;2156920
内核没配好吧,请贴:
cat /etc/udev/rules.d/70-persistent-net.rules


# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x14e4:0x170c (b44)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:22:9e:4d:fe", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-12-13 16:44:29 | 显示全部楼层
Post by mathfeel;2156929
我觉得他应该没有去改这个。应该是内核模块沒编好。
zpn ryan # lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
02:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
02:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
02:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
02:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 01)
02:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
02:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
02:03.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)

< >   Realtek 8187 and 8187B USB support                                                                    │ │   
  │ │                                      < >   ADMtek ADM8211 support                                                                                │ │   
  │ │                                      < >   Simulated radio testing tool for mac80211                                                             │ │   
  │ │                                      < >   Marvell 88W8xxx PCI/PCIe Wireless support                                                             │ │   
  │ │                                      <*>   Atheros Wireless Cards  --->                                                                          │ │   
  │ │                                      < >   Broadcom 43xx wireless support (mac80211 stack)                                                       │ │   
  │ │                                      < >   Broadcom 43xx-legacy wireless support (mac80211 stack)                                                │ │   
  │ │                                      < >   IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)                                              │ │   
  │ │                                      < >   Intel PRO/Wireless 2100 Network Connection                                                            │ │   
  │ │                                      <M>   Intel PRO/Wireless 2200BG and 2915ABG Network Connection                                              │ │   
  │ │                                      
  •      Enable promiscuous mode                                                                             │ │   
      │ │                                      -*-       Enable radiotap format 802.11 raw packet support                                                  │ │   
      │ │                                      
  •        Enable creation of a RF radiotap promiscuous interface                                            │ │   
      │ │                                      
  •      Enable QoS support                                                                                  │ │   
      │ │                                      
  •      Enable full debugging output in IPW2200 module.                                                     │ │   
      │ │                                      
  •    Full debugging output for the LIBIPW component                                                        │ │   
      │ │                                      < >   Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlagn)         


      --- Wireless                                                                                                │ │   
      │ │                                      <*>   cfg80211 - wireless configuration API                                                                 │ │   
      │ │                                      [ ]     nl80211 testmode command                                                                            │ │   
      │ │                                      [ ]     enable developer warnings                                                                           │ │   
      │ │                                      [ ]     cfg80211 regulatory debugging                                                                       │ │   
      │ │                                      
  •      enable powersave by default                                                                         │ │   
      │ │                                      [ ]     cfg80211 DebugFS entries                                                                            │ │   
      │ │                                      
  •      cfg80211 wireless extensions compatibility                                                          │ │   
      │ │                                      
  •    Wireless extensions sysfs files                                                                       │ │   
      │ │                                      {*}   Common routines for IEEE802.11 drivers                                                                │ │   
      │ │                                      [ ]   lib80211 debugging messages                                                                           │ │   
      │ │                                      <*>   Generic IEEE 802.11 Networking Stack (mac80211)                                                       │ │   
      │ │                                            Default rate control algorithm (Minstrel)  --->                                                       │ │   
      │ │                                      [ ]   Enable mac80211 mesh networking (pre-802.11s) support                                                 │ │   
      │ │                                      -*-   Enable LED triggers                                                                                   │ │   
      │ │                                      [ ]   Export mac80211 internals in DebugFS                                                                  │ │   
      │ │                                      [ ]   Select mac80211 debugging features  --->                                                              │ │   
      │ │
  • 回复 支持 反对

    使用道具 举报

    发表于 2011-12-13 17:15:13 | 显示全部楼层
    你的那个文件里头只有一个有线网卡,说明内核没有找到你的无线卡,mathfeel说的对,是内核配置的问题。

    <*> Atheros Wireless Cards --->

    把这个去掉。
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2011-12-13 22:47:05 | 显示全部楼层
    Post by zhou3345;2156956
    你的那个文件里头只有一个有线网卡,说明内核没有找到你的无线卡,mathfeel说的对,是内核配置的问题。

    <*> Atheros Wireless Cards --->

    把这个去掉。
    我把
    <*> Atheros Wireless Cards --->
    去掉后,貌似还是老样子。。。
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2011-12-13 23:48:43 | 显示全部楼层
    我明白了。。
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表