On 28 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, and in Usenet
newsgroup comp.os.linux.misc in article
<(E-Mail Removed). com>,
(E-Mail Removed)
wrote:
[Please don't multi-post. This article is on topic in comp.os.linux.networking
and therefore should NOT be posted to comp.os.linux.misc, which is for those
subjects that are not on topic in other Linux newsgroups.]
>Im a linux newbie and am trying to configure 2 networks on my computer.
>I have 2 cards with 2 ports each so I bonded eth0 and eth2 to bond0,
>eth1 and eth3 to bond1.
Normally, I wouldn't bring up the third and fourth interface, as they
rarely are going to offer a benefit worth the hassle of configuring them.
>It works fine apart from the fact that I can only define 1 GATEWAY
>which leaves 1 IP to be reachable only threw its own subnet.
Correct. In the normal use in Linux, the word "GATEWAY" refers to that
external router that leads to the world. While it is possible to set
that up (see the Adv-Routing-HOWTO), it isn't common. Do not confuse
the term 'GATEWAY' (to the world) with 'gateway' as used in the 'route'
command and meaning a remote host leading to some other network, or the
ways microsoft uses the word 'Gateway' which is quite inconstant even
in the same windoze routing table.
Here is a more normal Linux routing table using gateways.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
192.168.2.0 192.168.1.6 255.255.255.0 UG 0 0 11695 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 420 lo
0.0.0.0 192.168.1.248 0.0.0.0 UG 0 0 2004 eth0
Here, the local net has two routers. One, 192.168.1.6, is the gateway to
another local network. The second, 192.168.1.248, is the gateway to the
world. To talk to hosts on the 192.168.1.0, no gateway is needed because
they are directly connected to this host, and it can talk directly to them.
Old guy