LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-25-2005, 03:37 PM   #1
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Rep: Reputation: 15
Setting up a small home LAN


I need some help setting up a small home LAN. At the moment, there's only two pc's on the network but I plan to maybe add one or two more pc's in the future. All are, or will be, running SuSE linux.

I know at the very least that I need to add the same users to both pc's and edit the /etc/hosts file on both pc's, But somehow I don't think this is it. So if someone can give me just some quick pointers, or point me to a webside that I can read, I would really appreciate it.

Thanks in advance for you help.

Oh, and I did search this forum as well as the other web sights but couldn't find quite what I'm looking for.
 
Old 06-25-2005, 04:45 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Since the question is more about networking than it is about Suse, you might want to ask that this thread be moved to the Networking forum, which may be suitable for this question. (Just click on the "Report this post to a moderator" link, and ask that it be moved.)

That being said, can you provide more detail about planned network? Will it be using regular cable, will it be wireless, or will it be a combination? Are all the PC's in the same room or are they throughout the house? What functions will the PC's have - typical desktops, print servers, file servers, web servers, firewalls, etc? The better detail you can provide, the better advice people can offer. Good luck with it -- J.W.
 
Old 06-25-2005, 05:17 PM   #3
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks.

It's a simple network using cables. The pc's are vanilla desktops located in seperate rooms. Each pc does have it's own printer, but it would be nice if I could eventually set up so that any pc can access any printer. Oh, and I have the firewall enable for both pc's. Hopefully that's not a problem.
 
Old 06-25-2005, 05:29 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
As requested (and advised), moved to Networking.
 
Old 06-25-2005, 05:46 PM   #5
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
And one more detail: the pc's are connected through a router.
 
Old 06-25-2005, 08:19 PM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
check out this link:
http://www.linuxhomenetworking.com/#Linux%20Main

from personal experience, you want to have a star topology.

have fun!
titanium_geek
 
Old 06-27-2005, 10:45 PM   #7
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Ok, maybe I need to simply my question.

I have two pc's sitting behind a router. Both are running linux and connections to the internet. I can ping one from the other, but for some reason I can't ssh to one from the other. I have a firewall enabled on both pc's. Could this be stopping me from ssh? If not, then what else might be the problem?

Thanks.
 
Old 06-27-2005, 11:46 PM   #8
Artik
Member
 
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223

Rep: Reputation: 30
Defenatly firewall may cause a problem.
To use ssh you need port 22 to be open.

Do you have an option to enable firewall in your router?
It probably would be better to use Firewall in router only and disable local firewalls (unless you want to protect one PC from other)
If you'll want to setup different things like Samba/NFS/CUPS/XDMCP etc... you'll need to open ports for each one... So for home LAN it is better to setup external firewall in router (if you can) and disable internal
 
Old 06-28-2005, 12:04 AM   #9
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Artik, thanks! That was it. The firewall on my router is enabled so I guess over doing the security just a little.
 
Old 06-28-2005, 09:51 AM   #10
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
yep- it does help to explain exactly what you are asking, because other wise it sounds like a)you are a complete newb and need to start at the very beginning(a very good place to start) or b) people don't know what the heck you are talking about and then give you broader replies.

next time- remember to state what you want to know in the question- as well as posting details about your situation.

titanium_geek
 
Old 06-29-2005, 04:13 PM   #11
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Yes, my first post was really not phrased properly. Again, thanks to you and Artik for replying and trying to help.

Best Regards.
 
Old 07-27-2005, 02:42 AM   #12
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Rep: Reputation: 15
Hello

I'm replying to this thread for a similar issue.
I'm trying to get a small home lan.
I have two pc (desktop+laptop) which I'd like to connect.
I've bought a cross rj45 cable; here's what I've done so far:
(on both)
ifconfig eth0 192.168.0.1 netmask 255.255.255.0
(192.168.0.2 on the other one)
then I've checked the routing table, that's like this:
Code:
Kernel IP routing table
Destination	Gateway	Genmask		Flags	Metric	Ref	Use	Iface
my.isp		*	255.255.255.255	UH	0	0	0	ppp0
192.168.0.0	*	255.255.255.0	U	0	0	0	eth0
default		my.isp	0.0.0.0		UG	0	0	0	ppp0
(I have a sub adapter to connect to the internet through ppp0)

What should I do next? I mean, the two pc do not ping each other.

Thanks

Last edited by guldo; 07-27-2005 at 02:45 AM.
 
Old 07-27-2005, 06:14 AM   #13
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If they don't ping each other (using the given IP addresses) maybe they are both running firewalls on their eth0 interfaces, as earlier in the thread.

Once you have them in communication you need to configure the desktop PC (?) as a router, tranferring packets to/from the laptop between eth0 and ppp0. This is usually done with 'iptables'. There's plenty of tutorials on this, e.g.

http://yolinux.com/TUTORIALS/LinuxTu...rkGateway.html

http://www.gentoo.org/doc/en/home-router-howto.xml

Maybe there are even packages these days which will automate the process. Incidentally I think the default route on your laptop should be the router machine.
 
Old 07-27-2005, 02:50 PM   #14
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Rep: Reputation: 15
Thank you for your reply.

After a reboot, I did
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
on both PCs (192.168.0.2 for the other one), so that the routing table is:
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
on both PCs.
I also ran
/etc/init.d/iptables clear
and
iptables -L
to be sure that all policies are set to ACCEPT, on both PCs.

They still do not ping at all.

Looks like I'm missing some piece of config...
 
Old 07-27-2005, 10:27 PM   #15
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Are you sure that's really a crossover cable you're using? Did it come packaged and labelled?

I'm not sure how you tell the difference (apart from the fact that one might work and the other not).
My crossover cable is red, but somehow I don't think that is a reliable test
 
  


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
DISCUSSION: Newbie's Guide to Small Home LAN echo77 LinuxAnswers Discussion 57 10-29-2015 01:56 PM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
name resolution for small lan walterbyrd Linux - Networking 7 10-19-2005 10:30 AM
Setting up a server for home LAN tawalker Linux - Software 0 04-28-2004 10:57 AM
setting up internet in small LAN lukalinuix Slackware 8 02-10-2004 06:28 AM

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

All times are GMT -5. The time now is 08:27 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
Open Source Consulting | Domain Registration