Connect two computers directly via ethernet card

Connect two computers directly via ethernet card

Post by Slav » Fri, 17 Sep 1999 04:00:00



Hi ! if some one can explain to how can i connect two computers
under linux RH 6.0
(Two computers are connected via ethernet interface, i mean that network
adaoters are installed on both computers ).
My question is what should i do to continue ?
Thank's
Regard Slava.
 
 
 

Connect two computers directly via ethernet card

Post by Stev » Fri, 17 Sep 1999 04:00:00


You've got a way to go. You also either need a crossed twisted pair wire
to connect the ethernet cars together or a mini-hub to connect them and
have posibility of other PC's being added via the remaing ports. Look at
any mailorder catalog or PC store, hubs can cost less then $30.

Assign IP addresses and netmasks to the 2 PC's, if you are NOT connected
to the Internet by anything other than a modem - and your question seems
to indicate you aren't - you can use any range of numbers that are
especially for internal networks.

Choose one of the following ranges:
10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

Assign your IP's in the same subnet, i.e. machine one 172.16.1.1 and
machine two 172.16.1.2 .  If using these numbers set the netmask to
255.255.255.0.  Set this using either linuxconf (RH and varients) or
netcfg or whatever tool you distro provides to do this.

Choose which method you want to use to connect and make sure it's
activated.  NFS is native to Linux and can be used to share files, you
have to set up a directory to export and then import it on the other
machine. FTP can be used to transfer files back and forth but requires
you to use an FTP program like GFTP or the command line version ftp.
SAMBA usees a protocl and structure compatable with Windows networking,
it can be a challenge to set up.

Best bet, get a book on networking for Linux and sit down and study it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Quote:> Hi ! if some one can explain to how can i connect two computers
> under linux RH 6.0
> (Two computers are connected via ethernet interface, i mean that
network
> adaoters are installed on both computers ).
> My question is what should i do to continue ?
> Thank's
> Regard Slava.

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Connect two computers directly via ethernet card

Post by Ricardo Wagne » Fri, 17 Sep 1999 04:00:00


Uffff... lots of reading to do as usual with a Linux starter...but you can
begin by saying what is the other machine is . If you are talking about two
linuxes or a linux and a Win box. Try With the Networking-HOWTO.

If two Linuxes, just configure the two machines with IPs of 192.168.1.1
and the second with 192.168.1.2 and use a netmask of 255.255.255.0  Use
Linuxconfiguration for that purpose. Try then PINGing each other.. you
should be running.

Make sure the correct cable connection (you should have done this before
writing your message) and  two proven net cards.


Quote:> Hi ! if some one can explain to how can i connect two computers
> under linux RH 6.0
> (Two computers are connected via ethernet interface, i mean that network
> adaoters are installed on both computers ).
> My question is what should i do to continue ?
> Thank's
> Regard Slava.

 
 
 

Connect two computers directly via ethernet card

Post by Colvi » Fri, 17 Sep 1999 04:00:00


Normal ethernet cables are straight through and are used to connect an
adapter to a hub.  The hub looks after propagating transmitted data from one
adapter to the other adapters connected to the hub.

If you wish to connect two computers using ethernet, without a hub, you need
a special cable called a crossed cable.  This cable connects the transmit
pair of one adapter to the receive pair of the other adapter.

Then configure an ip address in each computer and you should be able to
communicate.

Regards
Bill Colvin


>Hi ! if some one can explain to how can i connect two computers
>under linux RH 6.0
>(Two computers are connected via ethernet interface, i mean that network
>adaoters are installed on both computers ).
>My question is what should i do to continue ?
>Thank's
>Regard Slava.

 
 
 

Connect two computers directly via ethernet card

Post by Omegama » Sun, 19 Sep 1999 04:00:00



> Hi ! if some one can explain to how can i connect two computers
> under linux RH 6.0
> (Two computers are connected via ethernet interface, i mean that network
> adaoters are installed on both computers ).
> My question is what should i do to continue ?

You need a crossover cable to connect the two.  If you have BNC type
connectors you can use a single cable and terminators on each end.
Then read the NET-3 HOWTO to set up a network between the two.

--

System Administrator - Fastband.com