 |
我的NIS报告 --添加linux client 到 NIS DOMAIN |
|
| 我的NIS报告 --添加linux client 到 NIS DOMAIN |
|
| 作者:未知 文章来源:网络收集 点击数: 更新时间:2006-3-24 12:33:03
|
[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. # ypserver 192.168.1.201 ----- 加入 YP MATER 的 IP
[1] [2] [3] 下一页
|
|
[ 收藏此页到: 天天|和讯|博采|ViVi|狐摘|我摘|天极 ] 文章录入:kinda 责任编辑:kinda |
|
上一篇文章: 蜘蛛日记(九)::三个UNIX文件时间ctime,mtime,atime(转) 下一篇文章: [转贴]soalris8中prtstat代替top进行性能分析 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |