Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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:
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.
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.
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.
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?
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?
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.