第18课,内容(13节末尾,14节)
dhcp服务,动态主机地址更新协议
IP地址
子网掩码
网关
dns
主机名称
作用域:单个地址域 = “地址池”+“排除范围”
超级作用域:多个地址段
排除范围
地址池
租约:50%,75%,100%
reserve,保留地址;
yum install dhcp-server,安装dhcp服务
vim /etc/dhcp/dhcpd.conf,配置dhcp服务配置
ddns-update-style none;
ignore client-updates;
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.200;
range 192.168.10.210 192.168.10.220;
option subnet-mask 255.255.255.0;
option routers 192.168.10.10;
option domain-name-server 192.168.10.10
default-lease-time 21600;
max-lease-time 43200;
hostname xiaohong{
hardware ehernet 00:0c:22:22:00;
fixed-address 192.168.10.88;
}
}
绑定dhcp分配的地址: