Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
06-25-2005, 03:37 PM
|
#1
|
Member
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139
Rep:
|
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.
|
|
|
06-25-2005, 04:45 PM
|
#2
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
06-25-2005, 05:17 PM
|
#3
|
Member
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139
Original Poster
Rep:
|
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.
|
|
|
06-25-2005, 05:29 PM
|
#4
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
As requested (and advised), moved to Networking.
|
|
|
06-25-2005, 05:46 PM
|
#5
|
Member
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139
Original Poster
Rep:
|
And one more detail: the pc's are connected through a router.
|
|
|
06-25-2005, 08:19 PM
|
#6
|
Senior Member
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479
Rep:
|
check out this link:
http://www.linuxhomenetworking.com/#Linux%20Main
from personal experience, you want to have a star topology.
have fun!
titanium_geek
|
|
|
06-27-2005, 10:45 PM
|
#7
|
Member
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139
Original Poster
Rep:
|
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.
|
|
|
06-27-2005, 11:46 PM
|
#8
|
Member
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223
Rep:
|
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
|
|
|
06-28-2005, 12:04 AM
|
#9
|
Member
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139
Original Poster
Rep:
|
Artik, thanks! That was it. The firewall on my router is enabled so I guess over doing the security just a little.
|
|
|
06-28-2005, 09:51 AM
|
#10
|
Senior Member
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479
Rep:
|
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
|
|
|
06-29-2005, 04:13 PM
|
#11
|
Member
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139
Original Poster
Rep:
|
Yes, my first post was really not phrased properly. Again, thanks to you and Artik for replying and trying to help.
Best Regards.
|
|
|
07-27-2005, 02:42 AM
|
#12
|
Member
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124
Rep:
|
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.
|
|
|
07-27-2005, 06:14 AM
|
#13
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
07-27-2005, 02:50 PM
|
#14
|
Member
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124
Rep:
|
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...
|
|
|
07-27-2005, 10:27 PM
|
#15
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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 
|
|
|
All times are GMT -5. The time now is 08:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|