1. 在双节点的/etc/hosts文件中加入对方及自己的hostname&ip ,如:
   root@RX2640_1:/#more /etc/hosts
192.168.8.193   RX2640_1
192.168.8.251   rac1
192.168.8.194   RX2640_2
192.168.8.252   rac2       
127.0.0.1       localhost       loopback
 
2.如果要做限制用户的信任则在此用户的home目录下建立.rhosts文件,并在此文件中加入信任的主机,如:
root@RX2640_1:/#more .rhosts
rac2
rac1
RX2640_1
RX2640_2
 
3.修改/etc/inetd.conf 文件中的rlogin及remsh项取消注释,即:
 
#bootps      dgram  udp  wait   root /usr/lbin/bootpd   bootpd
#finger      stream tcp  nowait bin  /usr/lbin/fingerd  fingerd
login        stream tcp6 nowait root /usr/lbin/rlogind  rlogind -B /etc/issue
shell        stream tcp6 nowait root /usr/lbin/remshd   remshd
#exec         stream tcp6 nowait root /usr/lbin/rexecd   rexecd
#uucp        stream tcp  nowait root /usr/sbin/uucpd    uucpd
#ntalk               dgram  udp  wait   root /usr/lbin/ntalkd   ntalkd
#auth         stream tcp6 wait   bin  /usr/lbin/identd   identd 
 
4.重新跟新应用修改的inetd.conf文件
root@RX2640_1:/#inetd -c
 
5.测试配置:
#rlogin remotehost
                  	
				
