LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2011, 02:59 PM   #1
liquid_
LQ Newbie
 
Registered: May 2011
Posts: 12

Rep: Reputation: 0
computer visibility in separate networks


I have configured my wiered network this way:

........................................./-----computer1
............................_______/
....................../---|router1|
.........______ /...... --------\
ISP==|switch|..................... \-----computer2
.........------- \
.....................\......______ /-----computer3
......................\---|router2|
............................-------- \-----computer4

comp1 works under win7 or linux, comp3 works under winxp, others work under linux only. How to share something between subnets? Do I need samba? How to make comps visible to each other?
 
Old 09-26-2011, 03:06 PM   #2
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Why have two routers? If you want the computers on the same network their should be 1 router connected to the ISP connection, and then the switch plugged into the router, and finally the computers all connected to either the single router or switch. That is of course the standard setup, if you have a good reason to be using the 2 routers you'd need to get a VPN setup (check out OpenVPN) but don't expect it to be easy to get running correctly.
 
Old 09-26-2011, 03:06 PM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

Can I ask why you are using two routers? You should use one router after your modem connection, then use the switch off of your router to add more devices to your network.

Cheers,

Josh
 
Old 09-26-2011, 03:11 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by liquid_ View Post
I have configured my wiered network this way:

........................................./-----computer1
............................_______/
....................../---|router1|
.........______ /...... --------\
ISP==|switch|..................... \-----computer2
.........------- \
.....................\......______ /-----computer3
......................\---|router2|
............................-------- \-----computer4

comp1 works under win7 or linux, comp3 works under winxp, others work under linux only. How to share something between subnets? Do I need samba? How to make comps visible to each other?
To take your questions one at a time:
  1. What do you mean by "share something"?? If you mean have a drive mounted so you can copy files to/from, that's far different than being able to send a file via FTP, or display a web page.
  2. Do your Windows boxes have NFS client software on them? If so, you can use native NFS for both Linux and Windows. If not, you need Samba, unless your 'share' criteria means sending a few files at a time.
  3. What do you mean by "visible"? To the outside world, or within your LAN? You don't say how your LAN is structured, or how you have things routed now, so it's hard to say.
 
Old 09-27-2011, 10:39 AM   #5
liquid_
LQ Newbie
 
Registered: May 2011
Posts: 12

Original Poster
Rep: Reputation: 0
1. Why two routers? - ISP gives me two IP addresses each of which measures about 10Mb/s. In case when all my family users hung on one router (IP address) and I occupied the second they complained on the transfer speed. Thus I have two times 10Mb/s. But that compromised network sharing abilities.
2. Sharing something, I mean files on computers hard drives or printers, not too much.
3. Computer visibility means to me only reachable in my home network, not outside. I guess if I can reach a computer then I can get its shared resources, can't I?
 
Old 09-27-2011, 10:46 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by liquid_ View Post
1. Why two routers? - ISP gives me two IP addresses each of which measures about 10Mb/s. In case when all my family users hung on one router (IP address) and I occupied the second they complained on the transfer speed. Thus I have two times 10Mb/s. But that compromised network sharing abilities.
2. Sharing something, I mean files on computers hard drives or printers, not too much.
3. Computer visibility means to me only reachable in my home network, not outside. I guess if I can reach a computer then I can get its shared resources, can't I?
Again, you don't say what you mean by "share". Again, are you talking about just being able to send a file or two every now and then, or are you talking about having a drive mounted? Again, do you have NFS client software for Windows, since that'll determine if you need Samba or can use NFS.

Currently, can you ping computer4 from computer1?? Are the two routers visible to each other? What subnet(s) do you have defined?
 
Old 09-27-2011, 04:33 PM   #7
liquid_
LQ Newbie
 
Registered: May 2011
Posts: 12

Original Poster
Rep: Reputation: 0
1. No, I don't have NFS on Win workstations
2. Sharing - I mean mounted drive or printer connected locally to another computer
3. No, I can't ping comp4 from comp1
4. Subnets have these gateways (outside/inside): xxx.xxx.xxx.131/192.168.0.1, xxx.xxx.xxx.141/192.168.24.1
 
Old 09-28-2011, 10:18 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by liquid_ View Post
1. No, I don't have NFS on Win workstations
2. Sharing - I mean mounted drive or printer connected locally to another computer
Ok..then you will need to set up Samba on one of your Linux workstations. Google can point you to MANY easy-to-follow guides to get things up and running. These should get you started:
http://www.faqs.org/docs/Linux-HOWTO/SMB-HOWTO.html
http://www.samba.org/samba/docs/man/...n/install.html

You can probably skip the installation/compile notes, since the packages are either already installed, or can easily BE installed using your online repositories. You still don't say what version/distro of Linux, so it's hard to tell you how.
Quote:
3. No, I can't ping comp4 from comp1
4. Subnets have these gateways (outside/inside): xxx.xxx.xxx.131/192.168.0.1, xxx.xxx.xxx.141/192.168.24.1
Then you have to configure your routers to allow this connection. Are the two routers hooked together? And several others have asked a good question as to WHY two routers. 99% of SOHO routers these days are gigabit, and it would take a good bit of work to saturate a link, or overload one, especially with standard home use. If you absolutely NEED two routers, then hook the two together (either wired or wirless), and create a route from the 192.168.0 network to the 192.168.24 network. From there, machines on both subnets will know where to look for machines on the other.

At that point, you'll have Samba configured and sharing a drive, and should just have to mount the drive on the different workstations.
 
  


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
2 separate networks, only one has a gateway, routing is not working jojothedogboy Linux - Networking 1 07-07-2011 03:55 PM
how to connect separate home networks? dave247 Linux - Networking 14 12-16-2010 06:05 PM
Do I need to install IPcop on a separate computer JosephS Linux - Distributions 1 06-08-2009 02:36 AM
Run 2 NICs, separate networks liche24 Fedora 1 03-14-2009 11:20 PM
Firewalls for home networks, is separate justified? setiDude Linux - Security 12 10-18-2004 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 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