DHCP 服务器安装与初始配置

#!/bin/bash

yum -y install dhcp;

cat /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example>/etc/dhcp/dhcpd.conf;

#config

default-lease-time 60   #seconds

max-lease-time

option domain-name-servers ip1,ip2 #client DNS

option routers   #路由器IP


#config

ddns-update-style none;

ignore client-updates;

default-lease-time 259200;

max-lease-time 518400;

option routers 192.168.100.254;

option domain-name "geeboo.com";

option domain-name-servers 218.85.152.99,218.85.157.99;

subnet 192.168.100.0 netmask 255.255.255.0 {

range 192.168.100.101 192.168.100.200;

host win7cient{

   hardware ethernetxx:xx:xx:xx:xx;

   fixed-address 192.168.100.110;

}

}

你可能感兴趣的:(DHCP 服务器安装与初始配置)