There are two ethernet adapters on my system:
Code:
$lspci | grep Ethernet
00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0c.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
The first one is located on the main board and connects the router. The second one is a PCI card which will be connected to a Brother HL-5350DN network printer by a crossed ethernet cable.
Content of /etc/network/interfaces:
Code:
# Loopback
auto lo
iface lo inet loopback
# Router
auto eth0
iface eth0 inet dhcp
# Printer
auto eth1
iface eth1 inet static
address 192.168.2.5
netmask 255.255.255.0
Unfortunately, the host 192.168.2.5 acts just like a loopback device. Even when no cable is fitted into the eth1 adapter I get the following result:
Code:
$ ping 192.168.2.5
PING 192.168.2.5 (192.168.2.5) 56(84) bytes of data.
64 bytes from 192.168.2.5: icmp_req=1 ttl=64 time=0.041 ms
64 bytes from 192.168.2.5: icmp_req=2 ttl=64 time=0.041 ms
64 bytes from 192.168.2.5: icmp_req=3 ttl=64 time=0.039 ms
There is no traffic on the device eth1 indeed:
Code:
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:41:86:85:81:0c
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11197 errors:0 dropped:0 overruns:0 frame:0
TX packets:10582 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9570615 (9.1 MiB) TX bytes:1164352 (1.1 MiB)
Interrupt:18
eth1 Link encap:Ethernet HWaddr 00:01:20:9a:c7:b2
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
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)
Interrupt:16 Base address:0xe000
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:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18316 (17.8 KiB) TX bytes:18316 (17.8 KiB)
Please tell me, what is wrong with this configuration?