Dnsmasq не выдаёт адрес

Автор Обедающий философ, 07 июня 2012, 07:47:40

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Обедающий философ

Здравствуйте!

Сделал точку доступа приблизительно так: http://help.ubuntu.ru/wiki/wifi_ap . На точке доступа и на ноутбуке squeeze 64. По беспроводу всё хорошо, а по проводу не выдаётся айпи-адрес. В то же время винда (на том же ноутбуке) замечательно коннектится. Кто виноват и что делать?

Заранее благодарен.

lisss

Цитата: Обедающий философ от 07 июня 2012, 07:47:40В то же время винда замечательно коннектится
Значит все-таки выдает? Тогда вопрос в том, что ноут с линуксом не хочет их брать. Там точно стоит в настроках получать адрес от dhcp? Что используете: ipfw или NetworkManager?


Обедающий философ

Подключаюсь через ifup.

Открыть содержимое (спойлер)
wormball@debian:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0

#iface eth0 inet dhcp
iface eth0 inet dhcp
auto eth0

[свернуть]

Подключаюсь тем же ноутбуком к другой сети. Когда только загружается, то айпи получает. В то время как ежели вынуть провод и снова воткнуть, то получает шиш. Причём не помогает ни ifdown/ifup, ни sudo service networking restart, а помогает только перезагрузка. Порой (но далеко не всегда) выдаёт следующее:

Открыть содержимое (спойлер)
wormball@debian:~$ sudo service networking start
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:6d:04:b5:db:7c
Sending on   LPF/eth0/f4:6d:04:b5:db:7c
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3

Message from syslogd@debian at Jun  7 10:18:54 ...
kernel:[ 1542.007174] Uhhuh. NMI received for unknown reason 20 on CPU 0.

Message from syslogd@debian at Jun  7 10:18:54 ...
kernel:[ 1542.007186] Do you have a strange power saving mode enabled?

Message from syslogd@debian at Jun  7 10:18:54 ...
kernel:[ 1542.007191] Dazed and confused, but trying to continue

Message from syslogd@debian at Jun  7 10:18:54 ...
kernel:[ 1542.007211] Uhhuh. NMI received for unknown reason 00 on CPU 1.

Message from syslogd@debian at Jun  7 10:18:54 ...
kernel:[ 1542.007224] Do you have a strange power saving mode enabled?

Message from syslogd@debian at Jun  7 10:18:54 ...
kernel:[ 1542.007230] Dazed and confused, but trying to continue
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
^
wormball@debian:~$ sudo ifdown eth0
RTNETLINK answers: No such process
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:6d:04:b5:db:7c
Sending on   LPF/eth0/f4:6d:04:b5:db:7c
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.

wormball@debian:~$ dmesg | tail -n 20
[   34.260800] [fglrx] Gart USWC size:504 M.
[   34.260807] [fglrx] Gart cacheable size:197 M.
[   34.260816] [fglrx] Reserved FB block: Shared offset:0, size:1000000
[   34.260821] [fglrx] Reserved FB block: Unshared offset:fe6b000, size:195000
[   34.260825] [fglrx] Reserved FB block: Unshared offset:17ff4000, size:c000
[   38.361194] eth2: no IPv6 routers present
[ 1495.742261] atl1c 0000:02:00.0: irq 28 for MSI/MSI-X
[ 1495.742358] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[ 1514.133239] atl1c 0000:02:00.0: irq 28 for MSI/MSI-X
[ 1514.133386] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[ 1524.552210] eth0: no IPv6 routers present
[ 1539.383261] atl1c 0000:02:00.0: irq 28 for MSI/MSI-X
[ 1539.383360] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[ 1542.007174] Uhhuh. NMI received for unknown reason 20 on CPU 0.
[ 1542.007186] Do you have a strange power saving mode enabled?
[ 1542.007191] Dazed and confused, but trying to continue
[ 1542.007211] Uhhuh. NMI received for unknown reason 00 on CPU 1.
[ 1542.007224] Do you have a strange power saving mode enabled?
[ 1542.007230] Dazed and confused, but trying to continue
[ 1549.980107] eth0: no IPv6 routers present
[свернуть]

Mc.Sim

когда в ноут провод втыкаешь, что пишется в dmesg?
в консоли запускаешь:
root@nfs-client: # tailf /var/log/dmesg

и вставляешь провод.

Обедающий философ

Dmesg молчит с обеих сторон. Syslog со стороны сервера:

ЦитироватьJun 12 12:33:53 baracuda ntpd[2166]: Listen normally on 9 eth1 fe80::230:4fff:fe52:e716 UDP 123
Jun 12 12:33:54 baracuda kernel: [  367.534247] eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
Jun 12 12:33:54 baracuda kernel: [  367.534483] br0: port 1(eth1) entering learning state
Jun 12 12:34:09 baracuda kernel: [  382.532016] br0: port 1(eth1) entering forwarding state

Со стороны клиента:

Открыть содержимое (спойлер)
Jun 12 12:33:54 debian kernel: [  338.480448] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
Jun 12 12:33:54 debian NetworkManager[1379]: <info> (eth0): carrier now ON (device state 1)
Jun 12 12:34:41 debian anacron[1332]: Job `cron.daily' started
Jun 12 12:34:41 debian anacron[3395]: Updated timestamp for job `cron.daily' to 2012-06-12
Jun 12 12:35:37 debian AptDaemon: INFO: Quiting due to inactivity
Jun 12 12:35:37 debian AptDaemon: INFO: Shutdown was requested
Jun 12 12:36:36 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jun 12 12:36:41 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Jun 12 12:36:49 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Jun 12 12:36:57 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Jun 12 12:37:10 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Jun 12 12:37:21 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Jun 12 12:37:34 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Jun 12 12:37:37 debian dhclient: No DHCPOFFERS received.
Jun 12 12:37:37 debian dhclient: No working leases in persistent database - sleeping.
Jun 12 12:38:41 debian wpa_supplicant[1396]: WPA: Group rekeying completed with 00:1e:8c:73:6a:60 [GTK=TKIP]
Jun 12 12:38:41 debian NetworkManager[1379]: <info> (eth2): supplicant connection state:  completed -> group handshake
Jun 12 12:38:41 debian NetworkManager[1379]: <info> (eth2): supplicant connection state:  group handshake -> completed
Jun 12 12:42:42 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jun 12 12:42:47 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jun 12 12:42:52 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
Jun 12 12:43:02 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Jun 12 12:43:09 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Jun 12 12:43:23 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Jun 12 12:43:38 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jun 12 12:43:43 debian dhclient: No DHCPOFFERS received.
Jun 12 12:43:43 debian dhclient: No working leases in persistent database - sleeping.
Jun 12 12:44:01 debian kernel: [  945.137499] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Down
Jun 12 12:44:01 debian NetworkManager[1379]: <info> (eth0): carrier now OFF (device state 1)
Jun 12 12:44:33 debian kernel: [  977.912361] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
Jun 12 12:44:33 debian NetworkManager[1379]: <info> (eth0): carrier now ON (device state 1)
Jun 12 12:45:26 debian dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jun 12 12:45:26 debian dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jun 12 12:45:26 debian dhclient: All rights reserved.
Jun 12 12:45:26 debian dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jun 12 12:45:26 debian dhclient:
Jun 12 12:45:26 debian dhclient: Listening on LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:45:26 debian dhclient: Sending on   LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:45:26 debian dhclient: Sending on   Socket/fallback
Jun 12 12:45:26 debian dhclient: DHCPRELEASE on eth0 to 192.168.0.1 port 67
Jun 12 12:45:26 debian NetworkManager[1379]: <info> (eth0): carrier now OFF (device state 1)
Jun 12 12:45:38 debian dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jun 12 12:45:38 debian dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jun 12 12:45:38 debian dhclient: All rights reserved.
Jun 12 12:45:38 debian dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jun 12 12:45:38 debian dhclient:
Jun 12 12:45:38 debian kernel: [ 1042.111772] atl1c 0000:02:00.0: irq 28 for MSI/MSI-X
Jun 12 12:45:38 debian kernel: [ 1042.111866] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
Jun 12 12:45:38 debian NetworkManager[1379]: <info> (eth0): carrier now ON (device state 1)
Jun 12 12:45:38 debian dhclient: Listening on LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:45:38 debian dhclient: Sending on   LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:45:38 debian dhclient: Sending on   Socket/fallback
Jun 12 12:45:38 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Jun 12 12:45:38 debian dhclient: DHCPOFFER from 192.168.1.1
Jun 12 12:45:38 debian dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Jun 12 12:45:38 debian dhclient: DHCPACK from 192.168.1.1
Jun 12 12:45:38 debian dhclient: bound to 192.168.1.126 -- renewal in 41615 seconds.
Jun 12 12:45:48 debian kernel: [ 1052.840110] eth0: no IPv6 routers present
Jun 12 12:45:55 debian ntpd[1916]: Listen normally on 8 eth0 192.168.1.126 UDP 123
Jun 12 12:45:55 debian ntpd[1916]: Deleting interface #3 eth0:avahi, 169.254.9.109#123, interface stats: received=0, sent=0, dropped=0, active_time=965 secs
Jun 12 12:48:41 debian wpa_supplicant[1396]: WPA: Group rekeying completed with 00:1e:8c:73:6a:60 [GTK=TKIP]
Jun 12 12:48:41 debian NetworkManager[1379]: <info> (eth2): supplicant connection state:  completed -> group handshake
Jun 12 12:48:41 debian NetworkManager[1379]: <info> (eth2): supplicant connection state:  group handshake -> completed
Jun 12 12:51:01 debian kernel: [ 1365.193827] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Down
Jun 12 12:51:01 debian NetworkManager[1379]: <info> (eth0): carrier now OFF (device state 1)
Jun 12 12:51:03 debian kernel: [ 1367.332719] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
Jun 12 12:51:03 debian NetworkManager[1379]: <info> (eth0): carrier now ON (device state 1)
Jun 12 12:51:14 debian dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jun 12 12:51:14 debian dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jun 12 12:51:14 debian dhclient: All rights reserved.
Jun 12 12:51:14 debian dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jun 12 12:51:14 debian dhclient:
Jun 12 12:51:14 debian dhclient: Listening on LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:51:14 debian dhclient: Sending on   LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:51:14 debian dhclient: Sending on   Socket/fallback
Jun 12 12:51:15 debian dhclient: DHCPRELEASE on eth0 to 192.168.1.1 port 67
Jun 12 12:51:15 debian NetworkManager[1379]: <info> (eth0): carrier now OFF (device state 1)
Jun 12 12:51:17 debian dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jun 12 12:51:17 debian dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jun 12 12:51:17 debian dhclient: All rights reserved.
Jun 12 12:51:17 debian dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jun 12 12:51:17 debian dhclient:
Jun 12 12:51:17 debian NetworkManager[1379]: <info> (eth0): carrier now ON (device state 1)
Jun 12 12:51:17 debian kernel: [ 1381.955834] atl1c 0000:02:00.0: irq 28 for MSI/MSI-X
Jun 12 12:51:17 debian kernel: [ 1381.955929] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
Jun 12 12:51:17 debian dhclient: Listening on LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:51:17 debian dhclient: Sending on   LPF/eth0/f4:6d:04:b5:db:7c
Jun 12 12:51:17 debian dhclient: Sending on   Socket/fallback
Jun 12 12:51:19 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Jun 12 12:51:28 debian kernel: [ 1392.308209] eth0: no IPv6 routers present
Jun 12 12:55:55 debian ntpd[1916]: Deleting interface #8 eth0, 192.168.1.126#123, interface stats: received=0, sent=0, dropped=0, active_time=600 secs
[свернуть]

Затем я его подключил к ещё одной сети (dd-wrt), она даже законнектилась (после ifdown и ifup) и даже получилось установить ssh-соединение, однако счастье было недолгим - через время порядка минуты соединение безвозвратно исчезло. Логи сервера показать не могу, ибо в dd-wrt они не ведутся.