当前位置:   article > 正文

关于实体机下kali双无线网卡Hard blocked:yes问题的解决办法_rt3070kali linux显示无线网络已通过硬件开关禁用

rt3070kali linux显示无线网络已通过硬件开关禁用

kali双无线网卡冲突导致wifi无法使用

1.问题描述

在实体机上安装好kali后启动会自动加载内置的无线网卡可以正常上网,我想用双网卡来上网和监听,但当我插上另一个usb网卡时状态栏wifi连接就断了,提示wifi已通过硬件开关禁用,双网卡型号分别是AC 3168NGW和RT3070L
  • 1
kali@kali:~/Desktop$ sudo iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
wlan1     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: phy2: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
可以看到新加的wlan1的Hard blocked是开的而且还导致wlan0无法使用。。
  • 1
kali@kali:~/Desktop$ sudo rfkill unblock 3
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: phy2: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
使用rfkill unblock命令解锁不了
  • 1

2.寻找原因

去网上找了一些办法添加asus_nb_wmi.conf重启也没用,后来在我插拔usb网卡时发现刚插上去几秒的时候两个网卡竟然可以同时显示不过马上就没了,我觉得可能跟network-manager有关系,因为前几秒是network-manager加载新网卡的时候。。
首先service network-manager stop然后重新插上usb网卡
  • 1
  • 2
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
7: phy6: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
kali@kali:~/Desktop$ sudo service network-manager stop
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
8: phy7: Wireless LAN
        Soft blocked: no
        Hard blocked: no
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
再启动network-manager
  • 1
kali@kali:~/Desktop$ sudo service network-manager start
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
8: phy7: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
。。。又被禁用了,问题就出在这里了,每次只要跟network-manager有关系的命令就总会把Hard blocked打开(比如重启服务,连接wifi,启用监听等操作)。
  • 1

3.解决办法

既然network-manager加载有问题会冲突那就不要加载了,,,
  • 1
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
4: phy3: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
kali@kali:~/Desktop$ sudo rfkill block 1   //先把本机网卡软阻塞打开
kali@kali:~/Desktop$ sudo rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
4: phy3: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
kali@kali:~/Desktop$ sudo rfkill list //然后插拔usb网卡
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
5: phy4: Wireless LAN
        Soft blocked: no
        Hard blocked: no
kali@kali:~/Desktop$ sudo airmon-ng start wlan1 //启动wlan1的监听模式

Found 2 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode

    PID Name
   1460 wpa_supplicant
   2025 NetworkManager

PHY     Interface       Driver          Chipset

phy0    wlan0           iwlwifi         Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10)
phy4    wlan1           rt2800usb       Ralink Technology, Corp. RT2870/RT3070

                (mac80211 monitor mode vif enabled for [phy4]wlan1 on [phy4]wlan1mon)
                (mac80211 station mode vif disabled for [phy4]wlan1)

kali@kali:~/Desktop$ sudo rfkill unblock 1 //关闭本机网卡软阻塞,这时候状态栏的wifi就可以正常连接了
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51

在这里插入图片描述

舒服了。。最后再说下目前我只能用其中一个连接网络,不知道有没有别的办法让两个网卡都可以联网。。
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/251978
推荐阅读
相关标签
  

闽ICP备14008679号