欢迎来到天天文库
浏览记录
ID:51656635
大小:45.00 KB
页数:9页
时间:2020-03-14
《CISCO 路由器中DHCP技术详解.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、此文档收集于网络,如有侵权,请联系网站删除CISCO路由器中DHCP技术详解一、DHCP基本知识点1DHCP协议在RFC2131种定义,使用udp协议进行数据报传递,使用的端口是67以及68。2DHCP最常见的应用是,自动给终端设备分配ip地址,掩码,默认网关,但是DHCP也同样可以给终端设备自动配置其他options,比如DNSserver,域名(比如net130.com),timezones,NTPservers以及其他的配置内容,更有些厂家,利用自己开发的第3放软件,把自己的一些配置信息,利用dhcp协议来实现对终端设备的自动配置。3DHCP服务的系统最基本的构架是cli
2、ent/server模式,并且如果client和server不再同一个2层网络内(即广播可以到达的网络范围),则必须要有能够透过广播报文的中继设备,或者能把广播报文转化成单播报文的设备(cisco的ios就引经了这种功能)TherearethreedistinctelementtypesinaDHCPnetwork.Theremustbeaclientandaserver.IfthesetwoelementsarenotonthesameLayer2network,therealsomustbeaproxy,whichusuallyrunsontherouter.Theprox
3、yisneededbecausetheclientdeviceinitiallydoesn'tknowitsownIPaddress,soitmustsendoutaLayer2broadcasttofindaserverthathasthisinformation.TheroutermustrelaythesebroadcaststotheDHCPserver,thenforwardtheresponsesbacktothecorrectLayer2addresssothattherightenddevicegetstherightconfigurationinformati
4、on.4CISCO的路由器(IOS12.0T1以后),可以配置为dhcp的中继设备,DHCP的客户端设备,也可以配置为DHCP的服务器。5同一个网段DHCP服务器可以有多个,这不会影响终端设备从服务器获取配置信息,终端设备以接受到的第一组配置信息为准。以后又服务器段返回的DHCP配置信息被抛弃。.MostDHCPnetworksofanysizeincludetwoormoreDHCPserversforredundancy.TheenddevicestypicallyjustneedtotalktoaDHCPserveratstartuptime,buttheywillnot
5、workatallwithoutit.Soredundancyisimportant.ThisalsomeansthatitisnotunusualforanenddevicetoseeseveralresponsestoaDHCPrequest.Itwillgenerallyjustusethefirstresponse.However,thisalsounderscorestheimportanceofensuringthatalloftheDHCPserversdistributethesameinformation.Theirdatabasesofenddeviceco
6、nfigurationparametersmustbesynchronized.6DHCP服务器往往遵守先来先服务的规则(first-come,first-served),或者说他能够建立一个IP地址和终端设备MAC地址之间的映射表(或者叫做database),由此可以保证特定的终端(也就是特定的MAC)每次开机后都能够获得此相同的ip地址。.TheservercanallocateIPaddressesfromapoolonafirst-come,first-servedbasis,oritcanassociateIPaddresseswithenddeviceMACaddr
7、essestoensurethataparticularclientalwaysreceivesthesameaddress.二、用IPHelperAddresses命令配置DHCP中继服务典型配置命令Router1#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router1(config)#interfaceEthernet0Router1(config-if)#iphelper-address1
此文档下载收益归作者所有