當前位置:編程學習大全網 - 網站源碼 - linux怎麽搭建dhcp服務器

linux怎麽搭建dhcp服務器

用示例文件修改壹下就好了,修改完在啟動服務之前先運行壹下 service dhcpd configtest,看壹下語法有沒有問題

下面是我PXE SERVER的DHCP設定檔:

dhcpd.conf

#iddns-update-style interim;

ddns-update-style none;

ignore client-updates;

allow booting;

allow bootp;

class "pxeclients"{

match if substring(option vendor-class-identifier,0,9)="PXEClient";

filename "linux-install/pxelinux.0";

#filename "linux-install/sles11.1-64/bootx64.efi";

next-server 192.168.0.1;

}

subnet 192.168.0.0 netmask 255.255.255.0{

range 192.168.0.2 192.168.0.254;

option broadcast-address 192.168.0.255;

option routers 192.168.0.1;

option subnet-mask 255.255.255.0;

}

  • 上一篇:vs2015怎麽使用mysql.h頭文件
  • 下一篇:linux啟動過程中這句話 'Red hat nash version 5.1.19.6 stating'是什麽意思?
  • copyright 2024編程學習大全網