LinuxSir.cn,穿越时空的Linuxsir!

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

无线网卡在/etc/conf.d/net的配置不起作用

[复制链接]
发表于 2009-11-12 00:38:13 | 显示全部楼层 |阅读模式
我的网卡出现了问题:

可以用 ifconfig wlan0 配置ip地址,且使用正常。

但是在/etc/conf.d/net中配置,用/etc/init.d/net.wlan0 start而,没有ip地址

这是/etc/conf.d/net

  1. #------ wire Lan ------
  2. config_eth0="192.168.1.1 netmask 255.255.255.0"


  3. #------ ADSL ppp ------
  4. config_eth1="null"
  5. config_ppp0=("ppp")
  6. link_ppp0="eth1"
  7. plugins_ppp0=("pppoe")
  8. username_ppp0="name"
  9. password_ppp0="pass"
  10. pppd_ppp0=(
  11.     "noauth"
  12.     "defaultroute"
  13.     "holdoff 3"
  14.     "child-timeout 60"
  15.     "lcp-echo-interval 15"
  16.     "lcp-echo-failure 3"
  17.     noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
  18.     )
  19. depend_ppp0(){
  20.      need net.eth1
  21. }

  22. #------ wireless AP ------
  23. config_wlan0="192.168.2.1 netmask 255.255.255.0"
  24. mode_wlan0="master"
  25. essid_wlan0="tylink"
  26. channel_wlan0="10"
复制代码


起动的现象是:

  1. net.wlan0         |* Bringing up interface wlan0
  2. net.wlan0         |*   Starting wpa_supplicant on wlan0...                                        [ ok ]
  3. net.wlan0         |*   Starting wpa_cli on wlan0...                                               [ ok ]
  4. net.wlan0         |*   Backgrounding ......
  5. net.wlan0         |* WARNING: net.wlan0 has started, but is inactive
复制代码


而ifconfig wlan0 则:

  1. wlan0     Link encap:Ethernet  HWaddr 00:21:91:55:a1:27  
  2.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  3.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  4.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  5.           collisions:0 txqueuelen:1000
  6.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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