DHCP(red hat enpterprice 5)

2011-2-27

有关DHCP的笔记:

1.DHCP的概念:实现网络主机IP,DNS等网络参数动态分配的网络协议.

2.DHCP安装:

   RED HAT ENTERPRICE 光盘中有DHCPrpm包

   rpm -ivh dhcp-3.0.1*

3.dhcp的配置文件/etc/dhcpd.conf

配置文件:a.声明:   subnet 192.168.1.0 netmask 255.255.255.0 {

                                                range startip endip

                             ----

                                }

                  b.参数: ddns-update-style interim

                              default-lease-time 21600;

                              max-lease-time 43200;

                 c.选项:option domain-name     "domain.com";

                             option domain-name-servers   dns      ;

单独主机IP地址邦定: host 声明如下

  host server1 {

           hardware ethernet   macaddress;

           fixed-address  192.168.1.10;

          option subnet-mask  255.255.255.0;

         option routers           192.168.1.1;

}

dhcp相关配置参照/usr/share/doc/dhcpd*/dhcpd.conf.sample

网络接口配置文件:/etc/sysconfig/netowrk-script/ifcfg-eth0

dhcp地址租用list  /var/libdhcp/dhcp.leases

服务的启动:  service dhcpd start

           状态:    service dhcpd status

 

 

      

本文出自 “年轻的日子” 博客,转载请与作者联系!

你可能感兴趣的:(redhat,dns,DHCP,红帽,主机ip)