参数名称 | 值 |
默认租约时间 | 21600 |
最大租约时间 | 43200 |
IP地址范围 | 192.168.21.10 192.168.21.201 |
子网掩码 | 255.255.255.0 |
网关地址 | 192.168.21.254 |
dns服务地址 | 192.168.21.254 |
搜索域 | linuxprobe.com |
动态
1 配置虚拟机网络类型 2 配置dhcp服务端的ip地址 3 配置客户机的网卡 4 配置服务端的配置文件 vim /etc/dhcp/dhcp.conf 将下图的参数写入到dhcp.conf文件中
图示如下
固定
1 查看要绑定ip地址的主机mac地址
2 将绑定物理地址的语句加入到dhcp配置文件中
3 重启服务
原ip
修改过后的ip