title: 03-部署ip与mac绑定
order: 3
icon: lightbulb
准备:请将windows7网卡mac地址复制下来,以备用,本例windows7的mac地址为:00:0C:29:05:2B:F2,本例以将192.168.10.25这个ip分配给windows7
1、接上一步,编辑配置dhcp主配置文件,尾行添加如下内容:
[root@localhost ~]# vi /etc/dhcp/dhcpd.conf
host windows7 { //主机名称
hardware ethernet 00:0C:29:05:2B:F2; //客户端网卡mac地址
fixed-address 192.168.10.25; //指定下发的地址
} //大括号成对出现
2、重启dhcpd服务
[root@localhost ~]# systemctl restart dhcpd
3、验证,网卡重新获取ip地址,在运行窗口输入指令: ipconfig/release释放ip地址,输入指令: ipconfig/renew重新获取ip地址
评论区