您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > (4神州数码)路由器DHCP
路由器DHCP配置实验目的:掌握DHCP服务器的配置掌握DHCP客户端的配置掌握DHCP中继代理的配置实验设备1.DCR-1700路由器两台2.PC机一台3.直通线,交叉线若干实验拓扑结构任务一:PC自动获取IP地f0/0192.168.1.1/24DHCPSERVER步骤:1.Router_config#ipdhcpdpool1//定义DHCP地址池2.Router_config_dhcp#network192.168.1.0255.255.255.0//定义网络号码3.Router_config_dhcp#range192.168.1.11192.168.1.20//定义地址范围4.Router_config_dhcp#lease1//定义租期5.Router_config_dhcp#dns-server1.1.1.1//定义DNS服务器地址6.Router_config_dhcp#default-router192.168.1.1//定义默认网关7.Router_config#ipdhcpdenable//启动DHCP服务请从PC机上验证,查看PC机获取的IP地址。任务二:routeArouteBDHCPSERVERE0/1F0/0F0/0E0/1192.168.1.1192.168.2.1自动获取192.168.3.1pc1pc2192.168.1.10192.168.1.1自动获取实验步骤:routeA1.routerA_config#ipdhcpdpool2//创建另外一个地址池routerA_config_dhcp#network192.168.2.0255.255.255.0//创建网络号routerA_config_dhcp#range192.168.2.11192.168.2.20routerA_config_dhcp#lease1routeBrouterB_config#interfacefastEthernet0/0routerB_config_f0/0#ipaddressdhcp//设置端口自动获取IP地址routerB_config_f0/0#showinterfacefastEthernet0/0Interfaceaddressis192.168.2.11/24//验证获取IP地址成功2.ROUTEArouterA_config#iproute192.168.3.0255.255.255.0fastEthernet0/0//添加静态路由routerA_config#ipdhcpdpool3//新建地址池routerA_config_dhcp#network192.168.3.0255.255.255.0//创建网络号routerA_config_dhcp#range192.168.3.11192.168.3.20//定义分配范围routerA_config_dhcp#dns-server192.168.3.100//定义DNS服务器routerA_config_dhcp#default-router192.168.3.1//定义默认网关routerA_config_dhcp#lease1ROUTEBrouterB_config#iproute192.168.1.1255.255.255.0fastEthernet0/0//添加静态路由routerB_config#interfaceethernet0/1//进入DHCP请求接口routerB_config_e0/1#iphelper-address192.168.2.1//设定中继的DHCP服务器地址routerB_config#ipdhcpdenable//开启DHCP服务验证:在PC2上查看获取的IP地址,应该是pool3中的IP地址思考:我若想让pc2获取指定的IP地址,如192.168.3.15,该如何设置?
本文标题:(4神州数码)路由器DHCP
链接地址:https://www.777doc.com/doc-4868787 .html