架设dhcpd服务器_Solaris.doc_第1页
架设dhcpd服务器_Solaris.doc_第2页
架设dhcpd服务器_Solaris.doc_第3页
架设dhcpd服务器_Solaris.doc_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

先下载dhcp的软件包,/isc/dhcp/dhcp-4.1.0.tar.gz这个是最新的了.带了不少的feature!然后解包准备安装:rootLinux down# tar zxvf dhcp-4.1.0.tar.gzdhcp-4.1.0/dhcp-4.1.0/client/dhcp-4.1.0/client/Makefile.indhcp-4.1.0/client/clparse.cdhcp-4.1.0/client/dhclient.confdhcp-4.1.0/client/dhclient.leases.5dhcp-4.1.0/client/Makefile.amdhcp-4.1.0/client/dhclient.conf.5dhcp-4.1.0/client/dhclient-script.8dhcp-4.1.0/client/dhc6.c.解包好了,然后进入目录:# cd dhcp-4.1.0# cd dhcp-4.1.0先看一下,在configure的时候,我们可以配置那些需要的options:# ./configure helpconfigure configures DHCP 4.1.0 to adapt to many kinds of systems.Usage: ./configure OPTION VAR=VALUETo assign environment variables (e.g., CC, CFLAGS), specify them asVAR=VALUE. See below for descriptions of some of the useful variables.Defaults for the options are specified in brackets.Configuration:.开始configure:# ./configure with-srv-lease-file=/var/db/dhcpd.leases with-cli-lease-file=/var/db/dhclient.leases with-cli-lease-file=/var/db/dhclient.leases with-srv-pid-file=/var/db/dhcpd.pid with-cli-pid-file=/var/db/dhclient.pid后面的一些选项就是我所需要的!#make & make install结束安装!安装的dhcpd,dhclient在 :/usr/local/sbin/配置文件dhcpd.conf,dhclient.conf在:/usr/local/etc/然后: #ln -s /usr/local/etc/dhcpd.conf /etc/dhcpd.conf下面是我的配置dhcpd.conf:(为了便于配置之后能正确启动,我将我正确的配置复制于下):作为 参考选用:#dhcpd.conf# Sample configuration file for ISC dhcpd# option definitions common to all supported networks.option domain-name ;/我的LAN域名option domain-name-servers L, ;/我的DNS服务器名,#IP也可以default-lease-time 21600;max-lease-time 43200;# Use this to enble / disable dynamic dns updates globally.#ddns-update-style none;# If this DHCP server is the official DHCP server for the local# network, the authoritative directive should be uncommented.#authoritative;# Use this to send dhcp log messages to a different log file (you also# have to hack syslog.conf to complete the redirection).log-facility local7;# No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology.subnet netmask # This is a very basic subnet declaration.#subnet netmask # range 0 0;# option routers , ;# This declaration allows BOOTP clients to get dynamic addresses,# which we dont really recommend.#subnet netmask # range dynamic-bootp 0 5;# option broadcast-address 55;# option routers ,L;#/我的主要配置在这,分配0-50,路由,广播地址和租赁。# A slightly different configuration for an internal subnet.subnet netmask range 0 0; option domain-name-servers ,L; option domain-name ; option routers ; option broadcast-address 27; default-lease-time 6000; max-lease-time 7200;# Hosts which require special configuration options can be listed in# host statements. If no address is specified, the address will be# allocated dynamically (if possible), but the host-specific information# will still come from the host declaration./下面是一些静态配置,我现在不需要用,就没配置,以后会需要改动的。host passacaglia hardware ethernet 0:0:c0:5d:bd:95; filename vmunix.passacaglia; server-name ;# Fixed IP addresses can also be specified for hosts. These addresses# should not also be listed as being available for dynamic assignment.# Hosts for which fixed IP addresses have been specified can boot using# BOOTP or DHCP. Hosts for which no fixed address is specified can only# be booted with DHCP, unless there is an address range on the subnet# to which a BOOTP client is connected which has the dynamic-bootp flag# set.host fantasia hardware ethernet 08:00:07:26:c0:a5; fixed-address ;# You can declare a class of clients and then do address allocation# based on that. The example below shows a case where all clients# in a certain class get addresses on the 10.17.224/24 subnet, and all# other clients get addresses on the 10.0.29/24 subnet.class foo match if substring (option vendor-class-identifier, 0, 4) = SUNW;shared-network 224-29 subnet netmask option routers ; subnet netmask option routers ; pool allow members of foo; range 0 50; pool deny members of foo; range 0 30; 我开始犯的错误是:用/* . */ 将一些注释,但是dhcpd还是读里面的配置资源,所以我推荐用#注释一行一行来注释全部,以下不需要的就保持默认。然后用 /usr/local/sbin/dhcpd 运行d

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论