shared drive between two separate networks

zerok00l23

Reputable
May 5, 2014
1
0
4,510
I have two independent networks each with own modem, router, and switch. Ex. one network 10.241.1.0/28 and one network 10.241.2.0/28. I'm trying to introduce a shared drive between the two networks, it only has one LAN port so if I connect it to one network, how can I make it visible to the other? Do I need a router between the switches or can I use a third switch (Layer 3?)?
 
A layer 3 switch would likely provide the fastest performance. In either case you are going to have to redesign your network. In the simple case of putting a real router..ie no nat between the networks you will either have to put static routing in the routers or the end machine. Lets say your shared device has ip 10.241.1.3. The devices on the 10.241.1.x network will be fine. The devices on the 10.241.2.x network must somehow have their traffic directed to the device providing connectivity between the networks. Then the 10.141.1.3 device must know to send the data back though this connecting device.

There is not really simple way to do this because of having 2 default routes to the internet. The simplest solution would be to have your layer 3 switch be the gateway for both subnets and then using a sourced based route send traffic going to the internet to the proper external router based on its source address. Sourced based routing is not the best thing to be doing but it does work.