RTL8188CUS 802.11n WLAN 适配器在接口文件中自动配置

RTL8188CUS 802.11n WLAN 适配器在接口文件中自动配置

我买了一个 USB WIFI 适配器,名为“EDUP”:

(瑞昱半导体公司 RTL8188CUS 802.11n WLAN 适配器)

所以我通过这种方式配置了该文件:

# The loopback network interface
auto lo
iface lo inet loopback

#auto usb0
#iface usb0  inet static
#  adress 192.168.7.2
#  netmask 255.255.255.0
#  network 192.168.7.0
#  gateway 192.168.7.1
#  broadcast 192.168.7.255
# dns-nameservers 8.8.8.8 8.8.4.4

    #allow-hotplug wlp2s0
    #iface wlp2s0 inet dhcp

    auto wlan0
    allow-hotplug wlan0
    iface wlan0  inet dhcp
       wpa-ssid "roshd"
       wpa-psk "rr1393"

的输出如果配置是 :

usb0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.7.1  netmask 255.255.255.0  broadcast 192.168.7.255
        inet6 fe80::a383:7ee9:36f9:2027  prefixlen 64  scopeid 0x20<link>
        ether aa:70:b5:c0:6b:29  txqueuelen 1000  (Ethernet)
        RX packets 5062  bytes 347070 (338.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10323  bytes 9779116 (9.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet6 fe80::ea4e:6ff:fe64:fa65  prefixlen 64  scopeid 0x20<link>
        ether e8:4e:06:64:fa:65  txqueuelen 1000  (Ethernet)
        RX packets 61  bytes 6599 (6.4 KiB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 22  bytes 3509 (3.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.108  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::9440:4b06:b605:ca01  prefixlen 64  scopeid 0x20<link>
        ether c8:3d:d4:3c:23:63  txqueuelen 1000  (Ethernet)
        RX packets 755893  bytes 988980144 (943.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 480126  bytes 53989884 (51.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

LSSB输出也是:

so@notebook:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 010: ID 0bda:0821 Realtek Semiconductor Corp. 
Bus 001 Device 009: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 008: ID 174f:2408 Syntek 
Bus 001 Device 044: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 042: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
Bus 001 Device 027: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

我已经运行了 apt-get 更新通过此配置,该设备不会显示在我的 (LINUX MINT LMDE) 的网络面板中: 在此输入图像描述

但是当我从文件中删除这些行时, /etc/network/interfaces无线图标显示我的 USB DONGEL 并且它正在工作:

 auto wlan0
    allow-hotplug wlan0
    iface wlan0  inet dhcp
       wpa-ssid "roshd"
       wpa-psk "rr1393"

,但我想为我的树莓派配置它,并且我需要使用该 /etc/network/interfaces文件。

那么我必须做什么才能自动在 /etc/network/interfaces 文件中配置它?

更新:

现在,当我删除这些线时,我也无法访问我的 USB 加密狗,如您所见:

在此输入图像描述 谢谢

相关内容