《2022年2022年利用BGP虚拟下一跳技术实现IP骨干网流量负载均衡 .pdf》由会员分享,可在线阅读,更多相关《2022年2022年利用BGP虚拟下一跳技术实现IP骨干网流量负载均衡 .pdf(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、配置说明:【R1】interface Loopback0 ip address 192.168.0.1 255.255.255.255 interface Serial1/0 no sh ip address 172.16.15.1 255.255.255.0 interface Serial1/1 no sh ip address 172.16.12.1 255.255.255.0 interface Serial1/2 no sh ip address 172.16.16.1 255.255.255.0 interface Serial1/3 no sh ip address 172.16
2、.13.1 255.255.255.0 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 7 页 - - - - - - - - - ip route 10.0.0.1 255.255.255.255 172.16.13.3 【虚拟下一跳地址指向真正下一跳,并由本域内 IGP(OSPF) 路由引入,使本域内所有邻居都能学习到虚拟下一跳地址的路由,从而使邻居从自己学习到的路由能最优化】ip route 192.168.0.3 255.255.255.255 172.16.13
3、.3 ip prefix-list ISP-B seq 5 permit 172.16.34.0/24【做前缀列表匹配需要改变下一跳的前缀】route-map set-nexthop permit 10 【做 route-map ,改相应前缀下一跳性】match ip address prefix-list ISP-B set ip next-hop 10.0.0.1 route-map set-nexthop permit 20 router ospf 1 router-id 192.168.0.1 no auto-cost redistribute static metric 10 met
4、ric-type 1 subnets【引入静态路由,使域内所有IBGP 邻居能学到虚拟下一跳地址,从面使邻居从自己学习到的路由能最优化】network 172.16.12.0 0.0.0.255 area 0 network 172.16.15.0 0.0.0.255 area 0 network 172.16.16.0 0.0.0.255 area 0 network 192.168.0.0 0.0.0.255 area 0 router bgp 100 no synchronization bgp router-id 192.168.0.1 bgp log-neighbor-changes
5、 neighbor internal peer-group neighbor internal remote-as 100 neighbor internal update-source Loopback0 neighbor internal route-map set-nexthop out【做出方向的ruout-map 改变发向邻居路由的下一跳】neighbor 192.168.0.2 peer-group internal neighbor 192.168.0.3 remote-as 200 neighbor 192.168.0.3 ebgp-multihop 255 neighbor
6、192.168.0.3 update-source Loopback0 neighbor 192.168.0.3 soft-reconfiguration inbound neighbor 192.168.0.5 peer-group internal neighbor 192.168.0.6 peer-group internal no auto-summary 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 7 页 - - - - - - - - - 【R2】inte
7、rface Loopback0 ip address 192.168.0.2 255.255.255.255 interface Serial1/0 no sh ip address 172.16.26.2 255.255.255.0 interface Serial1/1 no sh ip address 172.16.12.2 255.255.255.0 interface Serial1/2 no sh ip address 172.16.25.2 255.255.255.0 interface Serial1/3 no sh ip address 172.16.24.2 255.255
8、.255.0 ip route 10.0.0.1 255.255.255.255 172.16.24.4 【虚拟下一跳地址指向真正下一跳,并由本域内IGP(OSPF) 路由引入,使本域内所有邻居都能学习到虚拟下一跳地址的路由,从而使邻居从自己学习到的路由能最优化】ip route 192.168.0.4 255.255.255.255 172.16.24.4 ip prefix-list ISP-B seq 5 permit 172.16.34.0/24【做前缀列表匹配需要改变下一跳的前缀】route-map set-nexthop permit 10 【做 route-map ,改相应前缀下
9、一跳性】match ip address prefix-list ISP-B set ip next-hop 10.0.0.1 route-map set-nexthop permit 20 router ospf 1 router-id 192.168.0.2 log-adjacency-changes no auto-cost redistribute static metric 10 metric-type 1 subnets【引入静态路由,使域内所有IBGP 邻居能学到虚拟下一跳地址,从面使邻居从自己学习到的路由能最优化】network 172.16.12.0 0.0.0.255 ar
10、ea 0 network 172.16.25.0 0.0.0.255 area 0 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 7 页 - - - - - - - - - network 172.16.26.0 0.0.0.255 area 0 network 192.168.0.0 0.0.0.255 area 0 router bgp 100 no synchronization bgp router-id 192.168.0.2 bgp log-neighbor
11、-changes neighbor internal peer-group neighbor internal remote-as 100 neighbor internal update-source Loopback0 neighbor internal route-map set-nexthop out【做出方向的ruout-map 改变发向邻居路由的下一跳】neighbor 192.168.0.1 peer-group internal neighbor 192.168.0.4 remote-as 200 neighbor 192.168.0.4 ebgp-multihop 255 n
12、eighbor 192.168.0.4 update-source Loopback0 neighbor 192.168.0.5 peer-group internal neighbor 192.168.0.6 peer-group internal no auto-summary 【R3】由于 R3、 R4 域内没有其它IBGP邻居, 下挂设备都运行IGP 所以不需要以虚拟下一跳的方式建立EBGP邻居,可以用正常的方式建立EBGP邻居即可interface Loopback0 ip address 192.168.0.3 255.255.255.255 interface Serial1/0
13、 no sh ip address 172.16.34.3 255.255.255.0 interface Serial1/3 no sh ip address 172.16.13.3 255.255.255.0 router ospf 1 router-id 192.168.0.3 log-adjacency-changes no auto-cost network 172.16.34.0 0.0.0.255 area 0 network 192.168.0.0 0.0.0.255 area 0 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - -
14、 - - - - 名师精心整理 - - - - - - - 第 4 页,共 7 页 - - - - - - - - - router bgp 200 no synchronization bgp router-id 192.168.0.3 bgp log-neighbor-changes network 1.0.0.0 network 172.16.34.0 mask 255.255.255.0 neighbor 192.168.0.1 remote-as 100 neighbor 192.168.0.1 ebgp-multihop 255 neighbor 192.168.0.1 updat
15、e-source Loopback0 neighbor 192.168.0.1 soft-reconfiguration inbound neighbor 192.168.0.4 remote-as 200 neighbor 192.168.0.4 update-source Loopback0 no auto-summary ip route 0.0.0.0 0.0.0.0 172.16.13.1 ip route 1.0.0.0 255.0.0.0 Null0 ip route 192.168.0.1 255.255.255.255 172.16.13.1 【R4】由于 R3、 R4 域内
16、没有其它IBGP邻居, 下挂设备都运行IGP 所以不需要以虚拟下一跳的方式建立EBGP邻居,可以用正常的方式建立EBGP邻居即可interface Loopback0 ip address 192.168.0.4 255.255.255.255 interface Serial1/0 no sh ip address 172.16.34.4 255.255.255.0 serial restart-delay 0 interface Serial1/3 no sh ip address 172.16.24.4 255.255.255.0 serial restart-delay 0 route
17、r ospf 1 router-id 192.168.0.4 log-adjacency-changes no auto-cost network 172.16.34.0 0.0.0.255 area 0 network 192.168.0.0 0.0.0.255 area 0 router bgp 200 no synchronization bgp router-id 192.168.0.4 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 7 页 - - - - -
18、- - - - bgp log-neighbor-changes network 1.0.0.0 network 172.16.34.0 mask 255.255.255.0 neighbor 192.168.0.2 remote-as 100 neighbor 192.168.0.2 ebgp-multihop 255 neighbor 192.168.0.2 update-source Loopback0 neighbor 192.168.0.3 remote-as 200 neighbor 192.168.0.3 update-source Loopback0 no auto-summa
19、ry ip route 0.0.0.0 0.0.0.0 172.16.24.2 ip route 1.0.0.0 255.0.0.0 Null0 ip route 192.168.0.2 255.255.255.255 172.16.24.2 【R5】R5、R6 属于域内设备不建立EBGP 邻居关系,也只要以正常方式与域内其它设备建立 IBGP邻居关系即可interface Loopback0 ip address 192.168.0.5 255.255.255.255 interface Serial1/0 no sh ip address 172.16.15.5 255.255.255.0
20、 interface Serial1/1 no sh ip address 172.16.56.5 255.255.255.0 interface Serial1/2 no sh ip address 172.16.25.5 255.255.255.0 router ospf 1 router-id 192.168.0.5 log-adjacency-changes no auto-cost network 172.16.0.0 0.0.255.255 area 0 network 192.168.0.0 0.0.0.255 area 0 router bgp 100 no synchroni
21、zation bgp router-id 192.168.0.5 bgp log-neighbor-changes neighbor internal peer-group 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 7 页 - - - - - - - - - neighbor internal remote-as 100 neighbor internal update-source Loopback0 neighbor 192.168.0.1 peer-group
22、 internal neighbor 192.168.0.2 peer-group internal neighbor 192.168.0.6 peer-group internal no auto-summary 【R6】R5、R6 属于域内设备不建立EBGP 邻居关系,也只要以正常方式与域内其它设备建立 IBGP邻居关系即可interface Loopback0 ip address 192.168.0.6 255.255.255.255 interface Serial1/0 no sh ip address 172.16.26.6 255.255.255.0 interface Ser
23、ial1/1 no sh ip address 172.16.56.6 255.255.255.0 interface Serial1/2 no sh ip address 172.16.16.6 255.255.255.0 router ospf 1 router-id 192.168.0.6 log-adjacency-changes no auto-cost network 172.16.0.0 0.0.255.255 area 0 network 192.168.0.0 0.0.0.255 area 0 router bgp 100 no synchronization bgp rou
24、ter-id 192.168.0.6 bgp log-neighbor-changes neighbor internal peer-group neighbor internal remote-as 100 neighbor internal update-source Loopback0 neighbor 192.168.0.1 peer-group internal neighbor 192.168.0.2 peer-group internal neighbor 192.168.0.5 peer-group internal no auto-summary 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 7 页,共 7 页 - - - - - - - - -