1、安装
从trutix 3.0的碟中,上传两个RPM文件DHCP_COM.RPM、DHCP_SER.RPM,然后使用rpm -ivh xxxx.rpm安装即可。
2、配置
root@trustix-v22-cvs-001 ~# cat /etc/dhcpd.conf
# Do not claim to rule this network. You want to change this if you really
# want it to work.
not authoritative;
# Do not try to update DNS by default
ddns-update-style none;
#网络
subnet 61.138.209.0 netmask 255.255.255.0 {
range 61.138.209.235 61.138.209.240; #地址范围
default-lease-time 600; #默认租期时间
max-lease-time 3600; #用户可以获得的最长租期时间
option subnet-mask 255.255.255.0; #掩码
option routers 61.138.209.1; #网关
option domain-name-servers 61.166.150.101; #DNS地址
}
#为某个MAC地址绑定IP
host usr1{
hardware ethernet 00:50:8D:5A:9C:E9;
fixed-address 61.138.209.235;
}