LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 07-31-2014, 12:46 PM   #1
t.mwalimu
LQ Newbie
 
Registered: Apr 2014
Location: Boston
Distribution: linux slackeware3.0/Damn Small Linux
Posts: 14

Rep: Reputation: Disabled
Lightbulb How to setup IP addresses for two machine to talk to each other


What is a good ip address that I can make up for a small network of two machines both of the machines has a ethernet card. I read that I could get an IP address from the Network information center but that is far beyond the scope of what I wish to do. I will not be using the internet for the network I'm using Damn Small linux

Last edited by t.mwalimu; 07-31-2014 at 12:50 PM.
 
Old 07-31-2014, 12:51 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
If you have two machines on a switch together,. then you can set them to a standard 2-host /31 network mask:

machine1: 192.168.100.2/31 (255.255.255.254)
machine2: 192.168.100.3/31 (255.255.255.254)

They will only be able to communicate with one another.

If you want room for more hosts, you can move to a larger more standard subnet like a standard /28 which gives you:

Netmask: /28 255.255.255.240
hosts: 192.168.100.1-14
gateway: 192.168.100.0
broadcast: 192.168.100.15

Last edited by szboardstretcher; 07-31-2014 at 12:54 PM.
 
1 members found this post helpful.
Old 07-31-2014, 09:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
From DSL wiki.

ifconfig eth0 xxx.xxx.x.xx
ifup eth0
is the commands you'd use.
The xxx.xxx.xxx.xxx is almost any of two numbers from private IP ranges.
http://support.microsoft.com/kb/142863
Is the common three subnets for IPv4. The subnets in these examples don't even have to be followed.

In reality if they don't have a gateway IP address or not connected to the internet, then you can use any two IP addresses you want. A gateway address would not be needed for your lan subnet just to talk between two computers.

There ways to go way beyond this too.
 
1 members found this post helpful.
Old 09-21-2014, 05:31 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
For 2 computers you could use a crossover cable, no switch needed, just use ssh/scp or rsync between them.
 
1 members found this post helpful.
  


Reply



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
multihomed machine and local IP addresses jayun Linux - Networking 6 08-07-2009 07:37 AM
linux box to talk to 98se machine and wireless ap s0ulburn26 Linux - Server 2 09-23-2007 08:19 AM
talk <username> always goes to the answering machine. Why? srampally Linux - Software 4 06-05-2007 12:05 PM
Is there any tool avialable to talk with a target machine in embedded system?? payal_shah Linux - Networking 2 05-10-2007 06:46 AM
Getting Samba to talk to a Windows Machine taganov Linux - Newbie 3 04-19-2001 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 08:08 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