您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 华为5700配置实例
同网段内配置基于接口地址池的DHCP服务器示例组网需求如图1所示,某企业有两个处于同一网络内的办公室,为了节省资源,两个办公室内的主机由SwitchA作为DHCP服务器统一分配IP地址。办公室1所属的网段为10.1.1.0/24,主机都加入VLAN10,办公室1使用DNS服务和NetBIOS服务,地址租期30天;办公室2所属的网段为10.1.2.0/24,主机都加入VLAN11,办公室2不使用DNS服务和NetBIOS服务,地址租期20天。配置思路基于VLANIF接口地址池的DHCP服务器的配置思路如下:1.在SwitchA上创建两个接口地址池并配置地址池相关属性,实现DHCP服务器可以根据不同需求,从不同的接口地址池中选择合适的IP地址及其配置参数分配给办公室主机。2.在SwitchA上配置VLANIF接口基于接口地址池的地址分配方式,实现DHCP服务器从基于接口的地址池中选择IP地址分配给办公室主机。操作步骤1.使能DHCP服务2.HUAWEIsystem-view3.[HUAWEI]sysnameSwitchA[SwitchA]dhcpenable4.配置接口加入VLAN#配置GE0/0/1接口加入VLAN10。[SwitchA]vlanbatch10to11[SwitchA]interfacegigabitethernet0/0/1[SwitchA-GigabitEthernet0/0/1]porthybridpvidvlan10[SwitchA-GigabitEthernet0/0/1]porthybriduntaggedvlan10[SwitchA-GigabitEthernet0/0/1]quit#配置GE0/0/2加接口入VLAN11。[SwitchA]interfacegigabitethernet0/0/2[SwitchA-GigabitEthernet0/0/2]porthybridpvidvlan11[SwitchA-GigabitEthernet0/0/2]porthybriduntaggedvlan11[SwitchA-GigabitEthernet0/0/2]quit5.配置VLANIF接口IP地址#配置VLANIF10接口地址。[SwitchA]interfacevlanif10[SwitchA-Vlanif10]ipaddress10.1.1.124[SwitchA-Vlanif10]quit#配置VLANIF11接口地址。[SwitchA]interfacevlanif11[SwitchA-Vlanif11]ipaddress10.1.2.124[SwitchA-Vlanif11]quit6.使能VLANIF接口地址池#配置VLANIF10接口下的客户端从接口地址池中获取IP地址。[SwitchA]interfacevlanif10[SwitchA-Vlanif10]dhcpselectinterface[SwitchA-Vlanif10]quit#配置VLANIF11接口下的客户端从接口地址池中获取IP地址。[SwitchA]interfacevlanif11[SwitchA-Vlanif11]dhcpselectinterface[SwitchA-Vlanif11]quit7.配置接口地址池的DNS服务和NetBIOS服务#配置VLANIF10接口地址池下的DNS服务和NetBIOS服务。[SwitchA]interfacevlanif10[SwitchA-Vlanif10]dhcpserverdomain-namehuawei.com[SwitchA-Vlanif10]dhcpserverdns-list10.1.1.2[SwitchA-Vlanif10]dhcpservernbns-list10.1.1.3[SwitchA-Vlanif10]dhcpserverexcluded-ip-address10.1.1.2[SwitchA-Vlanif10]dhcpserverexcluded-ip-address10.1.1.3[SwitchA-Vlanif10]dhcpservernetbios-typeb-node[SwitchA-Vlanif10]quit8.配置接口地址池中地址租用期限#配置VLANIF10接口地址租用期限为30天。[SwitchA]interfacevlanif10[SwitchA-Vlanif10]dhcpserverleaseday30[SwitchA-Vlanif10]quit#配置VLANIF11接口地址租用期限为20天。[SwitchA]interfacevlanif11[SwitchA-Vlanif11]dhcpserverleaseday20[SwitchA-Vlanif11]quit9.验证配置结果在SwitchA上使用displayippool命令用来查看接口地址池配置情况。[SwitchA]displayippoolinterfacevlanif10Pool-name:Vlanif10Pool-No:0Lease:30Days0Hours0MinutesDomain-name:huawei.comDNS-server0:10.1.1.2NBNS-server0:10.1.1.3Netbios-type:b-nodePosition:InterfaceStatus:UnlockedGateway-0:10.1.1.1Mask:255.255.255.0VPNinstance:-------------------------------------------------------------------------------StartEndTotalUsedIdle(Expired)ConflictDisable-----------------------------------------------------------------------------10.1.1.110.1.1.2542531250(0)02-----------------------------------------------------------------------------[SwitchA]displayippoolinterfacevlanif11Pool-name:Vlanif11Pool-No:1Lease:20Days0Hours0MinutesDomain-name:-DNS-server0:-NBNS-server0:-Netbios-type:-Position:InterfaceStatus:UnlockedGateway-0:10.1.2.1Mask:255.255.255.0VPNinstance:-------------------------------------------------------------------------------StartEndTotalUsedIdle(Expired)ConflictDisable-----------------------------------------------------------------------------10.1.2.110.1.2.2542533250(0)00-----------------------------------------------------------------------------配置文件SwitchA的配置文件#sysnameHUAWEI#vlanbatch10to11#dhcpenable#interfaceVlanif10ipaddress10.1.1.1255.255.255.0dhcpselectinterfacedhcpserverexcluded-ip-address10.1.1.210.1.1.3dhcpserverleaseday30hour0minute0dhcpserverdns-list10.1.1.2dhcpservernetbios-typeb-nodedhcpservernbns-list10.1.1.3dhcpserverdomain-namehuawei.com#interfaceVlanif11ipaddress10.1.2.1255.255.255.0dhcpselectinterfacedhcpserverleaseday20hour0minute0#interfaceGigabitEthernet0/0/1porthybridpvidvlan10porthybriduntaggedvlan10#interfaceGigabitEthernet0/0/2porthybridpvidvlan11porthybriduntaggedvlan11#returnheaderDefinetheloginbannerhttpHTTPhwtacacsSetthestatusoftheHWTACACS(HuaweiTerminalAccessControllerAccessControlSystem)servicehwtacacs-serverSetHWTACACSservericmpSpecifyICMPconfigurationinformationicmp-replyEnableICMPreplyfastigmp-snoopingSpecifyparametersforIGMP-Snoopinginfo-centerSpecifyinformationcenterconfigurationinformationinterfaceSpecifytheinterfaceconfigurationviewipIPinformationipv6EnableIPv6functionalityl2-topologyLayer2topologyl2protocol-tunnelLayer2protocoltunnellacpLinkaggregationcontrolprotocollldpLinkLayerDiscoveryProtocolload-balanceSpecifyloadbalancemodeloopback-detectLoopbackdetectfunctionmac-addressMac-addressmac-authenMACauthenticateconfigureinformationmac-forced-forwardingMac-ForcedForwardingmac-learningMAClearningmac-limitMAClimitmac-spoofing-defendMACspoofingdefendmadMulti-activedetectionmanagement-portManagementportmatchedIsCommandcanbematchedbyuppertemplatemld-snoopingSpecifyparametersforMLD-Snoopingmonitor-linkMonitorlinkconfigurationinformationmulticastMulticastconfigurationinformationnapNAPprotocolndNeighbordiscoverynqaNetworkQualityAnalysis(NQA)nqa-jitterSwitchNQAjitterversionnqa-serverSpecifyNQAechoserverntp-serviceSpecifyNTP(NetworkTimeProtocol)configurationinformationoam-mgrOam-mgrviewobserve-portConfigureobservepor
本文标题:华为5700配置实例
链接地址:https://www.777doc.com/doc-2431720 .html