[CentOS] Simple routing question

Tue Sep 4 20:51:26 UTC 2012
Les Mikesell <lesmikesell at gmail.com>

On Tue, Sep 4, 2012 at 3:25 PM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:
> On 09/04/12 12:18 PM, James B. Byrne wrote:
>> There are presently two subnets on the lan, and
>>  I believe that the present netmask is correct in these
>> circumstances.
> um, those are both the same?   I assume you meant one of them to be
> different?
> You are correct. I mistyped.
> I have host A with eth0[aaa.bbb.ccc.A] and eth1[192.168.216.A]
> I have host B with eth0[aaa.bbb.ccc.B] and eth1[192.168.209.B]
> and I have host C as the gateway with eth0 being the WAN and eth1
> being the LAN.  Eth1 on C has the address [aaa.bbb.ccc.1] assigned to
> it and has the alias [] as well.
> I want traffic from 192.168.216.A addressed to 192.168.209.B to go to
> eth1 on B.

That should happen directly without C's involvement if the netmask is on A and B's eth1 interfaces.

> Instead it goes to Eth0 on C where it dies as one would
> expect.

Why does C have both internet and LAN addresses on the same interfaces?

   Les Mikesell
     lesmikesell at gmail.com