一张图快速学习BGP

邻居、联盟、路由反射器

这是一个综合实验,可以在我之前分享的模拟器上使用模拟,学明白几个BGP的概念。

实验目的:实现R1的LoopBack 0与R6的Lo0互通

基础网络互通配置(省略)

橙色和粉色区域配置OSPF

R2
ospf 1 router-id 2.2.2.2
area 0
network 192.168.27.0 0.0.0.255
network 10.10.2.0 0.0.0.255
quit
quit
R7
ospf 1 router-id 7.7.7.7
area 0
network 192.168.37.0 0.0.0.255
network 192.168.27.0 0.0.0.255
network 10.10.7.0 0.0.0.255
quit
quit
R3
ospf 1 router-id 3.3.3.3
area 0
network 192.168.37.0 0.0.0.255
network 192.168.34.0 0.0.0.255
network 10.10.3.0 0.0.0.255
quit
quit
R4
ospf 1 router-id 4.4.4.4
area 0
network 192.168.45.0 0.0.0.255
network 192.168.34.0 0.0.0.255
network 10.10.4.0 0.0.0.255
quit
quit
R5
ospf 1 router-id 5.5.5.5
area 0
network 192.168.45.0 0.0.0.255
network 10.10.5.0 0.0.0.255

BGP配置: BGP联盟和反射器

R1上配置BGP,AS编号为100

bgp 100

router-id 1.1.1.1

peer 192.168.12.2 as-number 200

network 10.10.1.0 255.255.255.0

quit

R2上配置BGP ,AS号为64523,联盟号为200

bgp 64523

router-id 2.2.2.2

confederation id 200

peer 192.168.12.1 as-number 100

peer 10.10.7.7 as-number 64523

peer 10.10.7.7 connect-interface LoopBack0

peer 10.10.7.7 next-hop-local

quit

R7上配置BGP ,AS号为64523,联盟为200

bgp 64523

router-id 7.7.7.7

confederation id 200

peer 10.10.2.2 as-number 64523

peer 10.10.3.3 as-number 64523

peer 10.10.2.2 reflect-client

peer 10.10.3.3 reflect-client

quit

R4上配置BGP ,AS号为64545,联盟为200

bgp 64545

router-id 4.4.4.4

confederation id 200

confederation peer-as 64523

peer 10.10.3.3 as-number 64523

peer 10.10.3.3 connect-interface LoopBack0

peer 10.10.3.3 ebgp-max-hop

peer 10.10.5.5 as-number 64545

quit

R5上配置BGP ,AS号为64545,联盟为200

bgp 64545

router-id 5.5.5.5

confederation id 200

peer 192.168.56.6 as-number 600

peer 10.10.4.4 as-number 64545

peer 10.10.4.4 connect-interface LoopBack 0

peer 10.10.4.4 next-hop-local

quit

R6上配置BGP ,AS号为600

bgp 600

router-id 6.6.6.6

peer 192.168.56.5 as-number 200

import-route direct

quit

测试结果,R1的 Lo0 ping通R6 Lo0

赞(4) 打赏
特别声明:除特殊标注,本站文章均为原创,遵循CC BY-NC 3.0,转载请注明出处。三伏磨 » 一张图快速学习BGP

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏