Hi all, thanks for reading my post.
I have a fairly minimalist Debian (8.7) setup, basically the DVD install with no additional packages. Trying to learn from the ground up.
I have two ethernet cards eth0 and eth1, both connected to the same switch and to the internet. If it matters, one is internal/PCI, one is PCMCIA. I also have a PCI WLAN card but it is not in use in this scenario.
If I set them to static, my interfaces file is like this:
Code:
iface lo inet loopback
allow-hotplug eth0 eth1
iface eth0 inet static
address 192.168.0.80
netmask 255.255.255.0
gateway 192.168.0.1
iface eth1 inet static
address 192.168.0.90
netmask 255.255.255.0
gateway 192.168.0.1
With this setup, the following happens:
ping 192.168.0.1 WORKS
ping 192.168.0.1 -I eth0 WORKS
ping 192.168.0.1 -I eth1 WORKS
ping bbc.co.uk WORKS
ping bbc.co.uk -I eth0 WORKS
ping bbc.co.uk -I eth1 DOESN'T WORK*
*In this case, the resolution did work, it tried to ping 212.58.244.23 (bbc.co.uk) and failed.
So question 1 - why can I not ping the internet from eth1 in this instance?
The part below this might be irrelevant depending on the answer to the above.
When I set them to dynamic, my interfaces file is as follows:
Code:
iface lo inet loopback
allow-hotplug eth0 eth1
iface eth0 inet dhcp
iface eth1 inet dhcp
Now I have a slightly different situation. They pickup 192.168.0.13 and 0.14 addresses, and everything that works above still works, but now I can only ping bbc.co.uk from eth0 UNLESS eth0 is not connected at boot, in which case I can only ping bbc.co.uk from eth1.
It seems I can only ping "the internet" from one NIC - in the static version, this is eth0, and in the dynamic version it is eth0 if both are connected, or eth1 if only eth1 is connected.
This is probably a really complicated way of asking a much simpler question, but I thought it best to be thorough. Any help is much appreciated, thank you!