Форум программистов, компьютерный форум CyberForum.ru
Наши страницы

Debian, Kali Linux, Raspbian

Войти
Регистрация
Восстановить пароль
 
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
#1

Настроить WiFi на RaspberryPi - Debian Linux

14.06.2017, 14:50. Просмотров 328. Ответов 12
Метки нет (Все метки)

Доброе время суток, всем.
У меня вопрос. WiFi Raspbian не работает.
Код
cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RU


network={
    ssid="myssid"
    psk="password"
    key_mgmt=WPA-PSK
}

cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet manual

cat /etc/dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
#duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
#
nodhcp

interface wlan0
static ip_address=192.168.55.46/24
static routers=192.168.1.1
static domain_name_servers=192.168.55.1
static domain_search=192.168.55.1

interface eth0
static ip_address=192.168.1.36/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
static domain_search=192.168.1.1

cat /etc/dhcp/dhcpd.conf
# /etc/dhcp/dhcpd.conf
# Sample configuration file for ISC dhcpd for Debian
#
#

# 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;

# 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;

# 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.254.239.0 netmask 255.255.255.224 {
#  range 10.254.239.10 10.254.239.20;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}

# 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 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.fugue.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.fugue.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;
#  }
#}

# doman our net
option domain-name "anonymous-ap.local";

# parameter subnet
subnet 192.168.55.0 netmask 255.255.255.0 {
  range 192.168.55.10 192.168.55.100;
  option domain-name-servers 8.8.4.4, 8.8.4.4;
  option routers 192.168.55.1;
  interface wlan0;
}
что и где забыл указать?
Права доступа к файлам?
0
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
14.06.2017, 14:50
Здравствуйте! Я подобрал для вас темы с ответами на вопрос Настроить WiFi на RaspberryPi (Debian Linux):

Настроить wifi на Debian Sqeeze - Debian Linux
У меня на ноуте (Thinkpad sl510) не работает wi-fi. Долго копался в инете. нашел одну тему касательно именно моей карты, пересобрал ядро...

Hostapd wifi — настроить выход в интернет - Debian Linux
/etc/hostapd interface=wlan0 driver=nl80211 ssid=my_ssid hw_mode=g ieee80211n=1 ht_capab=

Настроить rtorrent на RaspberryPi - Linux
Здравствуйте! Прикупил себе Raspberry Pi поиграться. Установил rtorrent вот по этой статье https://habrahabr.ru/post/88405/, только вот...

Как настроить раздачу халявного WiFi инета через свои WiFi роутер? - Wi-Fi
Здравствуйте, уважаемые форумчане! Есть халявный инет через WiFi. Задача состоит в том, что необходимо раздавать этот халявный инет через...

Купил ноутбук с WiFi (ОС WIN7). Дома стоит ПК с WiFI, подключением к интернету (О.С. WinXp). Требуется настроить интернет на ноутбуке и сеть, - Wi-Fi
что бы можно было с ноута лазить в интернете, в ПК, и с ПК заходить на ноут.

Настроить WiFi - Сети
У меня два компа. Захотел что-бы со второго тоже можно было выйти в инет. Купил роутер d-link dsl-2640u. Второй комп видит сеть, пишет что...

Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
cm044
44 / 44 / 7
Регистрация: 19.08.2015
Сообщений: 107
20.06.2017, 01:58 #2
И все прям на память помнят какой там когфиг у впасупликант
А что конкретно-то не работает? Интерфейс в системе есть? Модуль вайфая стоит?
wpa_cli чего говорит? Сети в округе есть? Что ifconfig пишет? Чего к чему подключаете?
0
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
26.06.2017, 22:20  [ТС] #3
Код
iwlist wlan0 auth > /tmp/auth

cat /tmp/auth

wlan0     Authentication capabilities :
        WPA
        WPA2
        CIPHER-TKIP
        CIPHER-CCMP
Код
iwlist wlan0 scan > /tmp/scan

cat /tmp/scan

wlan0     Scan completed :
          Cell 01 - Address: 9C:5C:8E:48:07:28
                    Channel:2
                    Frequency:2.417 GHz (Channel 2)
                    Quality=70/70  Signal level=-37 dBm  
                    Encryption key:on
                    ESSID:"ssid"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 60ms ago
                    IE: Unknown: 000441535553
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 030102
                    IE: Unknown: 2A0104
                    IE: Unknown: 32040C183060
                    IE: Unknown: 2D1AEE1117FFFF000001000000000000000000000000000000000000
                    IE: Unknown: 3D1602000000000000000000000000000000000000000000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B0500000C127A
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4303000000
                    IE: Unknown: 0706465220010D10
Код
cat /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RU

network={ 
    ssid="##**##"
    psk="##***##"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    group=CCMP
    auth_alg=OPEN
}
Код
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Код
ifconfig -a > /tmp/ifconfig
cat /tmp/ifconfig

eth0      Link encap:Ethernet  HWaddr b8:27:eb:b9:4c:b8  
          inet addr:192.168.1.36  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a38b:bdef:c560:db9d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27711 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18407 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:13209001 (12.5 MiB)  TX bytes:4574234 (4.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:975 errors:0 dropped:0 overruns:0 frame:0
          TX packets:975 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:133171 (130.0 KiB)  TX bytes:133171 (130.0 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:ec:19:ed  
          inet6 addr: fe80::4483:2e98:f119:ede0/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Код
iwconfig > /tmp/iwconfig
cat /tmp/iwconfig

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
Код
cat /tmp/lsmod
Module                  Size  Used by
bnep                   12051  2 
hci_uart               19956  1 
btbcm                   7916  1 hci_uart
nfnetlink_queue        12514  0 
nfnetlink_log          10196  0 
nfnetlink               7322  2 nfnetlink_log,nfnetlink_queue
bluetooth             365511  22 hci_uart,bnep,btbcm
ip6table_filter         2159  1 
ip6_tables             13434  1 ip6table_filter
iptable_filter          2197  1 
ip_tables              13161  1 iptable_filter
x_tables               20578  4 ip_tables,iptable_filter,ip6table_filter,ip6_tables
brcmfmac              222874  0 
brcmutil                9092  1 brcmfmac
cfg80211              543027  1 brcmfmac
joydev                  9988  0 
evdev                  12423  4 
rfkill                 20851  3 bluetooth,cfg80211
snd_bcm2835            24427  1 
snd_pcm                98501  1 snd_bcm2835
snd_timer              23904  1 snd_pcm
snd                    70032  5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem         3940  0 
uio_pdrv_genirq         3923  0 
fixed                   3285  0 
uio                    10204  1 uio_pdrv_genirq
i2c_dev                 6913  0 
fuse                   99603  3 
ipv6                  406279  63
Добавлено через 34 минуты
Код
iwlist wlan0 auth > /tmp/auth

cat /tmp/auth

wlan0 Authentication capabilities :
WPA
WPA2
CIPHER-TKIP
CIPHER-CCMP
Код
iwlist wlan0 scan > /tmp/scan

cat /tmp/scan

wlan0 Scan completed :
Cell 01 - Address: 9C:5C:8E:48:07:28
Channel:2
Frequency:2.417 GHz (Channel 2)
Quality=70/70 Signal level=-37 dBm
Encryption key:on
ESSID:"ssid"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 60ms ago
IE: Unknown: 000441535553
IE: Unknown: 010882848B961224486C
IE: Unknown: 030102
IE: Unknown: 2A0104
IE: Unknown: 32040C183060
IE: Unknown: 2D1AEE1117FFFF000001000000000000000000000000000000000000
IE: Unknown: 3D1602000000000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: 0B0500000C127A
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F0101
IE: Unknown: DD07000C4303000000
IE: Unknown: 0706465220010D10
Код
cat /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RU

network={
ssid="##**##"
psk="##***##"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
}
Код
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Код
ifconfig -a > /tmp/ifconfig
cat /tmp/ifconfig

eth0 Link encap:Ethernet HWaddr b8:27:eb:b9:4c:b8
inet addr:192.168.1.36 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a38b:bdef:c560:db9d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27711 errors:0 dropped:0 overruns:0 frame:0
TX packets:18407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13209001 (12.5 MiB) TX bytes:4574234 (4.3 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:975 errors:0 dropped:0 overruns:0 frame:0
TX packets:975 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:133171 (130.0 KiB) TX bytes:133171 (130.0 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:ec:19:ed
inet6 addr: fe80::4483:2e98:f119:ede0/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Код
iwconfig > /tmp/iwconfig
cat /tmp/iwconfig

wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
lsmod > /tmp/lsmod
cat /tmp/lsmod
Module Size Used by
bnep 12051 2
hci_uart 19956 1
btbcm 7916 1 hci_uart
nfnetlink_queue 12514 0
nfnetlink_log 10196 0
nfnetlink 7322 2 nfnetlink_log,nfnetlink_queue
bluetooth 365511 22 hci_uart,bnep,btbcm
ip6table_filter 2159 1
ip6_tables 13434 1 ip6table_filter
iptable_filter 2197 1
ip_tables 13161 1 iptable_filter
x_tables 20578 4 ip_tables,iptable_filter,ip6table_filter,ip6_tables
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
joydev 9988 0
evdev 12423 4
rfkill 20851 3 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23904 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
uio_pdrv_genirq 3923 0
fixed 3285 0
uio 10204 1 uio_pdrv_genirq
i2c_dev 6913 0
fuse 99603 3
ipv6 406279 63

asus rt-n11p
Код
cat /proc/version
Linux version 4.9.24-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #993 SMP Wed Apr 26 18:01:23 BST 2017
pi@raspberrypi:~ $ dmesg | grep "Linux version"
[    0.000000] Linux version 4.9.24-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #993 SMP Wed Apr 26 18:01:23 BSpi@raspberrypi:~ $ lsb_release -a 
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 8.0 (jessie)
Release:	8.0
wpa_cli какие ключи использовать?
0
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
26.06.2017, 22:45  [ТС] #4
как удалить весь этот текст в 22:20 вместе с этим?

Добавлено через 5 минут
Код
iwlist wlan0 auth > /tmp/auth

cat /tmp/auth

wlan0 Authentication capabilities :
WPA
WPA2
CIPHER-TKIP
CIPHER-CCMP

iwlist wlan0 scan > /tmp/scan

cat /tmp/scan

wlan0 Scan completed :
Cell 01 - Address: 9C:5C:8E:48:07:28
Channel:2
Frequency:2.417 GHz (Channel 2)
Quality=70/70 Signal level=-37 dBm
Encryption key:on
ESSID:"ssid"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 60ms ago
IE: Unknown: 000441535553
IE: Unknown: 010882848B961224486C
IE: Unknown: 030102
IE: Unknown: 2A0104
IE: Unknown: 32040C183060
IE: Unknown: 2D1AEE1117FFFF000001000000000000000000000000000000000000
IE: Unknown: 3D1602000000000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: 0B0500000C127A
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F0101
IE: Unknown: DD07000C4303000000
IE: Unknown: 0706465220010D10

cat /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RU

network={
ssid="##**##"
psk="##***##"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
}

cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

ifconfig -a > /tmp/ifconfig
cat /tmp/ifconfig

eth0 Link encap:Ethernet HWaddr b8:27:eb:b9:4c:b8
inet addr:192.168.1.36 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a38b:bdef:c560:db9d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27711 errors:0 dropped:0 overruns:0 frame:0
TX packets:18407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13209001 (12.5 MiB) TX bytes:4574234 (4.3 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:975 errors:0 dropped:0 overruns:0 frame:0
TX packets:975 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:133171 (130.0 KiB) TX bytes:133171 (130.0 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:ec:19:ed
inet6 addr: fe80::4483:2e98:f119:ede0/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

iwconfig > /tmp/iwconfig
cat /tmp/iwconfig

wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
lsmod > /tmp/lsmod
cat /tmp/lsmod
Module Size Used by
bnep 12051 2
hci_uart 19956 1
btbcm 7916 1 hci_uart
nfnetlink_queue 12514 0
nfnetlink_log 10196 0
nfnetlink 7322 2 nfnetlink_log,nfnetlink_queue
bluetooth 365511 22 hci_uart,bnep,btbcm
ip6table_filter 2159 1
ip6_tables 13434 1 ip6table_filter
iptable_filter 2197 1
ip_tables 13161 1 iptable_filter
x_tables 20578 4 ip_tables,iptable_filter,ip6table_filter,ip6_tables
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
joydev 9988 0
evdev 12423 4
rfkill 20851 3 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23904 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
uio_pdrv_genirq 3923 0
fixed 3285 0
uio 10204 1 uio_pdrv_genirq
i2c_dev 6913 0
fuse 99603 3
ipv6 406279 63

asus rt-n11p

cat /proc/version
Linux version 4.9.24-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #993 SMP Wed Apr 26 18:01:23 BST 2017
pi@raspberrypi:~ $ dmesg | grep "Linux version"
[    0.000000] Linux version 4.9.24-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #993 SMP Wed Apr 26 18:01:23 BSpi@raspberrypi:~ $ lsb_release -a 
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 8.0 (jessie)
Release:	8.0
wpa_cli какие ключи использовать
0
cm044
44 / 44 / 7
Регистрация: 19.08.2015
Сообщений: 107
26.06.2017, 23:08 #5
Код
network={
	ssid="*********"
	#psk="*********"
	psk=*******************************************************************************************************************
}
вот вид моего wpa_supplicant.conf с которым спокойно соединяется
Посмотрите внимательно теперь на свой файл.
Не забывайте, что Вы должны получить код с помощью
Bash
1
wpa_passphrase имя_роутера пароль
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------- здесь указываем все без кавычек.
в самом конфиге тоже без кавычек.
Все так сделали? Идем далее. Если ip раздает роутер динамически, запустили dhclient?

Добавлено через 3 минуты
Да. и кстати! Не включен ли network-manager????(извините, но я должен об этом спросить...Если он работает, то вся эта затея бессмысленна)
0
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
27.06.2017, 20:35  [ТС] #6
1. как проверить включен или нет этот network-manager?
2. он должен включен или выключен?
3. как это сделать?
4. имя_роутера это ssid?

Добавлено через 6 часов 45 минут
wpa_passphrase сделал ssid потом от нее пароль, только это не сильно помогло, сеть есть, но не подключаеться, пароль не ввести, не автоматически.

Код
cat /tmp/wpa_cli
wpa_cli v2.3
Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wlan0'

Interactive mode

<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=6 duration=90 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=7 duration=90 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=8 duration=90 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=9 duration=90 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=10 duration=90 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=11 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=12 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=13 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=14 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=15 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>CTRL-EVENT-SSID-REENABLED id=1 ssid="########"
<3>Trying to associate with 9c:5c:8e:48:07:28 (SSID='########' freq=2417 MHz)
<3>CTRL-EVENT-ASSOC-REJECT status_code=16
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="########" auth_failures=21 duration=120 reason=CONN_FAILED
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
>
Добавлено через 1 час 24 минуты
sudo dhclient -v -r wlan0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/b8:27:eb:ec:19:ed
Sending on LPF/wlan0/b8:27:eb:ec:19:ed
Sending on Socket/fallback

sudo aptitude -y install isc-dhcp-server поставил
только хотел, что бы static ip был, для проброса портов удоней.
что еще надо сделать и c network-manager?
0
cm044
44 / 44 / 7
Регистрация: 19.08.2015
Сообщений: 107
03.07.2017, 00:27 #7
Цитата Сообщение от Laric Посмотреть сообщение
1. как проверить включен или нет этот network-manager?
Bash
1
nmcli -g
или если systemd, то посмотреть
Bash
1
systemctl -l
он там отображается
Цитата Сообщение от Laric Посмотреть сообщение
2. он должен включен или выключен?
это две разные возможности по настройке сети. Или Вы вручную все делаете, или система все за Вас настраивает.
Цитата Сообщение от Laric Посмотреть сообщение
имя_роутера это ssid?
ну или к чему Вы подключаетесь
Цитата Сообщение от Laric Посмотреть сообщение
только хотел, что бы static ip был,
а чего Вы ему вручную ip не пропишите?
0
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
04.07.2017, 11:20  [ТС] #8
дал команду
Код
systemctl -l | grep network

  networking.service                                                                                                      loaded active exited    LSB: Raise network interfaces.
* snort.service                                                                                                           loaded failed failed    LSB: Lightweight network intrusion detection system
* stunnel4.service                                                                                                        loaded failed failed    LSB: Start or stop stunnel 4.x (SSL tunnel for network daemons)
  network-online.target                                                                                                   loaded active active    Network is Online
  network.target                                                                                                          loaded active active    Network
вставлял я в interfaces строчки
address netmask gateway
0 эффекта

может все тут надо сделать и что надо

Код
# /etc/dhcp/dhcpd.conf
# Sample configuration file for ISC dhcpd for Debian
#
#

# 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;

# 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;

# 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.254.239.0 netmask 255.255.255.224 {
#  range 10.254.239.10 10.254.239.20;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}

# 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 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.fugue.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.fugue.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;
#  }
#}

# Домен нашей сети
option domain-name "ap.local";

# Параметры подсети
subnet 192.168.55.0 netmask 255.255.255.0 {
  range 192.168.55.10 192.168.55.100;
  option domain-name-servers 8.8.4.4, 8.8.4.4;
  option routers 192.168.55.1;
  interface wlan0;
}
Добавлено через 25 минут
Код
authoritative;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.4.0 netmask 255.255.255.0 {
  range 192.168.4.10 192.168.4.255;
  option domain-name-servers 192.168.4.1, 192.168.4.2;
  option routers 192.168.4.1;
  interface wlan0;
}
option domain-name gs.a.net;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
  option domain-name-servers 8.8.4.4, 8.8.4.4;
  option routers 192.168.1.1;
  interface wlan0;
}
очищенный файл
0
cm044
44 / 44 / 7
Регистрация: 19.08.2015
Сообщений: 107
05.07.2017, 02:45 #9
Цитата Сообщение от Laric Посмотреть сообщение
systemctl -l | grep network
Bash
1
systemctl -l | grep Network
он там с большой буквы

Добавлено через 1 минуту
Цитата Сообщение от Laric Посмотреть сообщение
вставлял я в interfaces строчки
address netmask gateway
0 эффекта
а показать можете? ifconfig и route
0
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
06.07.2017, 11:26  [ТС] #10
sudo route -eF /tmp/rout

Код
cat /tmp/rout

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         router.asus.com 0.0.0.0         UG        0 0          0 eth0
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
sudo dhclient -v -r wlan0

Код
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
 
Listening on LPF/wlan0/b8:27:eb:ec:19:ed
Sending on   LPF/wlan0/b8:27:eb:ec:19:ed
Sending on   Socket/fallback
ifconfig > /tmp/ifcon

Код
cat /tmp/ifcon


eth0      Link encap:Ethernet  HWaddr b8:27:eb:b9:4c:b8  
          inet addr:192.168.4.148  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::a38b:bdef:c560:db9d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19304 errors:0 dropped:4 overruns:0 frame:0
          TX packets:1172 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1840032 (1.7 MiB)  TX bytes:138327 (135.0 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:395 errors:0 dropped:0 overruns:0 frame:0
          TX packets:395 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:96841 (94.5 KiB)  TX bytes:96841 (94.5 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:ec:19:ed  
          inet addr:169.254.170.102  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::4483:2e98:f119:ede0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5148 errors:0 dropped:0 overruns:0 frame:0
          TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:471835 (460.7 KiB)  TX bytes:30405 (29.6 KiB)
может, isc-dhcp-server настроить, но как?
какие строчки исправить и активировать

Добавлено через 16 секунд
sudo route -eF /tmp/rout

Код
cat /tmp/rout

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         router.asus.com 0.0.0.0         UG        0 0          0 eth0
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
sudo dhclient -v -r wlan0

Код
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
 
Listening on LPF/wlan0/b8:27:eb:ec:19:ed
Sending on   LPF/wlan0/b8:27:eb:ec:19:ed
Sending on   Socket/fallback
ifconfig > /tmp/ifcon

Код
cat /tmp/ifcon


eth0      Link encap:Ethernet  HWaddr b8:27:eb:b9:4c:b8  
          inet addr:192.168.4.148  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::a38b:bdef:c560:db9d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19304 errors:0 dropped:4 overruns:0 frame:0
          TX packets:1172 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1840032 (1.7 MiB)  TX bytes:138327 (135.0 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:395 errors:0 dropped:0 overruns:0 frame:0
          TX packets:395 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:96841 (94.5 KiB)  TX bytes:96841 (94.5 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:ec:19:ed  
          inet addr:169.254.170.102  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::4483:2e98:f119:ede0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5148 errors:0 dropped:0 overruns:0 frame:0
          TX packets:170 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:471835 (460.7 KiB)  TX bytes:30405 (29.6 KiB)
может, isc-dhcp-server настроить, но как?
какие строчки исправить и активировать
0
Dmitry
Эксперт по компьютерным сетямЭксперт NIX
10241 / 5733 / 344
Регистрация: 09.09.2009
Сообщений: 22,564
06.07.2017, 22:07 #11
Цитата Сообщение от Laric Посмотреть сообщение
wlan0 Link encap:Ethernet HWaddr b8:27:eb:ec:19:ed
inet addr:169.254.170.102
это т.н. адрес APIPA. он появляется, если на интерфейсе включен dhcp-клиент, но он так и не смог найти dhcp-сервер и получить адрес от него
0
Laric
0 / 0 / 0
Регистрация: 29.05.2017
Сообщений: 22
06.07.2017, 23:55  [ТС] #12
это то понятно что он его не получил и как мне его получить
и при этом еще и это не забыть

# /etc/tor/torrc

Код
PidFile /var/run/tor/tor.pid # pid file
Log notice file /var/log/tor/notices.log # log files 
DataDirectory /var/lib/tor # key & certificate, etc...
LongLivedPorts 55, 80, 443, 4444, 9001, 9030, 9050, 14628, 19730, 19735, 59475
NewCircuitPeriod 15
TrackHostExitsExpire 900
ORPort 443 NoListen
ORPort 9001 NoAdvertise
DirPort 80 NoListen
DirPort 9030 NoAdvertise
DNSPort 55
VirtualAddrNetwork 172.16.0.0/12
TransPort 9040
TransListenAddress 192.168.1.1
DNSListenAddress 192.168.1.1
AutomapHostsOnResolve 1 # This will allow Tor to accept DNS requests
AutomapHostsSuffixes .exit,.onion # Is set, Tor will resolve invalid .onion addresses to local addresses.
RelayBandwidthRate 2 MB # Throttle traffic
RelayBandwidthBurst 3 MB # But allow bursts up
ExitPolicy accept *:443       # HTTPS
ExitPolicy accept *:3128      # SQUID
ExitPolicy accept *:5190      # ICQ
ExitPolicy accept *:5430-5435 # POSTGRE SQL
ExitPolicy accept *:6660-6669 # IRC
ExitPolicy accept *:6679      # IRC SSL  
ExitPolicy accept *:6697      # IRC SSL
ExitPolicy accept *:8118      # PRIVOXY  
ExitPolicy accept *:9418      # GIT
ExitPolicy accept *:12350     # SKYPE
ExitPolicy accept *:14628     # VPN
ExitPolicy accept *:19730     # SSH
ExitPolicy accept *:19735     # VNC
ExitPolicy accept *:23456     # SKYPE
ExitPolicy accept *:33033     # SKYPE
ExitNodes {ro},{pt},{sy},{tr},{rw},{za},{ie},{fo},{is},{gl},{ic} # accept doman
ExitPolicy reject *:* # no exits allowed
ExitPolicy reject6 *:* # no exits allowed
# /etc/dhcp/dhcpd.conf

Код
option domain-name gs.an.net;

subnet 192.168.55.0 netmask 255.255.255.0 {
	range 192.168.55.10 192.168.55.100;
	option domain-name-servers 8.8.4.4, 8.8.4.4;
	option routers 192.168.55.1;
	interface wlan0 ;
}
0
Dmitry
Эксперт по компьютерным сетямЭксперт NIX
10241 / 5733 / 344
Регистрация: 09.09.2009
Сообщений: 22,564
07.07.2017, 08:50 #13
то, что вы укажете интерфейс в конфиге сервера dhcp
Цитата Сообщение от Laric Посмотреть сообщение
interface wlan0 ;
....никак не влияет на то, что где-то он настроен на использование dhcp-клиента

ему сначала нужно в interfaces прописать static-адрес. и тогда ifconfig должен показывать уже не apipa-адрес, а тот, который вы укажете в настройках.
0
MoreAnswers
Эксперт
37091 / 29110 / 5898
Регистрация: 17.06.2006
Сообщений: 43,301
07.07.2017, 08:50
Привет! Вот еще темы с ответами:

не могу настроить WIFI - Wi-Fi
Добрый вечер. Помогите пожалуйста товарищи программисты!! У меня ноут Fujitsu Siemens Amilo XA 2528, карта стоит Atheros AR5007EG...

Настроить WiFi(bcm4311) - Linux
Добрый день! Драйвера установил на карту, они загружаються, но в выводе ifconfig никакого wlan нету... ошибок по карте тоже нету... Как...

Помогите настроить Wifi. - Wi-Fi
имеется: D-Link DSL-2640U Ноутбук с Win7 Ethernet кабель хочу настроить роутер конектится к провайдеру (это в пункте PPTP если не...

не могу настроить wifi - Wi-Fi
хай помогите пожалуста)! Собствено в чем проблема, роутер с wifi подключен к компу, я хочу с ноута подключиться к сети, подключаюсь-пишет...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
Yandex
Объявления
07.07.2017, 08:50
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru