《华为交换机DHCP中继的配置.docx》由会员分享,可在线阅读,更多相关《华为交换机DHCP中继的配置.docx(2页珍藏版)》请在优知文库上搜索。
1、华为交换机DHCP中继的配置dhcp中继192.168.10.10目的:服务器跨网段分配工P地址1、配置DHCP服务器2、在中间设备上配置dhcp中继DHCPserver配置:system-viewHuaweisysnameDHCPserver命名交换机为DHCPSerVerDHCPserverundoinfo-centerenableDHCPserverdhcpenableDHCPservervlan10DHCPserver-vlanlOquitDHCPserverintvlan10开启dhcp服务建立Vlanle)进入vlanl接口模式DHCPserver-VlaniflOipaddres
2、s192.168.10.1024给vlanl配置地址DHCPserver-VlaniflOdhcpselectglobal设置DHCP服务为全局模式(即其他网段也可以使用地址池)DHCPserver-VlaniflOquitDHCPserverippool1316建立地址池1316DHCPserver-ip-pool-1316network192.168.20.0mask24池内要分配的地址段为20.0网段DHCPserver-ip-pool-1316gateway-list192.168.20.1要分配的网关为192.168.20.1DHCPserver-ip-pool-1316dns-li
3、st114.114.114.1148.8.8.8要分配的dnsDHCPserver-ip-pool-1316leaseday7地址租期为7天DHCPserver-ip-pool-1316quitDHCPserveriproute-static0.0.0.00.0.0.0192.168.10.1给服务器设置网关DHCPserverJintg00lDHCPserver-GigabitEthernetO0lportlink-typeaccessDHCPserver-GigabitEthernetO0lportdefaultvlan10DHCPserver-GigabitEthernetOOlquit
4、中继交换机的配置:(给VIan配置地址并把端口加入其中)system-viewHuaweivlanbatch1020Huaweiundoinfo-centerenableHuaweiintvlan10Huawei-VlaniflOipaddress192.168.10.124Huawei-VIaniflOJquitHuaweiinterfacevlan20Huawei-Vlanif20ipaddress192.168.20.124Huawei-VIanifZOHuawei-Vlanif20quitHuaweiintGigabitEthernet0/0/1Huawei-GigabitEthern
5、etO0lportlink-typeaccessHuawei-GigabitEthernetO0lportdefaultvlan10Huawei-GigabitEthernetOOlquitHuaweiintGigabitEthernet0/0/2Huawei-GigabitEthernet002portlink-typeaccessHuawei-GigabitEthernet002portdefaultvlan20Huawei-GigabitEthernet002quitHuaweiping192.168.10.1Huaweiping192.168.10.10DHCP中继的配置HuaweidhcpenableHuaweiintvlan20Huawei-Vlanif20dhcpselectrelay/dhcp服务选择中继模式Huawei-Vlanif20dhcprelayserver-ip192.168.10.10指明外网段dhcp服务器的地址Huawei-Vlanif20quit测试: