Ubuntu Server 20.04 WiFi Соединение

У меня есть Ubuntu Server 20.04, установленный в ноутбуке Compaq. При подключении подключается к Интернету. Я пытался подключить его через Wireless без успеха. Я прочитал ряд статей на использовании NetPlan онлайн и попробовал их инструкции без успеха. команда: «IP A» производит следующий вывод.

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:1f:16:d1:af:b7 brd ff:ff:ff:ff:ff:ff
3: wls1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 00:24:2c:63:3f:09 brd ff:ff:ff:ff:ff:ff
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:e3:f9:bf:ef brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever

Может кто-нибудь, пожалуйста, помогите мне поднять интерфейс WLS1 '? Или здесь еще одна проблема?

Спасибо. оу.

Команда «IWConfig WLS1» получена следующим образом:

wls1      IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

Результаты CAT /ETC/NetPlan/*.yaml:

scr# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        enp1s0:
            dhcp4: true
    version: 2
    wifis:
            wls1:
                    dhcp4: true
                    optional: true
                    access-points:
                            "A-----66a":
                                    password: "7m-----k8y"

@heynnema Пожалуйста, найдите ниже текущего отредактированного * YAML-файла iHave в соответствии с вашим предложением:

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  version: 2
  renderer: networkd 
  ethernets:
    enp1s0:
      dhcp4: true
      optional: true
  wifis:
    wls1:
      dhcp4: true
      access-points:
        "AT-----66a":
           password: "7m------rk8y"

проблема осталась после применения и перезагрузки. Ниже приведен выход команды «IP A»:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:1f:16:d1:af:b7 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21f:16ff:fed1:afb7/64 scope link 
       valid_lft forever preferred_lft forever
3: wls1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 00:24:2c:63:3f:09 brd ff:ff:ff:ff:ff:ff
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:47:8f:bc:4d brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
5: flannel.1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default 
    link/ether 32:06:6d:56:99:34 brd ff:ff:ff:ff:ff:ff
    inet 10.1.11.0/32 scope global flannel.1
       valid_lft forever preferred_lft forever
    inet6 fe80::3006:6dff:fe56:9934/64 scope link 
       valid_lft forever preferred_lft forever

@Heynnema, пожалуйста, найдите ниже выходов, приведенные команды:

для «Sudo NetPlan --debug Generate», у меня было:

** (generate:1099813): DEBUG: 03:18:36.906: Processing input file /etc/netplan/50-cloud-init.yaml..
** (generate:1099813): DEBUG: 03:18:36.906: starting new processing pass
** (generate:1099813): DEBUG: 03:18:36.906: wls1: adding wifi AP 'ATTc58k66a'
** (generate:1099813): DEBUG: 03:18:36.906: We have some netdefs, pass them through a final round of validation
** (generate:1099813): DEBUG: 03:18:36.907: wls1: setting default backend to 1
** (generate:1099813): DEBUG: 03:18:36.907: Configuration is valid
** (generate:1099813): DEBUG: 03:18:36.907: enp1s0: setting default backend to 1
** (generate:1099813): DEBUG: 03:18:36.907: Configuration is valid
** (generate:1099813): DEBUG: 03:18:36.907: Generating output files..
** (generate:1099813): DEBUG: 03:18:36.907: openvswitch: definition enp1s0 is not for us (backend 1)
** (generate:1099813): DEBUG: 03:18:36.907: NetworkManager: definition enp1s0 is not for us (backend 1)
** (generate:1099813): DEBUG: 03:18:36.907: Creating wpa_supplicant config
** (generate:1099813): DEBUG: 03:18:36.907: wls1: Creating wpa_supplicant configuration file run/netplan/wpa-wls1.conf
** (generate:1099813): DEBUG: 03:18:36.907: Creating wpa_supplicant unit /run/systemd/system/netplan-wpa-wls1.service
(generate:1099813): GLib-DEBUG: 03:18:36.907: posix_spawn avoided (workdir specified) (fd close requested) 
** (generate:1099813): DEBUG: 03:18:36.926: Creating wpa_supplicant service enablement link /run/systemd/system/systemd-networkd.service.wants/netplan-wpa-wls1.service
** (generate:1099813): DEBUG: 03:18:36.926: openvswitch: definition wls1 is not for us (backend 1)
** (generate:1099813): DEBUG: 03:18:36.927: NetworkManager: definition wls1 is not for us (backend 1)
(generate:1099813): GLib-DEBUG: 03:18:36.927: posix_spawn avoided (fd close requested) 
(generate:1099813): GLib-DEBUG: 03:18:36.934: posix_spawn avoided (fd close requested) 

и для команды «Sudo LSHW -C Network 'I имел:

*-network
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 02
       serial: 00:1f:16:d1:af:b7
       size: 100Mbit/s
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full ip=192.168.1.124 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:16 ioport:3000(size=256) memory:d0410000-d0410fff memory:d0400000-d040ffff memory:d3700000-d371ffff
  *-network
       description: Wireless interface
       product: AR242x / AR542x Wireless Network Adapter (PCI-Express)
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wls1
       version: 01
       serial: 00:24:2c:63:3f:09
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath5k driverversion=5.4.0-66-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:d2600000-d260ffff
  *-network
       description: Ethernet interface
       physical id: 2
       logical name: flannel.1
       serial: 32:06:6d:56:99:34
       capabilities: ethernet physical
       configuration: broadcast=yes driver=vxlan driverversion=0.1 ip=10.1.11.0 link=yes multicast=yes

Команда« GREP -I WLS1 / var / log / syslog * »выводит следующее:

/var/log/syslog.1:Mar  2 21:26:33 eooubuserver systemd[1]: Started WPA supplicant for netplan wls1.
/var/log/syslog.1:Mar  2 21:26:33 eooubuserver systemd-networkd[857]: wls1: Interface name change detected, wls1 has been renamed to wlan0.
/var/log/syslog.1:Mar  2 21:26:33 eooubuserver systemd-networkd[857]: wlan0: Interface name change detected, wlan0 has been renamed to wls1.
/var/log/syslog.1:Mar  2 21:26:33 eooubuserver systemd-networkd[857]: wls1: Link UP
/var/log/syslog.1:Mar  2 21:26:33 eooubuserver systemd-networkd[857]: wls1: IPv6 successfully enabled
/var/log/syslog.1:Mar  2 21:26:33 eooubuserver cloud-init[867]: ci-info: |  wls1  | False |                    .                     |       .       |   .    | 00:24:2c:63:3f:09 |
/var/log/syslog.1:Mar  2 21:26:33 eooubuserver kernel: [   15.765134] ath5k 0000:02:00.0 wls1: renamed from wlan0

Команда« Iwlist WLS1 Freq »показывает следующим образом:

wls1      11 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz



























           
0
задан 4 March 2021 в 03:21

1 ответ

121 --- 909655-

Для беспроводной установки в сервере необходимо установить WPASUPPLANT .

Используя проводное соединение ...

Обновление Sudo APT

Sudo APT Установить WPAsuplicant

Перезагрузка

Ваш /etc/netPlan/*.yaml должен выглядеть точно так:

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0:
      dhcp4: true
      optional: true
  wifis:
    wls1:
      dhcp4: true
      access-points:
        "A-----66a":
          password: "7m-----k8y"

затем создать /etc/Cloud/Cloud.cfg.d/99-disable-network-config.cfg С содержимым:

network: {config: disabled}

Затем:

Sudo NetPlan генерирует

Sudo NetPlan Применить

Перезагрузка

0
ответ дан 18 March 2021 в 23:32

Другие вопросы по тегам:

Похожие вопросы: