Routing Subnets – How to Route the Same Subnet in Two Locations/Gateways

layer2layer3routingvlan

Topology

In my current topology, I have two locations linked by a trunk.

Everything on one side of the trunk is Site A, everything on the other is Site B

In the example above, for 10.0.200.4 to talk to 10.0.100.5 it must traverse the trunk because the gateway is on Side A.

My problem is that I have machines on the same subnet in both locations, but I dont want to traverse the trunk if my traffic stays within the site.

I'm sure there is something basic I'm missing here, and OSPF seems like it may be a more complicated solution that I need. Do I make both sides of the trunk gateways? Both are capable of layer 3.

Best Answer

Create two gateways, .1 for Site A and .2 for Site B. Then setup all the machines in Site B to use the .2 gateway and all the machines in Site A to use the .1 gateway. The one rectangle with nothing in it would be the gateway 10.0.100.2 and 10.0.200.2. Then the one rectangle on the left labeled L3 gateway, this will stay the gateway for 10.0.100.1 and 10.0.200.1.

So in this setup you would have to re IP the circle in the top left with 10.0.100.2 and 10.0.200.2 to something else.

Related Topic