`
jimode2013
  • 浏览: 39337 次
社区版块
存档分类
最新评论

device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]

 
阅读更多

 

[root@localhost wpa_supplicant]# service NetworkManager status
Redirecting to /bin/systemctl status  NetworkManager.service
NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled)
   Active: active (running) since Mon 2014-11-17 01:13:00 CST; 10s ago
 Main PID: 32578 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─32578 /usr/sbin/NetworkManager --no-daemon

Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (p4p1): preparing device
Nov 17 01:13:00 localhost.localdomain systemd[1]: Started Network Manager.
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (wlp2s0): using nl80211 for WiFi device control
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (wlp2s0): driver supports Access Point (AP) mode
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (wlp2s0): new 802.11 WiFi device (driver: 'iwlwifi' ifindex: 6)
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (wlp2s0): exported as /org/freedesktop/NetworkManager/Devices/2
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (wlp2s0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> (wlp2s0): preparing device
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> use BlueZ version 4
Nov 17 01:13:00 localhost.localdomain NetworkManager[32578]: <info> ModemManager available in the bus

 别人的网卡的名字一般都是wlan0,不过我在centos7中的名字却是wlp2s0,我的目标很简单,就是现在想要使用NetworkManager来管理wifi,之前我是采用了network的方式,现在我不想采用这种方式了

修改/etc/sysconfig/wpa_supplicant 文件如下:

# Use the flag "-i" before each of your interfaces, like so:
#  INTERFACES="-ieth1 -iwlan0"
INTERFACES=""

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

# Other arguments
#   -u   Enable the D-Bus interface (required for use with NetworkManager)
#   -f   Log to /var/log/wpa_supplicant.log
#   -P   Write pid file to /var/run/wpa_supplicant.pid
#        required to return proper codes by init scripts (e.g. double "start" action)
#        -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics