昨天,重新安装了系统,今天想用无线网络
但是,使用ifconfigwlan0up报错呢
于是,看了网上很多到文章都没有
想来还是自己解决
使用办法manrfkill找到block选项和unblock选项,根据命令找到如何启用和禁用wifi
查看当前无线设备的状态
[root@domain~]#rfkilllist
0:dell-wifi:WirelessLAN
Softblocked:no
Hardblocked:no
1:phy0:WirelessLAN
Softblocked:no
Hardblocked:no
4:hci0:Bluetooth
Softblocked:no
Hardblocked:no
[root@domain~]#
当然,我现在无线网络可以使用的
这是原来的状态
[root@domainrfkill1]#rfkilllist
0:dell-wifi:WirelessLAN
Softblocked:no
Hardblocked:no
1:phy0:WirelessLAN
Softblocked:yes
Hardblocked:no
3:hci0:Bluetooth
Softblocked:no
Hardblocked:no
使用命令
[root@domainrfkill1]#rfkillblockwifi
[root@domainrfkill1]#rfkilllist
0:dell-wifi:WirelessLAN
Softblocked:yes
Hardblocked:yes
1:phy0:WirelessLAN
Softblocked:yes
Hardblocked:yes
看起来不错,但是无线网络还是不行于是禁用
使用FN+2启用无线,然后再试
[root@domain~]#rfkilllist
0:dell-wifi:WirelessLAN
Softblocked:no
Hardblocked:no
1:phy0:WirelessLAN
Softblocked:no
Hardblocked:no
4:hci0:Bluetooth
Softblocked:no
Hardblocked:no
启动无线网卡
[root@domain~]#ifconfigwlan0up
[root@domain~]#
[root@domain~]#
查看
[root@domain~]#iwconfig
lonowirelessextensions.
p4p1nowirelessextensions.
wlan0IEEE802.11bgnESSID:”linksys”
Mode:ManagedFrequency:2.462GHzAccessPoint:00:14:BF:E5:5D:87
BitRate=1Mb/sTx-Power=15dBm
Retrylonglimit:7RTSthr:offFragmentthr:off
Encryptionkey:off
PowerManagement:on
LinkQuality=33/70Signallevel=-77dBm
Rxinvalidnwid:0Rxinvalidcrypt:0Rxinvalidfrag:0
Txexcessiveretries:0Invalidmisc:0Missedbeacon:0
已经可以正常使用了
[root@domain~]#ifconfigwlan0
wlan0Linkencap:EthernetHWaddrAC:72:89:E8:08:C8
inetaddr:192.168.1.112Bcast:192.168.1.255Mask:255.255.255.0
inet6addr:fe80::ae72:89ff:fee8:8c8/64Scope:Link
UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1
RXpackets:23errors:0dropped:0overruns:0frame:0
TXpackets:25errors:0dropped:0overruns:0carrier:0
collisions:0txqueuelen:1000
RXbytes:8486(8.2KiB)TXbytes:5248(5.1KiB)
我不清楚为什么我的要使用rfkillunblockwifi然后启动笔记本上面的无线就好了,可能和系统有关系,因为状态全部是NO才可以连接。可能你们需要使用rfkillblockall才可以正常使用,自己试下就清楚呢,命令就是一个然后无线可以正常使用,问题就解决了。。、、、
测试下网络,拔掉有线
64bytesfrom115.239.210.27:icmp_seq=11ttl=55time=115ms
64bytesfrom115.239.210.27:icmp_seq=12ttl=55time=33.8ms
64bytesfrom115.239.210.27:icmp_seq=13ttl=55time=55.9ms
64bytesfrom115.239.210.27:icmp_seq=14ttl=55time=79.0ms
64bytesfrom115.239.210.27:icmp_seq=15ttl=55time=102ms
64bytesfrom115.239.210.27:icmp_seq=16ttl=55time=22.8ms
64bytesfrom115.239.210.27:icmp_seq=17ttl=55time=45.4ms
64bytesfrom115.239.210.27:icmp_seq=18ttl=55time=69.6ms
64bytesfrom115.239.210.27:icmp_seq=19ttl=55time=91.3ms
64bytesfrom115.239.210.27:icmp_seq=20ttl=55time=113ms
64bytesfrom115.239.210.27:icmp_seq=21ttl=55time=33.6ms
64bytesfrom115.239.210.27:icmp_seq=22ttl=55time=158ms
、可能连接公网的无线网络不怎么稳定,o(∩∩)o…哈哈问题解决