ebgp
外部bgp鄰居,不用發(fā) next-hop-self
ibgp
內部bgp鄰居堡妒,要發(fā) next-hop-self
ibgp 案例
RS
router bgp 65500
neighbor 10.3.0.254 remote-as 65500
neighbor 10.3.0.254 update-source 10.3.0.253
neighbor 10.3.0.254 route-map l3-4 in 這個后面原來匹配前綴列表的
neighbor 10.4.0.254 remote-as 65500
neighbor 10.4.0.254 update-source 10.4.0.253
neighbor 10.4.0.254 route-map l1-2 in 這個后面原來匹配前綴列表的
FW
router bgp 65501
neighbor 10.3.0.253 remote-as 65500
neighbor 10.3.0.253 next-hop-self 要發(fā) next-hop-self
neighbor 10.3.0.253 update-source ethernet0/3
neighbor 10.4.0.253 remote-as 65500
neighbor 10.4.0.253 next-hop-self 要發(fā) next-hop-self
neighbor 10.4.0.253 update-source ethernet0/4
network 10.11.0.0/24
network 10.12.0.0/24
network 10.13.0.0/24
network 10.14.0.0/24
ebgp 案例
RS
router bgp 65500
neighbor 10.3.0.254 remote-as 65501 這里進程號跟對方相同
neighbor 10.3.0.254 update-source 10.3.0.253
neighbor 10.3.0.254 route-map l3-4 in
neighbor 10.4.0.254 remote-as 65501 這里進程號跟對方相同
neighbor 10.4.0.254 update-source 10.4.0.253
neighbor 10.4.0.254 route-map l1-2 in
FW
router bgp 65501
neighbor 10.3.0.253 remote-as 65500
neighbor 10.3.0.253 next-hop-self 這個就不用了鲤竹,刪了
neighbor 10.3.0.253 update-source ethernet0/3 接口也可以不用
neighbor 10.4.0.253 remote-as 65500
neighbor 10.4.0.253 next-hop-self 這個就不用了搅方,刪了
neighbor 10.4.0.253 update-source ethernet0/4 接口也可以不用
network 10.11.0.0/24
network 10.12.0.0/24
network 10.13.0.0/24
network 10.14.0.0/24