Re: Traffic NOT moving through the correct network interface?



On Thu, 10 Jan 2008, in the Usenet newsgroup alt.os.linux, in article
<oFjhj.37168$EA5.19884@pd7urf2no>, Calab wrote:

Machine is running Debian 4.0r1 2.6.22-3-686. This machine has three network
connections.

and the key is in the routing table (/sbin/route -n).

eth0:
- static IP of 10.0.11.16 with a mask of 255.255.255.0
- connected to a router, which is connected to the rest of my LAN and a
cable modem #1

This ALONE would be OK

eth1:
- dynamic IP
- connected directly to cable modem #2

and you probably expect this to lead to the world - why bother, when
eth0 already fulfills that need.

eth2:
- dynamic IP
- connected directly to cable modem #1

And why should the kernel use this in preference to eth0?

See the Adv-Routing-HOWTO which should be on your system. Any time
you have more than one route that will take you "someplace", the kernel
will choose the one with the lowest metric - and if the metric is equal,
will choose the last one configured.

I've pasted the results from ifconfig below.

Your munging makes the ifconfig information completely useless.

WHAT is going on here? Can someone point me in the right direction as
far as troubleshooting this?

-rw-rw-r-- 1 gferg ldp 297491 Sep 4 2003 Adv-Routing-HOWTO

Person who set up the routing doesn't understand the way networking uses
the word "default" meaning as when NOTHING ELSE applies, use this. You
have three defaults - which one to use?

Old guy
.



Relevant Pages

  • Re: Bind to specify sending NIC on multi-homed computer
    ... There is no lock mechanism for routing table so the best you can ... > Internet was not this popular, corp net was not connected to ... I see an option to use LAN (which could be many cards like on my ... machine now) or various types of dial-up connections. ...
    (microsoft.public.win32.programmer.networks)
  • Re: combining internet connections
    ... > I was wondering if I can use both connections... ... Julian Anastasov's routing patches found here: ... If you are patching your kernel, you may also want to add some functionality ...
    (Fedora)
  • Re: Routing table drops packets via ppp0
    ... >>three network connections. ... >> From the debian box, I can ping other machines connected via the ADSL ... I can see the packets coming in with tcpdump but then they ... > Are you running a routing daemon? ...
    (Debian-User)
  • Re: Traffic NOT moving through the correct network interface?
    ... and the key is in the routing table. ... inbound connections to automatically use this port for the corresponding ... No matter where the packet they are ... How could the network software know what inbound packet spawned them? ...
    (alt.os.linux)
  • Re: Routing table drops packets via ppp0
    ... > three network connections. ... > private network on the 192.168.17.0/24 address range. ... > From the debian box, I can ping other machines connected via the ADSL ... > The routing table looks like: ...
    (Debian-User)