LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2017, 10:48 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 761

Rep: Reputation: Disabled
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.
 
Old 04-08-2017, 12:24 PM   #2
whynotkeithberg
LQ Newbie
 
Registered: Nov 2013
Location: Murder Dubs... Oakland CA
Distribution: RHEL
Posts: 20

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 04-08-2017, 01:42 PM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,234

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Quote:
Originally Posted by whynotkeithberg View Post
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.
 
Old 04-08-2017, 07:07 PM   #4
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 761

Original Poster
Rep: Reputation: Disabled
Thanks whynotkeithberg!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Multiple networks on Fedora ajaygarg Linux - Networking 6 01-15-2015 09:10 AM
IPtables with multiple networks hall-2k Linux - Security 1 01-05-2010 07:53 AM
Multiple Wireless Networks zmanods Linux - Wireless Networking 2 02-22-2007 07:44 AM
Multiple networks bonebrain Linux - Wireless Networking 3 11-17-2004 10:38 PM
Multiple Wireless Networks - Help! simmond Linux - Wireless Networking 8 08-26-2004 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration