歡迎您光臨本站 註冊首頁

linux DHCP服務配置簡要

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

DHCP,動態主機分配協議.

redhat Linux下DHCP的安裝包名稱是dhcp-3.05-3.e15.i386.rpm 安裝好后的配置文件為/etc/dhcpd.conf 默認配置文件沒有任何配置,但是提供了模版可以複製. cp /usr/share/doc/dhcp-3.05/dhcpd.conf.sample /etc/dhcpd.conf 安裝複製后后對dhcpd.conf進行修改. 俺自己的實驗環境修改的效果是 ddns-update-style interim;
ignore client-updates; subnet 192.168.7.0 netmask 255.255.255.0 { #---------設置網路的網段和網關. # --- default gateway
option routers 192.168.7.1; #--------網關
option subnet-mask 255.255.255.0; #-------------掩碼 option nis-domain "domain.org"; #----------nis名稱
option domain-name "domain.org"; #-----------域名
option domain-name-servers 202.96.134.133; #----------------DNS 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 192.168.7.251 192.168.7.254; #--------------地址池
default-lease-time 21600;
max-lease-time 43200; # we want the nameserver to appear at a fixed address
host ns { #------------固定分配IP的主機.
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
其它一些時間參數默認就可以.也可以根據自己的實際需要修改...


[火星人 ] linux DHCP服務配置簡要已經有349次圍觀

http://coctec.com/docs/linux/show-post-47376.html