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