LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-07-2004, 05:22 PM   #1
d4harvey
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Fedora Core 1 - 5
Posts: 99

Rep: Reputation: 15
setup of IP addy, localhost, and rsh


OK we have two boxes both running FC1

I need to setup of the IP addy of each box to be static (LAN ADDY) and to understand the meaning of localhost.

currently i have it setup as follows on box A:

IP = 192.168.0.2
subnet = 255.255.255.0
name = node0

the hosts file looks like this:

192.168.0.2 node0 localhost
192.168.0.5 node1

the hosts.equiv file looks like this:

localhost
node1

ON BOX B:

IP = 192.168.0.5
subnet = 255.255.255.0
name = node1

the hosts file looks like this:

192.168.0.5 node1 localhost
192.168.0.2 node0

the hosts.equiv file looks like this:

localhost
node1


I currently can log in via rsh from box A to box B, but not from box B to box A. I could you some explanation as to the meaning of localhost and how to correctly set this up

thanks,

DH
 
Old 09-07-2004, 06:54 PM   #2
netopia
LQ Newbie
 
Registered: Sep 2004
Location: Boston, MA
Distribution: fedora core 2
Posts: 28

Rep: Reputation: 15
You're headed in the wrong direction ... /etc/hosts isn't how you tell a computer what its own IP is, it's used for resolving domain names. (When you try to resolve a domain name typically your computer looks at hosts first, then goes to a DNS server, although that order can be reversed).

First, look in /etc/sysconfig/network to set the computer's boot-time host name. (The hostname command sets it at run-time).

Next, look in /etc/sysconfig/networking/devices to set the boot-time IP addresses for each network adapter in your linux box.

Finally, stop messing around with /etc/hosts What you really want to do is get a DNS server set up which is beyond the scope of this problem. barring that, first, don't mess with the localhost line in your /etc/hosts or risk seriously breaking your computer. Second, put one line to refer to the *other* computer in each computer's /etc/hosts. hope this helps...
 
Old 09-07-2004, 08:20 PM   #3
d4harvey
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Fedora Core 1 - 5
Posts: 99

Original Poster
Rep: Reputation: 15
Perhaps you missed what I was asking !!!!!!!!!!!!!!!

I have my IP's set up just fine......... BOX A =192.168.0.2 (which is set up right for the eth0, and I did it in the gui)
BOX B =192.168.0.5 (which is set up right for the eth0, and I did it in the gui)

I have my hosts file set the way it is because I run parallel computing applications that require the identifier for the computer host and the nodes......hence why the local computer had the identifier "node0" .....I need however to get rsh working for a parallel app and it needs to allow for both boxes to be equally accessible from the other...

what I am after is the need to get rsh so that I can move from node1 to node0, as I can already move from node0 to node1.

I am not sure why it works for one box but not for the other........


Regards,

DH

Last edited by d4harvey; 09-07-2004 at 08:21 PM.
 
  


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
rsh localhost - connection refused mstembri Linux - General 11 10-22-2007 09:30 AM
how to setup rsh or configure ssh properly cheeku Linux - Software 5 03-30-2006 07:47 AM
unable to rsh to the localhost majalee Linux - Networking 0 08-20-2004 01:37 AM
rsh : poll: protocol failure in circuit setup haoscar Linux - Software 0 07-20-2004 08:49 PM
rsh localhost : connection refused StressedLemming Linux - Networking 1 11-09-2003 12:20 PM

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

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