偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

LINUX下搭建DHCP和NIS服務(wù)器

運(yùn)維 系統(tǒng)運(yùn)維
本文講述的是LINUX下搭建DHCP和NIS服務(wù)器的方法,希望對(duì)您有所幫助。

一. DHCP服務(wù)器配置

1.安裝DHCP服務(wù)軟件包

RHEL4第四張光盤(pán),dhcp-3.0.1-12_EL.i386.rpm

掛載 mount /dev/cdrom /media/cdrom/

安裝DHCP包

rpm -ivh /media/cdrom/RedHat/RPMS/dhcp-3.0.1-12_EL.i386.rpm

2. dhcp.conf配置文件解析

復(fù)制樣例文件到 /etc/

cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf

配置實(shí)例

Ddns-update-style interim;

Ignore client-updates;

Subnet  10.0.0.0  netmask  255.0.0.0  {       

# --- default gateway

        option routers                   “10.0.0.0.1”;

        option subnet-mask              “255.0.0.0”;

#       option nis-domain                “domain.org”;

#       option domain-name              "domain.org";

#       option domain-name-servers       10.0.0.1;

#       option time-offset              -18000; # Eastern Standard Time

#       option ntp-servers              192.168.1.1;

#       option netbios-name-servers     192.168.1.1;

# --- Selects point-to-point node (default is hybrid). Don't change this unless

# -- you understand Netbios very well

#       option netbios-node-type 2; 

        range dynamic-bootp 10.0.0.100 10.0.0.200;

        default-lease-time 21600;

        max-lease-time 43200;

"/etc/dhcpd.conf" 31L, 852C                                   1,1         

        # we want the nameserver to appear at a fixed address

        host ns {

                next-server marvin.redhat.com;

                hardware ethernet 12:34:56:78:AB:CD;

                fixed-address 207.175.42.254;

        }

}
  

#p#

3. 多網(wǎng)絡(luò)接口時(shí)需要配置文件

  /etc/sysconfig/dhcpd

  DHCPDARGS=[網(wǎng)絡(luò)接口] 

4. 啟動(dòng)dhcpd服務(wù)

  Service dhcpd start

5. 客戶(hù)端配置動(dòng)態(tài)獲取IP

二. NIS服務(wù)器配置

1. 安裝NIS服務(wù)軟件包

默認(rèn)安裝NIS服務(wù)器查詢(xún)和管理工具軟件

  ypbind-1.17.2-3

  yp-tools-2.8-7

  NIS服務(wù)器RPM包,位于第一張盤(pán) ypserv-2.13-5.i386.rpm 

2. 啟動(dòng)time和time-udp服務(wù)

   Chkconfig time on

   Chkconfig time-udp on

重啟xinetd

3. 建立NIS域名 

 Nisdomainname nisserver

 啟動(dòng)自動(dòng)加載

 Echo ‘/bin/nisdomainname nisserver’ >> /etc/rc.d/rc.local

 Echo  ‘NISDOMAIN=nisserver’  >>  /etc/sysconfig/network 

4. 設(shè)置ypserv.cond服務(wù)配置文件

(1) ypserv.conf 文件配置“/etc/ypserv.conf”

(2) 手工建立securenets安全配置文件 “/var/yp/securenets”

      Host 127.0.0.1

      255.0.0.0/10.0.0.0 

5. 啟動(dòng)NIS服務(wù)器

啟動(dòng) Portmap ; ypserv ; yppasswdd 三個(gè)服務(wù) 

6. 構(gòu)建NIS數(shù)據(jù)庫(kù)

 /usr/lib/yp/ypinit -m

三. NIS客戶(hù)端配置 

1. 安裝NIS客戶(hù)端軟件包(默認(rèn)已安裝)

   ypbind-1.17.2-3

   yp-tools-2.8-7

2. 設(shè)置hosts文件

   echo ’10.0.0.10  localhost.localdomain’  >> /etc/hosts

3. 建立NIS域名

   Nisdomainname nisclient

   啟動(dòng)自動(dòng)加載

   Echo ‘/bin/nisdomainname nisclient’ >> /etc/rc.d/rc.local

   Echo  ‘NISDOMAIN=nisclient’  >>  /etc/sysconfig/network

4. 設(shè)置yp.conf配置文件

  Echo  ‘domain  [域名]  server  [主機(jī)名] ’  >> /etc/yp.conf 

5. 設(shè)置/etc/nsswitch.conf文件使用NIS

   Passwd:      files nis

   Shadow:      files nis

   Group:       files nis

   Hosts:        files nis dns 

6.啟動(dòng)ypbind服務(wù)

  Portmap ; ypbind啟動(dòng)這兩個(gè)服務(wù) 

7. NIS客戶(hù)機(jī)測(cè)試與NIS服務(wù)器連接

  命令:   yptest  測(cè)試NIS服務(wù)器的域名,主機(jī),數(shù)據(jù)庫(kù),內(nèi)容。

          ypwitch –x  查看NIS服務(wù)器數(shù)據(jù)庫(kù)和映射文件名稱(chēng)

          ypcat –x  同上

8. NIS客戶(hù)端登陸

  提示:登陸失敗,關(guān)閉防火墻。

  命令:service iptables stop

【編輯推薦】

  1. 安裝Solaris后:9個(gè)主要設(shè)置以及NFS和NIS的配置
  2. linux下NIS服務(wù)的配置
  3. Linux NIS Server YPSERV遠(yuǎn)程拒絕服務(wù)攻擊漏洞
責(zé)任編輯:趙寧寧 來(lái)源: DIY部落
相關(guān)推薦

2011-01-07 09:25:35

LinuxDHCP服務(wù)器

2009-09-17 13:23:22

NIS服務(wù)器

2010-08-05 13:56:06

路由器配置

2009-09-17 18:07:51

Nis服務(wù)器

2009-09-17 18:04:42

Nis服務(wù)器

2010-08-25 21:34:15

DHCP服務(wù)器

2010-01-20 10:44:01

linux DHCP服務(wù)器

2009-09-17 17:37:05

Nis服務(wù)器

2009-09-17 18:05:51

Nis服務(wù)器

2010-09-02 14:09:06

LinuxDHCP服務(wù)器

2010-08-23 17:31:23

LinuxDHCP服務(wù)器

2009-09-17 18:09:53

Nis服務(wù)器

2009-09-11 08:49:09

linuxNIS服務(wù)linux配置

2010-09-01 17:15:45

Linux DHCP

2009-08-07 10:05:53

2010-08-25 21:42:57

DHCP服務(wù)器

2009-09-25 10:13:15

2010-08-30 20:16:25

DHCP服務(wù)器

2012-05-09 10:30:29

RHEL5.7DHCP服務(wù)器

2009-09-17 18:02:06

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)