Здравствуйте! Нужна Ваша помощь.
Стоит Debian 6 Squeeze. Встроенная сетевая работает нормально.
Вставил в PCI слот вторую сетевуху Compex. после перезагрузки появился интерфейс eth1. Настроил его, но он не работает. Ничего не пингуется, пакеты просто отбрасываются.
В чем может быть причина?
Что означаюют :
RTNETLINK answers: No such process ??
/etc/init.d/networking restart is deprecated because it may not enable again some interfaces ??
Логи:
Показать
# The loopback network interface
auto lo
iface lo inet loopback
lspci -v
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Compex FN22-3(A) LinxPRO Ethernet Adapter
Flags: bus master, medium devsel, latency 32, IRQ 22
I/O ports at b800 [size=256]
Memory at f7901000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
05:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller (rev 01)
Subsystem: Intel Corporation Device 307d
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at ff900000 (32-bit, non-prefetchable) [size=4K]
I/O ports at bc00 [size=64]
Capabilities: [dc] Power Management version 2
Kernel driver in use: e100
/etc/network/interfaces
#allow-hotplug eth0
auto eth0
iface eth0 inet static
address 10.0.0.2
HWaddr 00:16:76:1d:ab:4f
netmask 255.255.255.0
netwkork 10.0.0.0
broadcast 10.0.0.255
#dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 172.16.0.1
#dns-search cisco
#Secondary network interface
#allow-hotplug eth1
auto eth1
iface eth1 inet static
address 172.16.0.2
netmask 255.255.255.0
gateway 172.16.0.1
dns-nameservers 172.16.0.1
auto tun0
iface tun0 inet static
address 192.168.100.14
netmask 255.255.255.252
broadcast 192.168.100.255
up ifconfig tun0 multicast
pre-up iptunnel add tun0 mode gre local 172.16.0.2 remote 172.16.0.1 ttl 255
pointopoint 192.168.100.1
pre-down ip r d 172.16.0.0/24 via 192.168.100.1
sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.252 U 0 0 0 tun0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth1
auto lo
iface lo inet loopback
lspci -v
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Compex FN22-3(A) LinxPRO Ethernet Adapter
Flags: bus master, medium devsel, latency 32, IRQ 22
I/O ports at b800 [size=256]
Memory at f7901000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
05:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller (rev 01)
Subsystem: Intel Corporation Device 307d
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at ff900000 (32-bit, non-prefetchable) [size=4K]
I/O ports at bc00 [size=64]
Capabilities: [dc] Power Management version 2
Kernel driver in use: e100
/etc/network/interfaces
#allow-hotplug eth0
auto eth0
iface eth0 inet static
address 10.0.0.2
HWaddr 00:16:76:1d:ab:4f
netmask 255.255.255.0
netwkork 10.0.0.0
broadcast 10.0.0.255
#dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 172.16.0.1
#dns-search cisco
#Secondary network interface
#allow-hotplug eth1
auto eth1
iface eth1 inet static
address 172.16.0.2
netmask 255.255.255.0
gateway 172.16.0.1
dns-nameservers 172.16.0.1
auto tun0
iface tun0 inet static
address 192.168.100.14
netmask 255.255.255.252
broadcast 192.168.100.255
up ifconfig tun0 multicast
pre-up iptunnel add tun0 mode gre local 172.16.0.2 remote 172.16.0.1 ttl 255
pointopoint 192.168.100.1
pre-down ip r d 172.16.0.0/24 via 192.168.100.1
sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.252 U 0 0 0 tun0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth1