wu_cisco 发表于 2013-12-20 17:32:23

EBGP对等体水平分割问题


拓扑图如上:
配置:
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:}
























yanjin1991 发表于 2013-12-20 18:00:28

必须学不到啊,学到了就不对了。IBGP路由不会传递给任何的邻居,自己去理解

七曜 发表于 2013-12-20 19:46:39

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

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

84983251 发表于 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-21 12:07:02

84983251 发表于 2013-12-20 20:13
这是由于AS path防环机制造成的,因为你的R1学习到的4.4.4.0 通过联邦的R2的AS23学习到的 R1学习到的5.5.5. ...

这位仁兄所讲 正解{:6_267:}

月光山城 发表于 2013-12-22 17:58:39

ibgp全互联才能通 路由器不能转发从ibgp邻居学到的路由给另外一个ibgp邻居

wu_cisco 发表于 2014-1-3 19:47:01

呵呵,为啥用相同的AS是想加大点难度,AS号不同我也做过,可以学习到路由,不过老师说过了EBGP对等体存在一个水平分割问题:EBGP对等体不会接受来自相同AS号的路由条目,但是可以通过nei 12.1.1.1 all 2来解决,结果没成功,至于为啥每台都来了个下一跳自我,其实是我刚开始学BGP不太熟悉,害怕出现无效路由,就错杀一千不放过一个,{:6_280:}
页: [1]
查看完整版本: EBGP对等体水平分割问题