My home network is built as a cable modem with a Netgear router attached, running NAT. Attached to the Netgear router I have a pair of dual-homed servers, and the other side of both servers goes to my main switch, where the rest of my LAN exists. So I essentially have what looks like a DMZ, though I don't offer outside services. (Comcast TOS) My servers route between the LAN and the DMZ - no NAT there.
The idea behind the dual servers is to have redundant fail-over, or at least the ability to come back up quickly. It doesn't really work that way, because my Netgear has a static route to reach my LAN, and it can only point to one of the servers. If that servers goes down, I'll have to get into the Netgear to point the LAN static route at the other server. Plus I have to do this from the server itself, or directly plugged into the Netgear, because at this point the static route won't be working, and my LAN won't be able to get there.
I would like to use an aliased IP as the static route target for the Netgear. That way each server has its own path everywhere, but routing for my LAN all occurs on aliased IPs. I can bring the aliased IPs up and down as needed. I might take an ARP flush, or perhaps just reset the router.
So here's the question... From what I can tell, all I can do is route packets from my LAN on eth0 out to my DMZ on eth1. I can tell the Netgear to send all LAN packets to my aliased IP, which will be eth1 on one of the servers. This looks like it might all work, because it's all traveling over the same ethernet cable, no matter what the IP is. But it doesn't feel right. It feels like I might have packets from the LAN coming out on eth1, from my server's native IP, going to the Netgear and out to Comcast. The return packet comes from Comcast and the Netgear sends it back to the aliased IP on my server, same device.
I guess when routing packets, the IPs of the router don't really matter, as long as you got there and as long as it knows the next hop?
Comments?

