我的NIS报告 --添加linux client 到 NIS DOMAIN[1]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:


[size=18:504d4d7d37][b:504d4d7d37]1)LOGIN NIS MASTER SERVER  登陆到SOLARIS NIS 主机 [/b:504d4d7d37][/size:504d4d7d37]

System time Mon Jun 16 16:00:27 CST 2003
System info: SunOS star 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-5_10
Log-on info: richard @ star
richard@<star: 1> su 

成为超级用户 ROOT

>domainname 
yourdomain.com 

root@<star: 3> vi /etc/hosts 
编辑 NIS MASTER 的 HOST TABLE
 
192.168.1.201   star            Primary NIS
192.168.1.200   moon            Secondary NIS
X.X.X.X  
192.168.1.216   mavericks       Blade1000
192.168.1.217   spurs           sf280r
192.168.1.218   nets            sf280r
192.168.1.199   solaris86       solarisx86
192.168.1.198    rh01           redhat linux

加入Linux 的IP 地址 和主机名。(LOGIN LINUX BOX) 

1.1) Red Hat Linux Advanced Server release 2.1AS/i686 (Pensacola)
login: eda
Password:
Last login: Mon Jun 16 16:41:17 on :0
[root@rh01 eda]# tcsh
[eda@rh01 eda]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:05:5D:62:12:E4
          inet addr:192.168.1.198  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10162 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6237 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12735963 (12.1 Mb)  TX bytes:413551 (403.8 Kb)
          Interrupt:11 Base address:0xc400
          
 
[b:504d4d7d37]2)Login Linux BOX 登陆到LINUX 主机[/b:504d4d7d37]

Red Hat Linux Advanced Server release 2.1AS/i686 (Pensacola)
login: eda
Password:
Last login: Mon Jun 16 16:41:17 on :0
[eda@rh01 eda]$ su
Password:

2.1)编辑 linux HOSTS table  vi /etc/hosts
# Valid entries are
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       rh01    localhost.localdomain   localhost

192.168.1.198   rh01

192.168.1.201  star   nis matser  --把NIS MASTER 和SALVE 都加进来。
192.168.1.200  moon   nis salve

2.2)编辑 /etc/yp.conf 
vi /etc/yp.conf


# /etc/yp.conf - ypbind configuration file
# Valid entries are
#
#domain NISDOMAIN server HOSTNAME
#       Use server HOSTNAME for the domain NISDOMAIN.
#
#domain NISDOMAIN broadcast
#       Use  broadcast  on  the local net for domain NISDOMAIN
#
#ypserver HOSTNAME
#       Use server HOSTNAME for the  local  domain.  The
#       IP-address of server must be listed in /etc/hosts.
#

本文关键:我的NIS报告 --添加linux client 到 NIS DOMAIN
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top