Debian 7.1 на Lenovo G580. Скачал драйвер http://www.orbit-lab.org/kernel/compat-wireless-3-stable/compat-wireless-3.6.8-1-snpc.tar.bz2, поставил по инструкции.
# lsmod | grep alx
alx 64851 0
# dmesg | grep alx
[ 4.815475] alx: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.815952] alx 0000:02:00.0: DMA to 64-BIT addresses
[ 4.816017] alx 0000:02:00.0: setting latency timer to 64
[ 4.816104] alx 0000:02:00.0: (unregistered net_device): HW Flags = 0x15
[ 4.816659] alx 0000:02:00.0: (unregistered net_device): reset PHY, pws = 1, az = 0, ptp = 0
[ 4.818060] alx 0000:02:00.0: (unregistered net_device): speed = 0x2f, autoneg = 1
[ 4.819442] alx 0000:02:00.0: irq 42 for MSI/MSI-X
[ 4.819945] alx: Atheros Gigabit Network Connection
Пытаюсь получить IP по DHCP, /etc/network/interfaces делаю таким:
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
Получаю:
# ifup eth0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]https://www.isc.org/software/dhcp/[/url]
Listening on LPF/eth0/20:89:84:93:06:6f
Sending on LPF/eth0/20:89:84:93:06:6f
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Пытаюсь прописать статический IP, /etc/network/interfaces:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 94.188.37.10
netmask 255.255.255.0
network 94.188.37.0
broadcast 94.188.37.255
gateway 94.188.37.1
dns-nameservers 194.8.160.90 195.131.52.130
auto eth0
Имею следующее:
# /etc/init.d/networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...ifup: interface eth0 already configured
done.
# ifconfig
eth0 Link encap:Ethernet HWaddr 20:89:84:93:06:6f
inet addr:94.188.37.10 Bcast:94.188.37.255 Mask:255.255.255.0
inet6 addr: fe80::2289:84ff:fe93:66f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1304 errors:0 dropped:0 overruns:0 frame:0
TX packets:544 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:104264 (101.8 KiB) TX bytes:120461 (117.6 KiB)
Interrupt:16
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:16436 Metric:1
RX packets:491 errors:0 dropped:0 overruns:0 frame:0
TX packets:491 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:299688 (292.6 KiB) TX bytes:299688 (292.6 KiB)
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 94.188.37.1 0.0.0.0 UG 0 0 0 eth0
94.188.37.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
# ping 94.188.37.10
PING 94.188.37.10 (94.188.37.10) 56(84) bytes of data.
64 bytes from 94.188.37.10: icmp_req=1 ttl=64 time=0.043 ms
64 bytes from 94.188.37.10: icmp_req=2 ttl=64 time=0.038 ms
64 bytes from 94.188.37.10: icmp_req=3 ttl=64 time=0.039 ms
# ping yandex.ru
ping: unknown host yandex.ru
Напрягает проследняя строка в netstat.
#route del -net 169.254.0.0 netmask 255.255.0.0 eth0
#route add -net 127.0.0.0 netmask 255.0.0.0 lo
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 94.188.37.1 0.0.0.0 UG 0 0 0 eth0
94.188.37.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
root@vain:/etc/network# ping yandex.ru
ping: unknown host yandex.ru
Файл /etc/resolv.conf:
nameserver 194.8.160.90
nameserver 195.131.52.130NetworkManager отключен.
Подскажите что делать?