cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
637
Views
0
Helpful
2
Replies

How Data flow will happen between two PCs in a different concern

Hi Guys,
I have a doubt.Let we consider there is company A with Public IP 98.67.125.25 and Company B with Public IP 97.52.32.12. Where each company will have their own private VLAN with same network range Eg: PC D with IP address 10.20.30.2/24 and PC C with IP address 10.20.30.2/24. How they communicate data communication will happen between the PC??
2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

 

Each company needs to NAT the private IPs.

 

Jon

As Jon describes, NAT (or possibly PAT).

Normally, each PC will "see" the other host as having a public IP. In fact, if using PAT, all external hosts to each private address space's hosts will "see" all hosts coming from the public IPs you mentioned. With PAT, each internal PC's flows will be "mapped" to a unique port number (if TCP or UDP). The latter, though, as it's generally assigned dynamically, will make it very difficult for any "external" host to reach an "internal" host, as often hosts generally don't know what port number(s) to use. This can be dealt with if some port numbers are pre-assigned and reserved or just NAT is used with pre-assigned and reserved public IPs that "map" to specific internal host private IPs.

You might also support private IP host to private host IP using some external server that both "register" to. I.e. private IP host to another private IP host communication can be done, across the Internet, but it takes a bit of work.