《华为交换机DHCP服务的配置.docx》由会员分享,可在线阅读,更多相关《华为交换机DHCP服务的配置.docx(3页珍藏版)》请在课桌文档上搜索。
1、华为交换机DHCP服务的配置PC1目的:给主机分配ip地址注意:dhcp服务器自己要有ip地址启用dhcp服务排除地址的设置保留地址的设置网关和dns的设置syHuaweidhcpenable启用dhcp服务Huaweiundoinfo-centerenableHuaweiinterfacevlan1Huawei-Vlaniflipaddress192.168.1.124给vlanl配置地址做为要分配的网关Huawei-Vlanifldhcpselectinterfacedhcp选择接口模式(即使用Vlanl接口)Huawei-Vlanifldhcpserverecluded-ip-addre
2、ss192.168.1.200192.168.1.254排除L200到1.254的地址,不分配给客户机Huawei-Vlanifldhcpserverecluded-ip-address192.168.1.2排除单个地址192.168.1.2不分配Huawei-Vlanifldhcpserverstatic-bindip-address192.168.1.88mac-address5489-980B-06FC配置保留地址(192.168.1.88保留给mac地址为5489-980B-06FC的主机pc2),无论他第几个开机,都能获取该ip地址Huawei-Vlanifldhcpserverdns-list114.114.114.114202.102.224.68配置要分配的dns地址Huawei-Vlanifldhcpserverleaseday1hour0minute0配置地址池的租约Huawei-Vlanifl测试: