Поддержка > Настройка WiFi |
wifi перестал включаться после настройки раздачи интернета |
(1/4) > >> |
lext:
Здравствуйте. Проблема описана в шапке, но сам исправить не смог. Как я понял -карточка выключена,вопрос - как её включить Спойлер: ПоказатьСкрыть lex@lex-runtu:~$ iwconfig lo no wireless extensions. enp2s0 no wireless extensions. lex@lex-runtu:~$ iwconfig lo no wireless extensions. enp2s0 no wireless extensions. wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 lex@lex-runtu:~$ iwconfig wlxd03745e56f20 UP iwconfig: unknown command "UP" lex@lex-runtu:~$ iwconfig wlxd03745e56f20 up iwconfig: unknown command "up" lex@lex-runtu:~$ ifconfig wlxd03745e56f20 UP UP: Сбой поиска имени узла ifconfig: `--help' показывает информацию по использованию. lex@lex-runtu:~$ ifconfig wlxd03745e56f20 up SIOCSIFFLAGS: Операция не позволена lex@lex-runtu:~$ sudo ifconfig wlxd03745e56f20 up [sudo] пароль для lex: lex@lex-runtu:~$ sudo ifconfig wlxd03745e56f20 wlxd03745e56f20: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether d0:37:45:e5:6f:20 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lex@lex-runtu:~$ iwconfig lo no wireless extensions. enp2s0 no wireless extensions. wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 lex@lex-runtu:~$ iwconfig wlxd03745e56f20 power --help Error for wireless request "Set Power Management" (8B2C) : invalid argument "--help". lex@lex-runtu:~$ man iwconfig lex@lex-runtu:~$ iwconfig wlxd03745e56f20 power on Error for wireless request "Set Power Management" (8B2C) : SET failed on device wlxd03745e56f20 ; Operation not permitted. lex@lex-runtu:~$ sudo iwconfig wlxd03745e56f20 power on Error for wireless request "Set Power Management" (8B2C) : SET failed on device wlxd03745e56f20 ; Operation not permitted. локально все работало давно, но т.к. у меня несколько компов, связанных сетью я вчера поставил dhcp, bind и хотел раздавать на всю сеть инет. вчера, после настройки всё заработало, но сегодня перестало (после перезагрузки) :(. Карточка не стартует именно на том компе, который настраивал. На остальных работает, как прежде, если сеть отключить (выдернуть провод). Вот что менял при настройке: dhcp Спойлер: ПоказатьСкрыть _________________________ dhcp.conf # dhcpd.conf # # Sample configuration file for ISC dhcpd # # Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as # configuration file instead of this file. # # option definitions common to all supported networks... # option domain-name "example.org"; # option domain-name-servers ns1.example.org, ns2.example.org; # default-lease-time 600; # max-lease-time 7200; # The ddns-updates-style parameter controls whether or not the server will # attempt to do a DNS update when a lease is confirmed. We default to the # behavior of the version 2 packages ('none', since DHCP v2 didn't # have support for DDNS.) ddns-update-style none; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). #log-facility local7; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. #subnet 10.152.187.0 netmask 255.255.255.0 { #} # This is a very basic subnet declaration. subnet 10.0.99.0 netmask 255.255.255.0 { range 10.0.99.10 10.0.99.20; option routers 10.0.99.100; option broadcast-address 10.0.99.255; option domain-name-servers 10.0.99.100; option domain-name "lex"; option subnet-mask 255.255.255.0; default-lease-time 604800; max-lease-time 604800; } #host lex-runtu { # hardware ethernet d0:50:99:1d:03:01; # fixed-address 10.0.99.100 # } # This declaration allows BOOTP clients to get dynamic addresses, # which we don't really recommend. #subnet 10.254.239.32 netmask 255.255.255.224 { # range dynamic-bootp 10.254.239.40 10.254.239.60; # option broadcast-address 10.254.239.31; # option routers rtr-239-32-1.example.org; #} # A slightly different configuration for an internal subnet. #subnet 10.5.5.0 netmask 255.255.255.224 { # range 10.5.5.26 10.5.5.30; # option domain-name-servers ns1.internal.example.org; # option domain-name "internal.example.org"; # option subnet-mask 255.255.255.224; # option routers 10.5.5.1; # option broadcast-address 10.5.5.31; # default-lease-time 600; # max-lease-time 7200; #} # Hosts which require special configuration options can be listed in # host statements. If no address is specified, the address will be # allocated dynamically (if possible), but the host-specific information # will still come from the host declaration. #host passacaglia { # hardware ethernet 0:0:c0:5d:bd:95; # filename "vmunix.passacaglia"; # server-name "toccata.example.com"; #} # Fixed IP addresses can also be specified for hosts. These addresses # should not also be listed as being available for dynamic assignment. # Hosts for which fixed IP addresses have been specified can boot using # BOOTP or DHCP. Hosts for which no fixed address is specified can only # be booted with DHCP, unless there is an address range on the subnet # to which a BOOTP client is connected which has the dynamic-bootp flag # set. #host fantasia { # hardware ethernet 08:00:07:26:c0:a5; # fixed-address fantasia.example.com; #} # You can declare a class of clients and then do address allocation # based on that. The example below shows a case where all clients # in a certain class get addresses on the 10.17.224/24 subnet, and all # other clients get addresses on the 10.0.29/24 subnet. #class "foo" { # match if substring (option vendor-class-identifier, 0, 4) = "SUNW"; #} #shared-network 224-29 { # subnet 10.17.224.0 netmask 255.255.255.0 { # option routers rtr-224.example.org; # } # subnet 10.0.29.0 netmask 255.255.255.0 { # option routers rtr-29.example.org; # } # pool { # allow members of "foo"; # range 10.17.224.10 10.17.224.250; # } # pool { # deny members of "foo"; # range 10.0.29.10 10.0.29.230; # } #} -------- interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # The loopback network interface add auto lo iface lo inet loopback # The primary network interface add auto wlxd03745e56f20 iface wlxd03745e56f20 inet dhcp # The primary local interface add auto enp2s0 iface enp2s0 inet static address 10.0.99.100 netmask 255.255.255.0 network 10.0.99.0 broadcast 10.0.99.255 dns-search lex dns-nameservers 10.0.99.100 post-up /etc/nat # Include files from /etc/network/interfaces.d: source /etc/network/interfaces.d/* ____________________ isc-dhcp-server # Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server) # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). #DHCPDv4_CONF=/etc/dhcp/dhcpd.conf #DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). #DHCPDv4_PID=/var/run/dhcpd.pid #DHCPDv6_PID=/var/run/dhcpd6.pid # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead #OPTIONS="" # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACESv4="enp2s0" INTERFACESv6="enp2s0" Bind Спойлер: ПоказатьСкрыть ___________________________ named.conf.options options { directory "/var/cache/bind"; listen-on { 10.0.99.0/24; 127.0.0.1; }; forwarders { 8.8.8.8; 8.8.4.4; }; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. // forwarders { // 0.0.0.0; // }; //======================================================================== // If BIND logs error messages about the root key being expired, // you will need to update your keys. See https://www.isc.org/bind-keys //======================================================================== dnssec-validation auto; auth-nxdomain no; listen-on-v6 { any; }; version "DNS server v1.0"; }; Помогите разобраться, пожалуйста. PS Вчера был сильно расстроен, потому забыл - на всех машинах 64 бита стоит Runtu 22, а на 32-битных - 18.04. На машине, которую превращал в роутер - Runtu 22, и при установке пришлось доустановить iptable из репозитария - для NAT. Для запуска и работы NAT был создан файл: Спойлер: ПоказатьСкрыть nat #!/bin/sh # Включаем форвардинг (перенаправление) пакетов echo 1 > /proc/sys/net/ipv4/ip_forward # Включаем NAT iptables -t nat -A POSTROUTING -o wlxd03745e56f20 -s 10.0.99.0/24 -j MASQUERADE ему присвоены права 755 и он назначен на выполнение в конце файла interfaces |
HsH:
lext, какая у вас топология сети (схема соединения узлов)? В ней отсутствует маршрутизатор? Навскидку, у вас ошибки в фалах конфигурации, например: --- Код: ---# option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org;# This is a very basic subnet declaration. . . . option domain-name-servers 10.0.99.100; option domain-name "lex"; --- Конец кода --- Наименования "example.org", "ns1.example.org" не могут использоваться в конфиге - они указаны для примера и должны быть закомментированы. Попробуйте команду включения интерфейса: --- Код: ---sudo ip link set dev ВАШЕ_УСТРОЙСТВО up --- Конец кода --- |
lext:
Спасибо. Топология - простая одноранговая сеть. ошибки исправил (точнее - их не было - случайно приложил черновик листинга) попробовать поднять интерфейс смогу только переставив карту... вопрос - почему не отображается вывод многих команд в терминале? например iw , rfkill и других... команды выполняются (наверное) но результата (вывода на терминал) нет :( может ещё что с того компа прихватить? |
lext:
Попробовал поднять интерфейс - ничего. Он, кстати был в UP. ещё кое что попробовал - ничего не помогло Спойлер: ПоказатьСкрыть lex@lex-runtu:~$ nmcli dev set wlxd03745e56f20 managed no lex@lex-runtu:~$ nmcli dev status DEVICE TYPE STATE CONNECTION enp2s0 ethernet не настроенно -- vmnet1 ethernet не настроенно -- vmnet8 ethernet не настроенно -- lo loopback не настроенно -- wlxd03745e56f20 wifi не настроенно -- lex@lex-runtu:~$ iwconfig wlxd03745e56f20 wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 -----------тут я внес -----------[keyfile] -----------unmanaged-devices=mac:wlxd03745e56f20 -----------в файл /etc/NetworkManager/NetworkManager.conf lex@lex-runtu:~$ sudo systemctl restart NetworkManager [sudo] пароль для lex: lex@lex-runtu:~$ nmcli dev status DEVICE TYPE STATE CONNECTION enp2s0 ethernet не настроенно -- vmnet1 ethernet не настроенно -- vmnet8 ethernet не настроенно -- lo loopback не настроенно -- wlxd03745e56f20 wifi не настроенно -- lex@lex-runtu:~$ sudo ip link set dev wlxd03745e56f20 up lex@lex-runtu:~$ iwconfig wlxd03745e56f20 wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 lex@lex-runtu:~$ 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: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether d0:50:99:1d:03:01 brd ff:ff:ff:ff:ff:ff inet 10.0.99.100/24 brd 10.0.99.255 scope global enp2s0 valid_lft forever preferred_lft forever inet6 fe80::d250:99ff:fe1d:301/64 scope link valid_lft forever preferred_lft forever 3: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000 link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff inet 192.168.178.1/24 brd 192.168.178.255 scope global vmnet1 valid_lft forever preferred_lft forever inet6 fe80::250:56ff:fec0:1/64 scope link valid_lft forever preferred_lft forever 4: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000 link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff inet 172.16.185.1/24 brd 172.16.185.255 scope global vmnet8 valid_lft forever preferred_lft forever inet6 fe80::250:56ff:fec0:8/64 scope link valid_lft forever preferred_lft forever 9: wlxd03745e56f20: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether d0:37:45:e5:6f:20 brd ff:ff:ff:ff:ff:ff lex@lex-runtu:~$ iwconfig wlxd03745e56f20 wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 ---------------переподключил карточку: lex@lex-runtu:~$ iwconfig wlxd03745e56f20 wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 lex@lex-runtu:~$ sudo ip link set dev wlxd03745e56f20 up lex@lex-runtu:~$ iwconfig wlxd03745e56f20 wlxd03745e56f20 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 lex@lex-runtu:~$ iw dev lex@lex-runtu:~$ Похоже нетворк менеджер (или кто то другой) перехватывает управление и сам не управляется - статуса интерфейса "без управления" получить не удалось. |
lext:
Добавил в interfaces немного настроек для wifi: Спойлер: ПоказатьСкрыть # interfaces(5) file used by ifup(8) and ifdown(8) # The loopback network interface add auto lo iface lo inet loopback # The primary network interface add auto wlxd03745e56f20 iface wlxd03745e56f20 inet dhcp wpa-driver wext wpa-ssid LexT wpa-ap-scan 1 wpa-proto WPA wpa-pairwise TKIP wpa-group TKIP wpa-key-mgmt WPA-PSK wpa-psk *** - здесь зашифрованный пароль # The primary local interface add auto enp2s0 iface enp2s0 inet static address 10.0.99.100 netmask 255.255.255.0 network 10.0.99.0 broadcast 10.0.99.255 dns-search lex dns-nameservers 10.0.99.100 post-up /etc/nat # Include files from /etc/network/interfaces.d: source /etc/network/interfaces.d/* но тоже никак не помогло :'( |
Навигация |
Главная страница сообщений |
Следующая страница |