LinuxQuestions.org
Help answer threads with 0 replies.
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-29-2005, 03:43 AM   #1
SonoranFun
Member
 
Registered: Oct 2004
Posts: 113

Rep: Reputation: 15
Linking three Linux systems together...


I'm running Debian on one, BLAQ on one and Ubuntu on the other.... Is there an easy way to get them talking to eachother? I'm behind a router and I'm not wireless... I'm a noob so I need the easy route please....

THANKS A LOT!
 
Old 06-29-2005, 04:52 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
if what you refer to is creating a LAN of them, heres a quick'n'dirty startupbooster:

replace $MCHN_# with the machine number were dealing with (2, 3, 4, 5, ....), this must be done for every comp in your lan. As root:
Code:
/sbin/ifconfig eth0 add 192.168.0.$MCHN_# broadcast 192.168.0.255
So, now that they all have a unique lan ip address, youre prettymuch set to go.. Just start what daemons you want them to talk with, (eg ftp ssh etc etc...) and use the lan ip to connect.

Last edited by Artanicus; 06-29-2005 at 04:54 AM.
 
Old 06-29-2005, 05:37 AM   #3
SonoranFun
Member
 
Registered: Oct 2004
Posts: 113

Original Poster
Rep: Reputation: 15
I don't get that, can I open ifconfig with something to do this? Once I do I need to use gftp or something like that to get files? How do I know the ip? Do I use my computers IP then change the last number or something.. I really don't get this...
 
Old 06-29-2005, 05:49 AM   #4
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Okies, lets go over it in more detail.. (:

ifconfig is a commandline utility for managing your network configuration. So, to use it, fire up a console / terminal and enter the following commands:
Code:
su
#[enter root password when asked]
/sbin/ifconfig eth0 add 192.168.0.2 broadcast 192.168.0.255
Repeat the same for the rest of the machines, _except_ change the ip we assing by one upwards (192.168.0.3 then192.168.0.4 )

When creating a LAN we assing the machines their ip address.. So thats how we know what t for every machine.. (;

Now, if you want to ftp files over the lan network, you'll need a ftpd running on either of the transaction machines. Look into proftpd, its one of the easiest to set up.

Now, some people are good at remembering ip numbers, but I for one am not.. Thats why I keep track of my lan ips in the /etc/hosts file.
By adding there a few new lines like shown below, yuou can easily contact the machines via these "internal domains"..

Code:
192.168.0.2 debian.mynetwork
192.168.0.3 blaq.mynetwork
192.168.0.4 ubuntu.mynetwork
Ofcourse the entries need to be made on every computer.

A few notes:
- The ifconfig settings you make wont stick on their own. Youll have to add em to some startup script.
- Remember to limit access to your new ftpds with your firewall.
- on ubuntu remember to use their idiotic sudo method of doing root.
 
  


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: Using Linux to backup and recover Windows and Linux systems shshjun LinuxAnswers Discussion 3 12-05-2009 09:42 PM
how linking in linux works juanbobo Programming 10 02-17-2006 11:14 PM
Linking with posix4 on Linux ? colmmagoo Linux - Software 0 08-05-2004 03:24 PM
linking Windows/Delphi/Linux deadlock Programming 3 10-14-2003 05:09 PM
Linking Linux to a intranet webpage... Garfman Linux - Software 0 09-10-2001 06:06 AM

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

All times are GMT -5. The time now is 04:02 AM.

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