After googling like a madman and not ever finding the right key words to uncover the correct answer, I'm making this my first post on LQ. I'm not technically a Linux n00b, but routing is like voodoo to me, so I'm appealing to the knowledge of this group.
I've got two CentOS 5.4 servers that share a cabinet. Both have public/external IPs, but they aren't on the same subnet. That means that if I want to transfer data between them, the bandwidth counts against my allotment at my ISP.
So I want to set up their secondary NICs with private IPs in the 192.168.1.x range, connect them to a separate switch, and be able to transfer data between them through the switch, and without going through the public IPs.
So here's what I'm trying to do:
Server A: eth0=192.168.1.101 eth1=220.127.116.11
Server B: eth0=333.333.333.102 eth1=192.168.1.102
I want traffic intended for the 192.x.x.x network to go across the appropriate NICs, and the rest to go out the public IPs.
I've got all the NICs enabled on boot, traffic is flowing nicely out the public IPs. If I'm on Server A and ping its 192 address, it replies. But if I try to ping Server B's 192 address, I get an undeliverable.
What's the right way to make this work? Should I be messing with the ifcfg-eth0 and eth1 files? Or should I be messing with the route?
Thanks in advance for any help!