LinuxQuestions.org
Register a domain and help support LQ
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 05-29-2004, 10:16 PM   #1
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Slackware 13.37, Mint
Posts: 138

Rep: Reputation: 17
computers, crossover cables & internet, Oh My!


If this question has been posted in an another place I apologize, I have looked through the posts and not found what I'm looking for or may of over looked it. If it has been just please post the link and I'll work off of that post. Mean while back to the question. Here is what I'm trying to accomplish and what I have so far.

since I can't put a graphic here to show what I've got I'll try and explain it. 3 computers - 2 with two nics and 1 with one nic and 1 computer with connection to the INTERNET

A has 2 nics
<a1> --> 172.x.y.5
<a2> --> 172.x.y.6
L has one nic
<l1> --> 172.x.y.10
T has 2 nics
<t1> --> 172.x.y.15
<t2> --> 66.xx.yy.zz

<a1> connects to <l1> via X/over cable
<a2> connects to <t1> via X/over cable
<t2> connects to the WWW

What I'm trying to accomplish is to be able to have all 3 system share NFS connections to each other but only have T have incoming access only from several Win2k systems on the 66.x.y.z network. The 2k systems will be logging in and authentication with from T Samba and the information that each user would pull would come from the other 2 systems. The reason for the x/over cables is due to the fact the dept. refused to spend 'any; money on parts for this so I'm having to build this with what is there and no hubs or switches are available.

I'm not sure how to set it up to lock out all incoming traffic to where the only thing anyone will have access to from their 2k boxes is the system they authenticate off(which will be set up to verify the user is supposed to be on that network of computers) of and their specific 'home' folder that would be located on any 1 of the 3 systems. The 2k systems at the present time all have static IP addresses

I know this is pretty convoluted and there is probably a better way of doing this but this is what I've got, any constructive criticism would be greatly appreciated. And, if anyone needs any further information about this please post and let me know, hopefully this will be clear.
 
Old 05-30-2004, 03:00 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Does that setup actually work? It seems to me you're going to have all kinds of problems reaching boxes that you're not directly connected to because you have multiple interfaces on the same subnet plugged directly into different boxes and interfaces (also on the same subnet). You would do well to put each crossover cable connection on it's own subnet (you should need a /30, because IIRC you need one IP for the network number and one IP for broadcast).

So an example would be that two interfaces share 172.16.0.0/30. The first interface has 172.16.0.1, and the second has 172.16.0.2. You shouldn't (again, IIRC) use 172.16.0.0 (because it's the network number) and also don't use 172.16.0.3 (it's the broadcast address). The next crossover connection would be 172.16.0.4/30 and the two IPs would be 172.16.0.[5,6].

Machine A will need to have IP forwarding enabled so that T can pass traffic to L and vis versa. You will probably need a static route on T that points 172.16.0.0/29 to interface t1. The default route for L should point to the IP of a1 and the default route on A should point to the IP of t1. You'll need a firewall enabled on T to prevent traffic from being able to flow all the way through.

As for how to setup the mounts... well, good luck there. Someone with more Samba experience than I will have to help you out.

By the way, a minor nitpick I know, but "WWW" stands for "World Wide Web (of HTML sites)", so what you really mean is t2 connects to the "Internet" (the global Interconnected Network). The WWW is just a sub-set of the Internet, and it refers to websites only.
 
Old 05-31-2004, 09:57 AM   #3
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Slackware 13.37, Mint
Posts: 138

Original Poster
Rep: Reputation: 17
sorry for the slow response 12 hr days being a phone drone take a bit out of a person. Anyway, if I am reading your reply correctly what I did should be correct. My networking skills in this matter are pretty much a bit lacking to say the least, but here is what I 've got.

A has 2 nics
<a1> --> 192.168.x.5
<a2> --> 172.x.y.5
L has one nic
<l1> --> 192.168.x.10
T has 2 nics
<t1> --> 172.x.y.10
<t2> --> 66.xx.yy.zz

<a1> connects to <l1> via X/over cable
<a2> connects to <t1> via X/over cable
<t2> connects to the Internet

This maybe a really fundamental networking question but when you referenced 172.16.0.0/30 that is saying that I can you 176.16.0.1 through 176.16.0.30 correct? Obviously 0 and 31 not usable. And, would that be the same as having a subnet mask of 255.255.255.224?

Last edited by Imyrryr; 05-31-2004 at 11:49 AM.
 
Old 05-31-2004, 12:24 PM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
172.16.0.0/30 (30 network bits, 2 host bits) would be written 255.255.255.252.
 
Old 05-31-2004, 01:16 PM   #5
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 208

Rep: Reputation: 30
usefull ??

Network calculator
http://www.telusplanet.net/public/sparkman/netcalc.htm
 
Old 05-31-2004, 01:45 PM   #6
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Slackware 13.37, Mint
Posts: 138

Original Poster
Rep: Reputation: 17
Very useful for figuring out subnet masks and IP ranges. thank you!
 
Old 06-02-2004, 11:31 PM   #7
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Slackware 13.37, Mint
Posts: 138

Original Poster
Rep: Reputation: 17
Well it seems that I've got one system on and able to access the intranet. I am still not able to see the other systems that I have connected to each other. The system with the 66.x.y.z address is able to access the intranet (this is just fine for now). I changed the system that were connected via crossover cables to a different net (see previous post). What is the really silly stupid thing I'm missing here?

When I say "not able to see" I mean that I'm not able to ping any of them by either IP or name. All of the systems have identical /etc/hosts and the /etc/host.allow have been set to ALL:ALL (for now) and /etc/hosts.deny are currently blank.
 
  


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
2 Computers LAN Crossover Samba azuiden Linux - Networking 1 11-15-2005 06:06 PM
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
configuring knoppix w/internet&crossover bucovaina78 Linux - Networking 1 05-12-2005 09:50 AM
How to setup a lan with CrossOver Cables RHLinuxGUY Linux - Networking 6 04-12-2004 01:38 AM
confused about crossover cables bubba169 Linux - Networking 10 09-02-2002 10:15 AM


All times are GMT -5. The time now is 01:38 AM.

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