LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 09:48 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

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, 11:24 AM   #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, 12:42 PM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 06:07 PM   #4
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Thanks whynotkeithberg!
 
  


Reply



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 08:10 AM
IPtables with multiple networks hall-2k Linux - Security 1 01-05-2010 06:53 AM
Multiple Wireless Networks zmanods Linux - Wireless Networking 2 02-22-2007 06:44 AM
Multiple networks bonebrain Linux - Wireless Networking 3 11-17-2004 09:38 PM
Multiple Wireless Networks - Help! simmond Linux - Wireless Networking 8 08-26-2004 03:15 AM

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

All times are GMT -5. The time now is 10:33 AM.

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
Open Source Consulting | Domain Registration