实训三十交换机DHCP服务器的配置

上传人:gg****m 文档编号:204998541 上传时间:2021-10-27 格式:DOC 页数:6 大小:63KB
返回 下载 相关 举报
实训三十交换机DHCP服务器的配置_第1页
第1页 / 共6页
实训三十交换机DHCP服务器的配置_第2页
第2页 / 共6页
实训三十交换机DHCP服务器的配置_第3页
第3页 / 共6页
实训三十交换机DHCP服务器的配置_第4页
第4页 / 共6页
实训三十交换机DHCP服务器的配置_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《实训三十交换机DHCP服务器的配置》由会员分享,可在线阅读,更多相关《实训三十交换机DHCP服务器的配置(6页珍藏版)》请在金锄头文库上搜索。

1、实训三十交换机DHCP服务器的配置、实训目的1、了解DHCP原理;2、熟练掌握交换机作为DHCP服务器的配置方法;3、了解该功能的广泛应用。二、应用环境大型网络一般都采用DHCP协议作为地址分配的方法,需要为网络购 置多台DHCP服务器放置在网络的不同位置。为减轻网络管理员和用户的 配置负担,我们可以将支持DHCP的交换机配置成DHCP服务器。三、实训设备1.2.3.4. DCRS-5650-52CT交换机1台PC机1-3台Console线1根 直通网线 若干四、实训拓扑vlanlO五、实训要求vlanl0vlan20为处于不同VLAN的PC机设置DHCP服务器。在交换机上划分两个基于端口的V

2、LAN: VLAN10, VLAN20。配置两个地址池:其中在VLAN1。处,因为工作的需要,特地将一台MAC地址为 00-A0-D1-D1-07-FF 的机器分配固定的 IP 地址 192.168.10.88。六、实训步骤第一步:交换机全部恢复出厂设置,创建vlanlOO和vlan200oswitch(Config)#switch(Config)#vlan 10switch(Config-VlanlO)#switchport interface ethernet 0/0/1-8 !给 vlanlO 加入端口 1-8Set the port EthernetO/O/1 access vlan

3、100 successfully Set the port EthernetO/O/2 access vlan 100 successfully Set the port EthernetO/O/3 access vlan 100 successfully Set the port Ethernet0/0/4 access vlan 100 successfully Set the port EthernetO/O/5 access vlan 100 successfully Set the port Ethernet0/0/6 access vlan 100 successfully Set

4、 the port Ethernet0/0/7 access vlan 100 successfully Set the port Ethernet0/0/8 access vlan 100 successfully switch(Config-VlanlO)#exit switch(Config)#vlan 20switch(Config-Vlan20)#switchport interface ethernet 0/0/9-16 !给 vlan20 加入端口 9-16Set the port Ethernet0/0/9 access vlan 200 successfully Set th

5、e port Ethernet0/0/10 access vlan 200 successfully Set the port EthernetO/O/11 access vlan 200 successfully Set the port EthernetO/O/12 access vlan 200 successfully Set the port Ethernet0/0/13 access vlan 200 successfully Set the port EthernetO/O/14 access vlan 200 successfully Set the port Ethernet

6、0/0/15access vlan 200 successfully Set the port EthernetO/O/16 access vlan 200successfully switch(Config-Vlan20)#exit switch(Config)#第二步:给交换机设置IP地址。switch(Config)#interface vlan 1switch(Config-lf-Vlanl)#ip address 192.168.1.1 255.255.255.0switch(Config-lf-Vlanl)#no shutdownswitch(Config)#interface v

7、lan 10switch(Config-lf-VlanlO)#ip address 192.168.10.1 255.255.255.0switch(Config-lf-Vlanl00)#no shutdownswitch(Config)#interface vlan 20switch(Config-lf-Vlan20)#ip address 192.168.20.1 255.255.255.0switch(Config-lf-Vlan20)#no shutdown第三步:配置DHCPswitch(Config)#service dhcp!启用 DHCPswitch(Config)#ip dh

8、cp pool testA !定义地址池switch(dhcp-testA-config)#network-address 192.168.10.0 24switch(dhcp-testA-config)#lease 0 8switch(dhcp-testA-config)#default-router 192.168.10.1switch(dhcp-testA-config)#dns-server 192.168.1.1switch(dhcp-testA-config)#exit switch(Config)#ip dhcp pool testB switch(dhcp-testB-conf

9、ig)#network-address 192.168.20.0 24switch(dhcp-testB-config)#lease 0 1switch(dhcp-testB-config)#default-router 192.168.20.1switch(dhcp-testB-config)#dns-server 192.168.1.1switch(dhcp-testB-config)#exitswitch(Config)#第四步:验证实训。使用“ipconfig/renew”命令在PC的dos命令行中检查是否得到了正确的IP第五步:为特殊的PC配置地址池switch(Config)#ip

10、 dhcp excluded-address 192.168.10.77192.168.10.99!设定排除地址池中的不用于动态分配的地址switch(Config)#ip dhcp pool testCswitch(dhcp-testC-config)#host192.168.10.88!手工绑定地址时,分配给指定客户机的用户的IP地址switch(dhcp-testC-config)#hardware-address00-a0-dl-dl-07-ff!手工分配地址时,指定用户的硬件地址switch (d hcp-testC-conf ig)#defa u It-router 192.168

11、.10.1 switch(dhcp-testC-config)#exit 第六步:验证实训。七、注意事项和排错1、先启动DHCP服务器;2、DHCP客户机连接在交换机上,却获得不到IP地址。遇到这种情况请检测DHCP Server内是否有与交换机VLAN接口在一个网段的地址池,如没有则清添加 该网段的地址池;3、在DHCP服务中,动态分配IP地址与手工分配IP地址的地址池是 互斥的,即如果在一个地址池执行命令network和命令host时,只能有一个生效;并 且在手工地址池中一个地址池内只能配置一对IP-MAC的绑定,如果需要 建立多对绑定,可以建立多个手工地址池,在每个地址池分别配置IP-M

12、AC 的绑定,否则在同一地址池内配置新的配置会覆盖旧的配置。八、配置序列略九、课后练习1、请给交换机划分三个vlan,验证DHCP实训,地址池分别为 10.1.10.0/24,10.1.20.0/24, 2、配置 www 服务器为 10.1.10.88/24;配置 serverl为 10.130.33/24o十、相关配置命令详解DHCP服务器配置任务序列1. 启动/关闭DHCP服务器功能2. 配置DHCP地址池(1) 创建/删除DHCP地址池(2) 配置动态DHCP地址池的参数(3) 配置手工DHCP地址池的参数3. 启动记录地址冲突的日志功能4. 配置发ping包的个数和超时时间启动/关闭DHCP服务配置DHCP地址池(3)配置手工DHCP地址池的参数启动记录地址冲突的日志功能

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号