Multiple gateways on the same Network

cygan

Distinguished
Feb 23, 2006
6
0
18,510
I am stuck in a networking soup. My client has recently got MPLS installed for connecting his two offices. He has asked me to connect the two networks, so that the server is accessibe from the spoke location.

I shall first describe the two networks (Hub & Spoke). The Hub location has two segments working out on the same physical network i.e 192.168.0.X and 192.162.1.X. The internet router /gateway (192.168.1.1) is also connected to the same physical network. The MPLS gateway (192.168.0.1) also terminates in the same switch. Server in theis location have two network cards each, one catering to the LAN nodes on 192.168.0.x and one for access via the internet on 192.168.1.x. The ip config on 1 server for eg would be:
NIC1 -
ip: 192.168.0.105
SubNet : 255.255.255.0

NIC2 -
ip: 192.168.1.10
SubNet: 255.255.255.0
Gateway: 192.168.1.1
DNS: 202.144.115.4
202.144.66.6

The other office has just the MPLS gateway (192.168.16.1) terminating into a switch, and connected to machines on the segment : 192.168.16.x with a subnet mask 255.255.255.0 and gateway : 192.168.16.1.

We tried pinging one computer at spoke location from the hub location with a machine having a single lan card configured to 192.168.0.207 subnet 255.255.255.0 and gateway 192.168.0.1 and it was successful.

We also tried vice versa from the spoke location with a computer (192.168.16.63, subnet 255.255.255.0 and gateway 192.168.16.1) to the hub computer (the same parameters as mentioned above i.e192.168.0.207, subnet : 255.255.255.0 and gateway192.168.0.1) and that too was a success.
However when we try pinging from the spoke location to the server on 192.168.0.105 (with 1 Nic for LAN: 192.168.0.105/ 255.255.255.0 & the other NIc connected to the internet: 192.168.1.10/ 255.255.255.0 and gateway: 192.168.1.1), it is unsuccessful ( which is logical because the gateway for the machine is 192.168.1.1). I cannot change the setup at the hub location, because there are other issues.The servers also require internet access for users to connect from outside .Is there any way, I can get this working , so that a ping from 192.168.16.63 goes to 192.168.0.105. I also understand that we cannot have two gateways on the same machine since these are disjoint networks.. Is there any way that the traffic for 192.168.0.105 goes right to that machine even if the gateway is on the 192.168.1.x segment? Or any other aternate option? Please help
 

cygan

Distinguished
Feb 23, 2006
6
0
18,510
Thanks for your reply.

The spoke location does not have internet.Presently I am trying to access to one of the servers (with 2 NICS -192.168.0.242 SM: 255.255.255.0 / 192.168.1.242 SM255.255.255.0 GW: 192.168.1.1) at the Hub location

Once they connect I can assign the same through VPN through one of my RRAS .
The computers on 192.168.0.x have internet access through a proxy server which is on 192.168.0.105. except the servers which have two dual nics(as mentioned above)
The ips on the 192.168.0.x network are static. Thanx
 

cygan

Distinguished
Feb 23, 2006
6
0
18,510
Maybe this diagram will explain my situation better.

http://www.cyberganesha.com/downloads/LAN.jpg

I want PC3 & PC4 to access servers 1 &2. (at least server2)

With the present ip, PC2 can access PC3 & PC4.
PC1 & the Servers cannot access PC3 & 4 till a static route is added.
PC3 & PC4 can access PC2 but not PC1 & the servers
Routers 2 & 3 can access each other but not router 1.

Please let me know.

Thanx


 

cygan

Distinguished
Feb 23, 2006
6
0
18,510


Even though I add static routes in pc1 & the servers, I still cannot access thePC1 and the servers from PC3 &4, and that is what I am looking at now. Please suggest.
 
This is hard to say so many variables. First are these real routers or "gateways". Almost every device on the market that is sold to home users is not actually a router. It can only NAT between the networks. You would have to put in port mapping to make this work and it would only partially work because a you only have 1 port at each number...ie you cannot have 2 machines appear to use port 80.

Now if these are actual routers then you likely need to add static routes to them also.....maybe not if you are only using the 192.168.0.x network. But if you are tring to use the 192.168.1.x network then you do need static route in your routers and your mpls provider may also. The mpls provider could just send put a default route into their cloud pointing to your main site.
 

sma

Honorable
Mar 13, 2013
4
0
10,520
Seriously???

Why do you even have 2 subnets at the main office? I assume it is because each of the routers came with a different subnet?

Simple fix... Change router 2's IP address to 192.168.1.2 put a default route on router 2 to point to router 1, Set up specific static route on Router 2 pointing 192.168.16.x to the MPLS, Put static route on Router 1 pointing 192.168.16.x to Router 2. Put all devices at head office on the 192.168.1.0 network.

There is no need for 2 subnets at this office just to connect to the internet which is the only reason why I can see you would have this done because with each server having nics on both it clearly is not for security purposes