[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Сетевуха работает только в promisc режиме



21.05.2012 01:52, Eugene Berdnikov пишет:
> On Sun, May 20, 2012 at 10:50:40PM +0400, "Артём Н." wrote:
>> 20.05.2012 21:00, Eugene Berdnikov пишет:
> ...
>  К сожалению, причины переходов между различными состояниями nm из лога
>  непонятны... :( К тому же присланный лог заканчивается на "stage 2 of 5",
>  возможно, на этом месте nm клинит и это есть бага.

И ещё (после перезагрузки всё работает):
"root@dana:~# ifconfig eth1 -promisc
root@dana:~# chmod +x /etc/init.d/network
networking       network-manager
root@dana:~# chmod +x /etc/init.d/networking
root@dana:~# service network-manager stop
[ ok ] Stopping network connection manager: NetworkManager.
root@dana:~# service networking start
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client
4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/aa:00:04:00:0a:04
Sending on   LPF/eth1/aa:00:04:00:0a:04
Sending on   Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPNAK from 192.168.1.1
Reloading /etc/samba/smb.conf: smbd only.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
Unable to obtain a lease on first try.  Exiting.
Failed to bring up eth1.
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/aa:00:04:00:0a:04
Sending on   LPF/eth1/aa:00:04:00:0a:04
Sending on   Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPNAK from 192.168.1.1
Reloading /etc/samba/smb.conf: smbd only.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
^C^C
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
^C^C^CTerminated
Failed to bring up eth1.

root@dana:~# # Тут я убил dhclient
root@dana:~# ifconfig eth1 promisc
root@dana:~# service networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not
re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP
Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/aa:00:04:00:0a:04
Sending on   LPF/eth1/aa:00:04:00:0a:04
Sending on   Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPNAK from 192.168.1.1
Reloading /etc/samba/smb.conf: smbd only.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
Reloading /etc/samba/smb.conf: smbd only.
bound to 192.168.1.3 -- renewal in 38542 seconds.
ifup: interface eth1 already configured
done.
root@dana:~# ping ya.ru
PING ya.ru (213.180.204.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (213.180.204.3): icmp_req=1 ttl=52 time=30.8 ms
^C
--- ya.ru ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 30.820/30.820/30.820/0.000 ms
root@dana:~# ifconfig eth1 -promisc
root@dana:~# ping ya.ru
^C
root@dana:~# ping ya.ru
ping: unknown host ya.ru"


Reply to: