LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-13-2006, 10:53 PM   #1
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Rep: Reputation: 15
Wink Peer to peer networking with Slackware?


How do I do this? Can anyone point me to a guide if there's any? I only have 2 computers to setup so I don't want an extra hub for the network. The host has 2 nic while the guest has 1. The host is running Slackware 10.2 and the guest is running WinXP. I also want to share the internet connection with the guest computer. Will I still need Samba to share files between the two? I only want to access files on the guest computer using the host. I don't want the guest to have any privilege on the host system at all. Thanks everyone. =)

Last edited by Andriy; 07-13-2006 at 10:58 PM.
 
Old 07-13-2006, 11:26 PM   #2
happybear
LQ Newbie
 
Registered: Jul 2006
Location: Pilipinas
Distribution: slackware-current
Posts: 16

Rep: Reputation: 1
configure your windows box so that its gateway is the linux box, and you need a firewall script for that, searching in google is the easiest way to acquire one, if you have kde, you will be able to access all shared folders in your winxp box by using konqueror provided you have openldap package installed (im not quite sure about this one, experts correct me if im wrong), you dont have to configure samba if you dont have any plans accessing your files on your host system, hope this will help, goodluck.
 
Old 07-14-2006, 02:15 AM   #3
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Original Poster
Rep: Reputation: 15
ok. do i have to put both boxes on the same subnet? as for the firewall script, is it a special kind of script or do i just need to modify the entry of my iptables?
 
Old 07-14-2006, 08:09 PM   #4
Wintceas
LQ Newbie
 
Registered: Sep 2004
Location: Brazil
Distribution: Slackware - Debian
Posts: 26

Rep: Reputation: 15
Linking 2 computers

Quote:
Originally Posted by Andriy
ok. do i have to put both boxes on the same subnet? as for the firewall script, is it a special kind of script or do i just need to modify the entry of my iptables?
You'll need a RJ45 crossover cable to link the two nics that have to be in the same subnet, for instance:

host: 10.1.1.1 (second card)
guest: 10.1.1.2 (unique card)
subnet mask: 255.0.0.0

Don't use the 192.168.0.0/255.255.255.0 range for the two connected nics, because Windows, when sharing internet connections, will force you to use the 192.168.0.1 address on the card that is connected to your adsl/cable connection. If you choose Linux to do the sharing, I highly recommend SLACKFIRE. It will protected your internal network and will do NAT and IP forwarding for you.
 
Old 07-14-2006, 08:25 PM   #5
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks for the insight. I'll try this later and give you a feedback of what I've achieved.
 
Old 08-16-2006, 06:25 PM   #6
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Original Poster
Rep: Reputation: 15
Hi! It has been a long time. I did it finally, but I was wondering if there is a difference in using the address that Slackware and Winxp assigns by default. See, I want to have the same address for both, the reason is that I want to have the same connectivity even if I switch OS. Can this be done?
 
Old 08-16-2006, 08:34 PM   #7
Wintceas
LQ Newbie
 
Registered: Sep 2004
Location: Brazil
Distribution: Slackware - Debian
Posts: 26

Rep: Reputation: 15
Same address

Quote:
Originally Posted by Andriy
Hi! It has been a long time. [...] Can this be done?
You can assign them the same IP, but I advise you to also designate both with the same name. I had run through some interesting problems (the way Windows handles shares, for instance) when trying to use different names.
 
Old 08-16-2006, 10:28 PM   #8
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Original Poster
Rep: Reputation: 15
I see what you mean, particularly when changing the name of the server since the host has to be reconfigured each time the server switches OS. It has to be done.
 
  


Reply

Tags
networking, peer


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
peer to peer networking troubles Greebstreebling Linux - Networking 9 01-05-2006 07:08 AM
peer to peer networking setup Greebstreebling Linux - Networking 2 01-01-2006 12:57 PM
peer-to-peer networking in Debian Sarge farnell_mark Linux - Networking 1 05-09-2005 09:04 AM
Suse 9.1 peer to peer networking pracslipkerm Linux - Networking 2 03-07-2005 08:17 PM
peer to peer networking in suse linux 8.1 Jonathanedwards Linux - Networking 3 11-01-2004 10:57 PM


All times are GMT -5. The time now is 06:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration