2022年2022年利用BGP虚拟下一跳技术实现IP骨干网流量负载均衡 .pdf
-
资源ID:39709014
资源大小:294.79KB
全文页数:7页
- 资源格式: PDF
下载积分:4.3金币
快捷下载
会员登录下载
微信登录下载
三方登录下载:
微信扫一扫登录
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
2022年2022年利用BGP虚拟下一跳技术实现IP骨干网流量负载均衡 .pdf
配置说明:【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.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 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 metric-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 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 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】interface 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.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 ,改相应前缀下一跳性】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 area 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-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 neighbor 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 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 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 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 update-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 域内没有其它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 router 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 页 - - - - - - - - - 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-summary 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 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 synchronization 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 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 Serial1/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 router-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 页 - - - - - - - - -