I have debian 8 with two network cards, eth0
and eth1
.
eth0
is 192.168.3.43 and eth1
is 192.168.3.44.
Both are configured by dhcp:
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
Here's the routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.3.1 0.0.0.0 UG 0 0 0 eth0
192.168.3.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
192.168.3.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
The problem is that if i remove the cable from eth0, i can't ping eth1 even from a machine in the same 192.168.3.x segment.
I would have understood if one of them was in a different segment, since the routing table shows the default gateway lies on eth0, but not when this is happening on the same segment my main machine is.
what do i need to make both cards work independent of each other?