设为首页收藏本站language 语言切换
查看: 2242|回复: 6
收起左侧

[已解决] EBGP对等体水平分割问题

[复制链接]
发表于 2013-12-20 17:32:23 | 显示全部楼层 |阅读模式
EBGP水平分割.JPG
拓扑图如上:
配置:
R1:
en
conf t
inter s1/0
ip add 12.1.1.1 255.255.255.0
no shut
inter s1/1
ip add 13.1.1.1 255.255.255.0
no shut
exit
router bgp 1
no au
no sy
bgp router-id 1.1.1.1
nei 12.1.1.2 remot 23
nei 13.1.1.3 remot 23
nei 12.1.1.2 next-hop-self
nei 13.1.1.3 next-hop-self
bgp con i 123
bgp con p 23
end
R2:
en
conf t
inter s1/0
ip add 12.1.1.2 255.255.255.0
no shut
inter s1/2
ip add 24.1.1.2 255.255.255.0
no shut
exit
router bgp 23
no au
no sy
bgp router-id 2.2.2.2
nei 12.1.1.1 remot 1
nei 24.1.1.4 remot 4
nei 12.1.1.1 next-hop-self
nei 24.1.1.4 next-hop-self
bgp con i 123
bgp con p 1
nei 12.1.1.1 all 2
end
R3:
en
conf t
inter s1/1
ip add 13.1.1.3 255.255.255.0
no shut
inter s1/2
ip add 35.1.1.3 255.255.255.0
no shut
exit
router bgp 23
no au
no sy
bgp router-id 3.3.3.3
nei 13.1.1.1 remot 1
nei 35.1.1.5 remot 5
nei 13.1.1.1 next-hop-self
nei 35.1.1.5 next-hop-self
bgp con i 123
bgp con p 1
nei 13.1.1.1 all 2
end
R4:
en
conf t
inter s1/2
ip add 24.1.1.4 255.255.255.0
no shut
inter lo 0
ip add 4.4.4.4 255.255.255.0
exit
router bgp 4
no au
no sy
bgp router-id 4.4.4.4
nei 24.1.1.2 remot 123
nei 24.1.1.2 next-hop-self
net 4.4.4.0 mask 255.255.255.0
end
R5:
en
conf t
inter s1/2
ip add 35.1.1.5 255.255.255.0
no shut
inter lo 0
ip add 5.5.5.5 255.255.255.0
exit
router bgp 5
no au
no sy
bgp router-id 5.5.5.5
nei 35.1.1.3 remot 123
nei 35.1.1.3 next-hop-self
net 5.5.5.0 mask 255.255.255.0
end
问题:
R1学习到4.4.4.0和5.5.5.0路由
R2收不到R1传过来的5.5.5.0路由,R3收不到R1传过来的4.4.4.0路由,求解!!!!!{:soso_e149:}
























发表于 2013-12-20 18:00:28 | 显示全部楼层
必须学不到啊,学到了就不对了。IBGP路由不会传递给任何的邻居,自己去理解

点评

人家玩的是联邦····不存在ibgp防环问题·····不过这样玩有问题啊···为啥非要玩相同的as号呢··就算是联邦··但他们还是默认属于as123的啊···nei 13.1.1.1 all 2 这条命  详情 回复 发表于 2013-12-20 19:46
沙发 2013-12-20 18:00:28 回复 收起回复
回复 支持 反对

使用道具 举报

 成长值: 56245
发表于 2013-12-20 19:46:39 | 显示全部楼层
yanjin1991 发表于 2013-12-20 18:00
必须学不到啊,学到了就不对了。IBGP路由不会传递给任何的邻居,自己去理解

人家玩的是联邦····不存在ibgp防环问题·····不过这样玩有问题啊···为啥非要玩相同的as号呢··就算是联邦··但他们还是默认属于as123的啊···nei 13.1.1.1 all 2 这条命令对于ibgp邻居好像是不起作用的···另外ebgp邻居间用nei 35.1.1.3 next-hop-self也没什么意义啊···
板凳 2013-12-20 19:46:39 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-12-20 20:13:46 | 显示全部楼层
本帖最后由 84983251 于 2013-12-20 20:55 编辑

这是由于AS path防环机制造成的,因为你的R1学习到的4.4.4.0 通过联邦的R2的AS23学习到的 R1学习到的5.5.5.0的路由是R3联邦AS23学习到的。当R1将4.4.4.0的路由传递给R3后因为AS path属性里面有AS23 R3认为这条路由是R3自己发送出去的,就将该路由丢弃了 。5.5.5.0的路由同理
地板 2013-12-20 20:13:46 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-12-21 12:07:02 | 显示全部楼层
84983251 发表于 2013-12-20 20:13
这是由于AS path防环机制造成的,因为你的R1学习到的4.4.4.0 通过联邦的R2的AS23学习到的 R1学习到的5.5.5. ...

这位仁兄所讲 正解
5# 2013-12-21 12:07:02 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-12-22 17:58:39 | 显示全部楼层
ibgp全互联才能通 路由器不能转发从ibgp邻居学到的路由给另外一个ibgp邻居
6# 2013-12-22 17:58:39 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-1-3 19:47:01 | 显示全部楼层
呵呵,为啥用相同的AS是想加大点难度,AS号不同我也做过,可以学习到路由,不过老师说过了EBGP对等体存在一个水平分割问题:EBGP对等体不会接受来自相同AS号的路由条目,但是可以通过nei 12.1.1.1 all 2来解决,结果没成功,至于为啥每台都来了个下一跳自我,其实是我刚开始学BGP不太熟悉,害怕出现无效路由,就错杀一千不放过一个,
7# 2014-1-3 19:47:01 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-25 23:17 , Processed in 0.214871 second(s), 34 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表