利用BGP虚拟下一跳技术实现IP骨干网流量负载均衡

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

配置说明:【R1】interfaceLoopback0ipaddress192.168.0.1255.255.255.255interfaceSerial1/0noshipaddress172.16.15.1255.255.255.0interfaceSerial1/1noshipaddress172.16.12.1255.255.255.0interfaceSerial1/2noshipaddress172.16.16.1255.255.255.0interfaceSerial1/3noshipaddress172.16.13.1255.255.255.0iproute10.0.0.1255.255.255.255172.16.13.3【虚拟下一跳地址指向真正下一跳,并由本域内IGP(OSPF)路由引入,使本域内所有邻居都能学习到虚拟下一跳地址的路由,从而使邻居从自己学习到的路由能最优化】iproute192.168.0.3255.255.255.255172.16.13.3ipprefix-listISP-Bseq5permit172.16.34.0/24【做前缀列表匹配需要改变下一跳的前缀】route-mapset-nexthoppermit10【做route-map,改相应前缀下一跳性】matchipaddressprefix-listISP-Bsetipnext-hop10.0.0.1route-mapset-nexthoppermit20routerospf1router-id192.168.0.1noauto-costredistributestaticmetric10metric-type1subnets【引入静态路由,使域内所有IBGP邻居能学到虚拟下一跳地址,从面使邻居从自己学习到的路由能最优化】network172.16.12.00.0.0.255area0network172.16.15.00.0.0.255area0network172.16.16.00.0.0.255area0network192.168.0.00.0.0.255area0routerbgp100nosynchronizationbgprouter-id192.168.0.1bgplog-neighbor-changesneighborinternalpeer-groupneighborinternalremote-as100neighborinternalupdate-sourceLoopback0neighborinternalroute-mapset-nexthopout【做出方向的ruout-map改变发向邻居路由的下一跳】neighbor192.168.0.2peer-groupinternalneighbor192.168.0.3remote-as200neighbor192.168.0.3ebgp-multihop255neighbor192.168.0.3update-sourceLoopback0neighbor192.168.0.3soft-reconfigurationinboundneighbor192.168.0.5peer-groupinternalneighbor192.168.0.6peer-groupinternalnoauto-summary【R2】interfaceLoopback0ipaddress192.168.0.2255.255.255.255interfaceSerial1/0noshipaddress172.16.26.2255.255.255.0interfaceSerial1/1noshipaddress172.16.12.2255.255.255.0interfaceSerial1/2noshipaddress172.16.25.2255.255.255.0interfaceSerial1/3noshipaddress172.16.24.2255.255.255.0iproute10.0.0.1255.255.255.255172.16.24.4【虚拟下一跳地址指向真正下一跳,并由本域内IGP(OSPF)路由引入,使本域内所有邻居都能学习到虚拟下一跳地址的路由,从而使邻居从自己学习到的路由能最优化】iproute192.168.0.4255.255.255.255172.16.24.4ipprefix-listISP-Bseq5permit172.16.34.0/24【做前缀列表匹配需要改变下一跳的前缀】route-mapset-nexthoppermit10【做route-map,改相应前缀下一跳性】matchipaddressprefix-listISP-Bsetipnext-hop10.0.0.1route-mapset-nexthoppermit20routerospf1router-id192.168.0.2log-adjacency-changesnoauto-costredistributestaticmetric10metric-type1subnets【引入静态路由,使域内所有IBGP邻居能学到虚拟下一跳地址,从面使邻居从自己学习到的路由能最优化】network172.16.12.00.0.0.255area0network172.16.25.00.0.0.255area0network172.16.26.00.0.0.255area0network192.168.0.00.0.0.255area0routerbgp100nosynchronizationbgprouter-id192.168.0.2bgplog-neighbor-changesneighborinternalpeer-groupneighborinternalremote-as100neighborinternalupdate-sourceLoopback0neighborinternalroute-mapset-nexthopout【做出方向的ruout-map改变发向邻居路由的下一跳】neighbor192.168.0.1peer-groupinternalneighbor192.168.0.4remote-as200neighbor192.168.0.4ebgp-multihop255neighbor192.168.0.4update-sourceLoopback0neighbor192.168.0.5peer-groupinternalneighbor192.168.0.6peer-groupinternalnoauto-summary【R3】由于R3、R4域内没有其它IBGP邻居,下挂设备都运行IGP所以不需要以虚拟下一跳的方式建立EBGP邻居,可以用正常的方式建立EBGP邻居即可interfaceLoopback0ipaddress192.168.0.3255.255.255.255interfaceSerial1/0noshipaddress172.16.34.3255.255.255.0interfaceSerial1/3noshipaddress172.16.13.3255.255.255.0routerospf1router-id192.168.0.3log-adjacency-changesnoauto-costnetwork172.16.34.00.0.0.255area0network192.168.0.00.0.0.255area0routerbgp200nosynchronizationbgprouter-id192.168.0.3bgplog-neighbor-changesnetwork1.0.0.0network172.16.34.0mask255.255.255.0neighbor192.168.0.1remote-as100neighbor192.168.0.1ebgp-multihop255neighbor192.168.0.1update-sourceLoopback0neighbor192.168.0.1soft-reconfigurationinboundneighbor192.168.0.4remote-as200neighbor192.168.0.4update-sourceLoopback0noauto-summaryiproute0.0.0.00.0.0.0172.16.13.1iproute1.0.0.0255.0.0.0Null0iproute192.168.0.1255.255.255.255172.16.13.1【R4】由于R3、R4域内没有其它IBGP邻居,下挂设备都运行IGP所以不需要以虚拟下一跳的方式建立EBGP邻居,可以用正常的方式建立EBGP邻居即可interfaceLoopback0ipaddress192.168.0.4255.255.255.255interfaceSerial1/0noshipaddress172.16.34.4255.255.255.0serialrestart-delay0interfaceSerial1/3noshipaddress172.16.24.4255.255.255.0serialrestart-delay0routerospf1router-id192.168.0.4log-adjacency-changesnoauto-costnetwork172.16.34.00.0.0.255area0network192.168.0.00.0.0.255area0routerbgp200nosynchronizationbgprouter-id192.168.0.4bgplog-neighbor-changesnetwork1.0.0.0network172.16.34.0mask255.255.255.0neighbor192.168.0.2remote-as100neighbor192.168.0.2ebgp-multihop255neighbor192.168.0.2update-sourceLoopback0neighbor192.168.0.3remote-as200neighbor192.168.0.3update-sourceLoopback0noauto-summaryiproute0.0.0.00.0.0.0172.16.24.2iproute1.0.0.0255.0.0.0Null0iproute192.168.0.2255.255.255.255172.16.24.2【R5】R5、R6属于域内设备不建立EBGP邻居关系,也只要以正常方式与域内其它设备建立IBGP邻居关系即可interfaceLoopback0ipaddress192.168.0.5255.255.255.255interfaceSerial1/0noshipaddress172.16.15.5255.255.255.0interfaceSerial1/1noshipaddress172.16.56.5255.255.255.0interfaceSerial1/2noshipaddress172.16.25.5255.255.255.0routerospf1router-id192.168.0.5log-adjacency-changesnoauto-costnetwork172.16.0.00.0.255.255area0network192.168.0.00.0.0.255area0routerbgp100nosynchronizationbgprouter-id192.168.0.5bgplog-neighbor-changesneighborinternalpeer-groupneighborinternalremote-as100neighborinternalupdat

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功