为什么把bgp重分布到ospf里容易产生loop ospf的asbr路由器可以引入bgp的路由吗?为什么?
\u4e3a\u4ec0\u4e48BGP\u548cOSPF\u8981\u505a\u53cc\u5411\u91cd\u5206\u53d1\uff1f\u91cd\u5206\u5e03\uff0c\u662f\u5b66\u4e60\u5230\u5176\u4ed6\u52a8\u6001\u534f\u8bae\u7684\u8def\u7531\uff0c\uff0c\uff0c\uff0c\u8def\u7531\u5668\u662f\u6839\u636e\u81ea\u5df1\u7684\u8def\u7531\u8868\u6765\u8f6c\u53d1\u6570\u636e\u7684\uff0c\uff0c\u56e0\u4e3aOSPF\u548cbgp\u662f\u4e0d\u540c\u7684\u8def\u7531\u534f\u8bae\uff0c\u5206\u522b\u6765\u7ba1\u7406\u7740\u5c5e\u4e8e\u81ea\u5df1\u534f\u8bae\u5185\u7684\u8def\u7531\uff0c\uff0c\u6211\u4eec\u5982\u679c\u6709\u6570\u636e\u8981\u8de8\u4e24\u4e2a\u534f\u8bae\u6765\u4f20\u8f93\uff0c\u5c31\u5f97\u8ba9OSPF\u91cc\u9762\u6709bgp\u7684\u8def\u7531\uff0c\u4e0d\u7136\u5b83\u4e0d\u77e5\u9053\u53d1\u53bb\u54ea\uff0c\uff0c\uff0c\u76f8\u540c\u7684\uff0cbgp\u91cc\u4e5f\u8981\u6709OSPF\u7684\u8def\u7531\uff0c\u4e0d\u7136\u6570\u636e\u56de\u53bb\u4e5f\u627e\u4e0d\u5230\u56de\u53bb\u7684\u8def\uff0c\uff0c\u6240\u4ee5\u662f\u53cc\u5411\u7684\uff0c\uff0c\uff0c\u91cd\u53d1\u5e03\u4e5f\u5206\u5f88\u591a\u79cd\uff0c\uff0c\u9759\u6001\u8def\u7531\u91cd\u53d1\u5e03\uff0c\uff0c\u9ed8\u8ba4\u8def\u7531\u91cd\u53d1\u5e03\uff0c\u52a8\u6001\u8def\u7531\u91cd\u53d1\u5e03\uff0c\uff0c\u4e0d\u540c\u7684\u53d1\u5e03\uff0c\u5e26\u7ed9\u5176\u4ed6\u8def\u7531\u7684\u8def\u7531\u6761\u76ee\u53ca\u8def\u7531\u8d1f\u62c5\u90fd\u6709\u4e0d\u540c\uff0c\uff0c\uff0c\u4f46\u8fb9\u5883\u8def\u7531\uff08\u5373\u4e24\u534f\u8bae\u4e34\u754c\u8def\u7531\u5668\u5374\u8981\u6709\u4e24\u8fb9\u6240\u6709\u7684\u8def\u7531\u6761\u76ee\uff09\uff0c\uff0c\uff0c\u5e0c\u671b\u4f60\u80fd\u770b\u61c2
\u5f53\u7136\u53ef\u4ee5\u4e86\uff0c\u628abgp\u91cd\u5206\u5e03\u8fdbospf\u5c31\u53ef\u4ee5\uff0c\u4e0d\u8fc7\u73b0\u7f51\u91cc\u4e0d\u5efa\u8bae\u8fd9\u4e48\u505a
直连路由永远是最优先的,因此你配置的静态路由不会加入IP路由表重分布只会针对IP路由表中使用的路由,因此你写的静态路由不会被重分布为了解决以上特殊需求,可以把一个直连网段如10.1.1.0/24写为两条10.1.1.0/25、10.1.1.128/25静态路由然后进行重分布(需保证下一跳可达),该方式称之为路由分割,和路由聚合相反。双IE讲师,请采纳绛旓細4銆乪xternal1锛堝閮級BGP涓20 5銆丒IGRP涓90 6銆両GRP涓110 7銆ospf涓110 8銆両S-IS涓115 9銆丷IP涓120 10銆丒GP涓140 11銆乪xternal锛堝閮級EIGRP涓170 12銆乮nternal锛堝唴閮級BGP涓200 13銆佹湭鐭ョ殑 涓255 鍦≧IP涓閲嶅垎甯锛歛銆佸湪杩涚▼涓嬶細redistribute ospf 1锛堝崗璁級 metric 2锛堝害閲忓硷級鍙拡瀵瑰綋鍓嶅崗璁...
绛旓細鍖哄埆涔堬紝鍙互鎯冲嚭鍑犵偣 绗竴锛bgp鍜宱spf鏄袱濂楀畬鍏ㄤ笉鍚岀殑璺敱鍗忚锛屼袱鑰呯殑peer浠庡缓绔嬶紝缁存寔锛屽埌缁存寔鐨勫唴瀹瑰拰鏈哄埗锛屼互鍙婂缓绔媝eer鐨勭洰鐨勯兘瀹屽叏涓嶇敤銆傜浜岋紝ospf鐨杈圭晫router閮芥槸璺ㄤ袱涓猘rea鐨勶紝鑰宐gp鐨勪袱绔殑peer鍒嗗睘涓嶅悓鐨凙S 绗笁锛宐gp peer鍦ㄤ换鎰忊滃悎娉曗濈殑AS涔嬮棿鍧囧彲浠ュ缓绔嬶紝鑰宱spf鍒欏彧鍙互鍚宎rea0...
绛旓細寰堥珮鍏翠负浣犲洖绛旇繖涓棶棰樸侲BGP绠$悊璺濈20锛ospf绠$悊璺濈110锛屼絾鏄矾鐢辩殑濂藉潖骞朵笉鏄崟鍗曠鐞嗚窛绂绘潵鍐冲畾鐨勩傝繕鏈夋渶闀垮尮閰嶏紙鏈绮剧‘鐨勶級銆傘傘 濡傛灉鏄bgp鐨勯夎矾锛屾牴鎹垜鎵鐭ラ亾鐨13鏉★紝浣犺鐨勫氨娌℃湁鍙瘮鎬с傛垜鍙煡閬揈BGP鐢变簬IBGP锛涙垨鑰咃紙濡傛灉澶氭潯璺緞鐨勪笅涓璺抽偦灞呭悓涓篹BGP鎴杋BGP锛屽垯閫夋嫨鎷ユ湁鏈灏廔GP metric...
绛旓細R2閫氳繃IGP瀛﹀埌浜10.45.1.0鐨勮矾鐢憋紝浜庢槸synchronization鏀捐锛10.45.1.0鍔犲叆鍏ㄥ眬璺敱琛紝褰㈡垚閫氳矾 鏈変釜鍦版柟瑙i噴涓嬶紝鍥句腑鐨凴IB-failure锛屾剰鎬濇槸BGP鎶璇ヨ矾鐢卞姞鍏ヨ矾鐢辫〃澶辫触锛屽師鍥犳槸IGP鐨刣istance浼樺厛绾ч珮浜嶪BGP锛屼篃鍙互閫氳繃濡備笅鍛戒护鏌ョ湅RIB-failure鍘熷洜 Full Mesh 鏈変竴绉嶈В娉曟槸IBGP鎶婂閮ㄨ矾鐢变俊鎭閲嶅垎甯冨埌IG...
绛旓細BGP鍜OSPF鐨鍖哄埆:BGP:鐢ㄦ潵澶勭悊涓嶅悓缃戠粶涔嬮棿鐨勫崗璁侽SPF锛氱敤鏉ュ鐞嗗悓涓涓綉缁滃唴閮ㄧ殑閾捐矾鍗忚銆傝竟鐣孊GP:缃戝叧鍗忚锛圔GP锛夋槸杩愯浜 TCP 涓婄殑涓绉嶈嚜娌荤郴缁熺殑璺敱鍗忚銆 BGP 鏄敮涓涓涓敤鏉ュ鐞嗗儚鍥犵壒缃戝ぇ灏忕殑缃戠粶鐨勫崗璁紝涔熸槸鍞竴鑳藉濡ュ杽澶勭悊濂戒笉鐩稿叧璺敱鍩熼棿鐨勫璺繛鎺ョ殑鍗忚銆侽S杈圭晫BGP:PF(Open Shortest...
绛旓細鍚屾瑙勫垯瑙勫畾锛BGP璺敱鍣ㄤ笉鑳芥妸浠庡唴閮ㄩ偦灞咃紙ibgp)閫氬憡杩囨潵鐨勮矾鐢卞憡璇夊閮ㄩ偦灞咃紙ebgp)銆傞櫎闈炶繖鑷繁鐨処GP璺敱琛紙OSPF璺敱琛ㄦ垨鑰呴潤鎬佽矾鐢辫〃绛夌瓑锛夐噷涔熸湁杩欐潯璺敱銆傛墦涓瘮鏂癸紝浣犲閲屼汉锛圛BGP閭诲眳锛夊憡璇変綘鐨勨滆秴甯傛墦鎶樷濓紙璺敱鏉$洰锛夛紝浣犳槸涓嶈兘鍛婅瘔澶栦汉锛坋bgp閭诲眳锛夛紝闄ら潪浣犺嚜宸辨棭灏辩煡閬撹繖娑堟伅銆傝繖鑳介槻姝竴浜...
绛旓細涓嶅悓璺敱鍗忚涔嬮棿鍙湁IGRP鍜孍IGRP鎴栬匓GP鍜孧pBGP涔嬮棿鍙互鍋氳嚜鍔閲嶅垎甯锛岃繖涓棶棰樺繀椤诲仛鎵嬪伐閲嶅垎鍙戯紝鍦˙GP杩涚▼涓嬮厤缃畆edistribte ospf x鍗冲彲銆傚鏋滀綘鍙嶈繃鏉ョ殑闂殑璇濓紝闂灏变笉鏄偅涔堢畝鍗曚簡銆
绛旓細ospf闅俱1銆佸垵濮嬪寲褰㈡垚绔彛鍒濆淇℃伅锛鍦璺敱鍣ㄥ垵濮嬪寲鎴栫綉缁滅粨鏋勫彂鐢熷彉鍖(濡傞摼璺彂鐢熷彉鍖栵紝璺敱鍣ㄦ柊澧炴垨鎹熷潖)鏃讹紝鐩稿叧璺敱鍣ㄤ細浜х敓閾捐矾鐘舵佸箍鎾暟鎹寘LSA锛岃鏁版嵁鍖呴噷鍖呭惈璺敱鍣ㄤ笂鎵鏈夌浉杩為摼璺紝涔熷嵆涓烘墍鏈夌鍙g殑鐘舵佷俊鎭2銆佽矾鐢卞櫒闂撮氳繃娉涙椽(Floodingl鏈哄埗浜ゆ崲閾捐矾鐘舵佷俊鎭細鍚勮矾鐢卞櫒涓鏂归潰灏鍏禠SA鏁版嵁鍖...
绛旓細鍗庝负ospf鐪嬫墦鐨則ag锛屾湰渚嬩富瑕侀厤缃拰渚嬩竴鑷达紝涓昏鏄湪AR3260-AR1鍜孉R3260-AR2鐨勮矾鐢卞煙鐨勮竟鐣屼笂锛屼粠AR3260-AR1涓閲嶅垎甯冭繘BGP 65001鐨勮矾鐢辩殑鏃跺欐墦tag 650011锛屽湪AR3260-AR2涓婇噸鍒嗗竷杩汢GP 65001鐨勮矾鐢辩殑鏃跺欐墦tag 650012 锛岀劧鍚庡湪AR3260-AR1涓婂皢OSPF 100鐨勮矾鐢遍噸鍒嗗竷杩汢GP 65000鐨勬椂鍊欒繃婊ゆ帀鎵撲簡tag...
绛旓細1銆BGP鏄閮ㄨ矾鐢卞崗璁紝OSPF鏄唴閮ㄨ矾鐢卞崗璁侷GP(interior Gateway Protocols)鍐呴儴缃戝叧鍗忚鍦鍚屼竴涓嚜娌荤郴缁熷唴浜ゆ崲璺敱淇℃伅锛孯IP锛孫SPF鍜孖S锛岻S閮藉睘浜嶪GP銆侷GP鐨勪富瑕佺洰鐨勬槸鍙戠幇鍜岃绠楄嚜娌诲煙鍐呯殑璺敱淇℃伅銆 BGP锛圔order Gateway Protocol锛岃竟鐣岀綉鍏冲崗璁級鏄敤鏉ヨ繛鎺nternet涓婄殑鐙珛绯荤粺鐨勮矾鐢遍夋嫨鍗忚銆傚畠鏄...