DHCP服务

DHCP服务

1
2
yum install –y dhcp*	DHCP所需的软件包
cp –p /usr/share/doc/dhcp.4.2.5/dhcp.conf.sample /etc/dhcp/dhcpd.conf 复制模板文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
vim / etc/dhcp/dhcpd.conf

shared-network xxx{ } 超级作用域
subnet 192.168.30.0 netmask 255.255.255.0{
option routers 192.168.30.1; 网关
option nis-domain ‘xxx.com’; NIS域名
option domain-name ‘xxx.com’; DNS域名
option domain-name-servers 192.168.30.254; DNS地址
range dynamin-bootp 192.168.30.10 192.168.30.100; 地址池
default-lease-time 21600 最短租期
max-lease-time 43200 最长租期
}
host client{ 保留
hardwareethernet 00:11:22:33:44:55;
fixed-address 192.168.30.40;
}

欢迎关注我的CSDN个人博客知乎