Link to home
Start Free TrialLog in
Avatar of ekrisch
ekrisch

asked on

Stations talking to each other?

I have two Pentiums 120, each with one NE2000 netcard connected and I am using Linux Red Hat 4.1. The cards are properly installed and working fine, i.e. the systems are recognizing both. A coax cable has been connected between the two stations. I used Windows 95 to talk to each other and it worked.

My question is: How can I do the same with Linux? What do I have to type and configure and how, so that, for example, I can access on one station a program that is in the other? Or, another example, I can access the directories of the other computer?

Avatar of ekrisch
ekrisch

ASKER

Edited text of question
You would be best reading the NET-2/3-HOWTO document before going any further. Basically, you need to gen support in the kernel and then make changes to files in /etc. The HOWTO explains all this very clearly. Good luck.
Justmake sure you have configured the TCP/IP options on both Linxues and they should talk to eachother.

Avatar of ekrisch

ASKER


Avatar of ekrisch

ASKER

I think you need
- to set hostnames for your stations For instance myhost1 and myhost2
- to assign IP addresses for both stations. For instance 192.168.1.1 for myhost1
   and 192.168.1.2 for myhost2
- to write /etc/hosts file:

#-----------------------------------------------
127.0.0.1      localhost
192.168.1.1      myhost1
192.168.1.2      myhost2
#-----------------------------------------------
- to write /etc/networks file:
-------------------------------------------------
mynetwork      192.168.1.0
--------------------------------------------------
- I am using Debian, so I am not very sure where It is for RedHat
  but I think in /etc/init.d/network for my host1 should be written:
#---------------------------------------------------
ifconfig lo 127.0.0.1
route add 127.0.0.1

ifconfig eth0 192.168.1.1
ifconfig eth0 netmask 255.255.255.0
ifconfig eth0 broadcast 192.168.1.255
route add -net 192.168.1.0
#----------------------------------------------------

this file for myhost2:

#---------------------------------------------------
ifconfig lo 127.0.0.1
route add 127.0.0.1

ifconfig eth0 192.168.1.2
ifconfig eth0 netmask 255.255.255.0
ifconfig eth0 broadcast 192.168.1.255
route add -net 192.168.1.0
#-----------------------------------------------------

- Now your network is configured and you can ping from  myhost1 to myhost2
ping myhost1
or
ping myhost2

- To access another station filesystem you need to configure NFS (Network File System)

- to start applications on another host you can for instance using
  telnet myhost2
Write please if it is what yuo need
Bye

ASKER CERTIFIED SOLUTION
Avatar of olga031697
olga031697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial