Static Route...Port Forward or just help

Associate
Joined
8 May 2021
Posts
3
Location
UK
After some help regards devices on different subnets etc. This is actually an industrial application but no idea what forum to ask the question. In general I have dealt with this issue with dual nic pc's and assigning each card with different ip address and subnets.
I now have a application where I can't have a pc, is there a device that can span two networks but allow you to route to the device...
I know probably makes no sense example below....
Network 1:- device 1 192.168.1.1
Device 2 192.168.1.2

Network 2:-
Device 1;- 192.168.38.1
Device 2:- 192.168.38.2
Device 3:- 192.168.38.3

So for an example I need to communicate with a server on a port on 192.168.1.1:4048 but from the device 192.168.38.1. Is there such a bridge device or a managed switch or something thay can be configured? Is it possible to be on the 192.168.38.3 Device and access a web server on 192.168.1.2?

Cheers
Ant
 
You need a router or a layer 3 switch. Surely both networks are configured on your router already? If so does it allow the traffic through at all? What brand is it?
 
is there a device that can span two networks but allow you to route to the device...

Hi Ant, welcome to the forums. Not to sound facetious, but you're literally describing... a router. All a router is, is a device designed to link two or more otherwise separate networks together. As ChrisD says, a layer 3 switch will also work, but for simplicity's sake a router will probably be easier/better. How are they set up at present?
 
Thanks for your replies, I know your probably right this is probably simple. I have done a sketch link below the dotted box is where I need to translate the IP address and the dotted arrow is where I need to communicate between.

20210629-074815.jpg


It's the description of what I'm looking for to buy, is this a NAT router? I have found this on Weidmuller.....I think its what I need https://catalog.weidmueller.com/pro...6A6A461?productId=([1489940000])&page=Product

But it would be good if I can find a cheap example to test the theory (an Amazon special)

Is this possible or am I totally off track.

Cheers,
Ant
 
You can achieve this using VLANs but you need a managed switch. If you're using an unmanaged switch if it's Windows as a temp fix you can add a secondary IP in the secondary range to the primary NIC..
 
There's a few extra things to consider.

Is it only the 192.168.38.1 PLC device that needs to talk to the 192.168.1.3 device, or will things on the main network also be talking to it?

Are you able to set up static routes (or any other custom configuration) on the 192.168.38.1 PLC device?

Is the 192.168.1.x subnet in use anywhere else in the network (in particular by things that will need to communicate with any of the kit in the diagram)?

You mention connecting to a web server on 192.168.1.2 - is it only http that the devices will be using to communicate?

Looking at the diagram, you've got two interfaces 192.168.1.2 and 192.168.1.3 on the same device which might lead to problems in itself. Is there a reason you can't set
the 192.168.1.3 interface to 192.168.38.2?
 
Back
Top Bottom