LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using multiple networks (https://www.linuxquestions.org/questions/linux-newbie-8/using-multiple-networks-4175603451/)

NotionCommotion 04-08-2017 09:48 AM

Using multiple networks
 
The following configuration works as desired. The Pi runs a c++ client which communicates with the industrial computer, and periodically sends data to the remote server.
  • RT-AC68U Router with IP 192.168.1.1.
  • Raspberry Pi3 with static eth0 IP 192.168.1.200.
  • Industrial computer with IP 192.168.1.210.
  • Remote server with IP 987.65.43.21.

Now, instead of giving the industrial computer an IP of 192.168.1.210, it has an IP of 10.120.11.5. All other settings remain unchanged. How could the same functionality be performed. Note that the Pi has both a eth0 and wlan0 interface should both be needed.

whynotkeithberg 04-08-2017 11:24 AM

You would need a VLAN on the LAN portion of the router. Then you'd need an interface on the router with a gateway address for 10.120.11.0 network. Then set the default gateway of your industrial computer to that gateway (say 10.120.11.1) and then each network will use its default gateway of the Router to send traffic to one another.

Rickkkk 04-08-2017 12:42 PM

Quote:

Originally Posted by whynotkeithberg (Post 5694321)
You would need a VLAN on the LAN portion of the router. Then you'd need an interface on the router with a gateway address for 10.120.11.0 network. Then set the default gateway of your industrial computer to that gateway (say 10.120.11.1) and then each network will use its default gateway of the Router to send traffic to one another.

+1 ... This should do the trick.

Cheers.

NotionCommotion 04-08-2017 06:07 PM

Thanks whynotkeithberg!


All times are GMT -5. The time now is 01:52 AM.