资源描述:
《BGP LOCAL PRIORITY属性实验》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、BGPLOCALPRIORITY属性实验LOCALPRIORITY默认值为100。以下承接BGPMED属性实验。因为MED属性值的影响,R4到达1.1.1.1的下一跳是24.1.1.2,从R1到达4.4.4.4的下一跳是13.1.1.2,因此从1.1.1.1到达4.4.4.4的往返路径是不同的,也就是说是不对称路径。R1#pingProtocol[ip]:TargetIPaddress:4.4.4.4Repeatcount[5]:Datagramsize[100]:Timeoutinseconds[2]:Extendedcom
2、mands[n]:ySourceaddressorinterface:1.1.1.1Typeofservice[0]:SetDFbitinIPheader?[no]:Validatereplydata?[no]:Datapattern[0xABCD]:Loose,Strict,Record,Timestamp,Verbose[none]:rNumberofhops[9]:Loose,Strict,Record,Timestamp,Verbose[RV]:Sweeprangeofsizes[n]:Typeescapesequen
3、cetoabort.Sending5,100-byteICMPEchosto4.4.4.4,timeoutis2seconds:Packetsentwithasourceaddressof1.1.1.1PackethasIPoptions:Totaloptionbytes=39,paddedlength=40Recordroute:<*>(0.0.0.0)(0.0.0.0)(0.0.0.0)(0.0.0.0)(0.0.0.0)(0.0.0.0)(0.0.0.0)(0.0.0.0)(0.0.0.0)Replytorequest0
4、(136ms).ReceivedpackethasoptionsTotaloptionbytes=40,paddedlength=40Recordroute:(13.1.1.1)(34.1.1.3)(4.4.4.4)(24.1.1.4)(12.1.1.2)(1.1.1.1)<*>(0.0.0.0)(0.0.0.0)(0.0.0.0)EndoflistReplytorequest1(64ms).ReceivedpackethasoptionsTotaloptionbytes=40,paddedlength=40Recordrou
5、te:(13.1.1.1)(34.1.1.3)(4.4.4.4)(24.1.1.4)(12.1.1.2)(1.1.1.1)<*>(0.0.0.0)(0.0.0.0)(0.0.0.0)EndoflistReplytorequest2(52ms).ReceivedpackethasoptionsTotaloptionbytes=40,paddedlength=40Recordroute:(13.1.1.1)(34.1.1.3)(4.4.4.4)(24.1.1.4)(12.1.1.2)(1.1.1.1)<*>(0.0.0.0)(0.
6、0.0.0)(0.0.0.0)EndoflistReplytorequest3(40ms).ReceivedpackethasoptionsTotaloptionbytes=40,paddedlength=40Recordroute:(13.1.1.1)(34.1.1.3)(4.4.4.4)(24.1.1.4)(12.1.1.2)(1.1.1.1)<*>(0.0.0.0)(0.0.0.0)(0.0.0.0)EndoflistReplytorequest4(92ms).ReceivedpackethasoptionsTotalo
7、ptionbytes=40,paddedlength=40Recordroute:(13.1.1.1)(34.1.1.3)(4.4.4.4)(24.1.1.4)(12.1.1.2)(1.1.1.1)<*>(0.0.0.0)(0.0.0.0)(0.0.0.0)EndoflistSuccessrateis100percent(5/5),round-tripmin/avg/max=40/76/136msR1#可以使用LOCALPRIORITY属性来改变R4到达1.1.1.1的下一跳为34.1.1.3,这样往返路径是相同的。R3(co
8、nfig)#routerbgp200R3(config-router)#bgpdefaultlocal-preference200R3(config-router)#R4#showipbgpBGPtableversionis9,localrouterIDis4.4.4.4St