[56cto网友原创]15.下一跳可达
来源:56cto 作者:56cto尾巴 发布时间:2008-12-28 阅读次数

 

如上图所示R2上宣告路由2.2.2.0/24观察R3BGP

R1配置

r1#show running-config | b r b

router bgp 2

 no synchronization

 bgp log-neighbor-changes

 neighbor 12.1.1.2 remote-as 1

 neighbor 13.1.1.2 remote-as 3

 no auto-summary

R2配置

r2#show running-config | b r b

router bgp 1

 no synchronization

 bgp log-neighbor-changes

 network 2.2.2.0 mask 255.255.255.0

 neighbor 12.1.1.1 remote-as 2

 no auto-summary

R3配置

r3#show running-config | b r b

router bgp 3

 no synchronization

 bgp log-neighbor-changes

 neighbor 13.1.1.1 remote-as 2

 no auto-summary

 

R3BGP表:

r3#show ip bgp

BGP table version is 2, local router ID is 3.3.3.3

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric LocPrf Weight Path

*> 2.2.2.0/24       13.1.1.1                               0 2 1 i

 

 

说明下一跳可达是当一个路由器把自己从一个EBGP学到的邻居送给自己的IBGP邻居的时候Next Hop 不可达 但是当一个路由器把自己从一个IBGP或者EBGP邻居学到的路由在重送给另一个EBGP邻居时他的下一跳就是与这个EBGP邻居的只连接口

这里有一点当在联邦当中的EBGP时列外

上一篇:[56cto网友原创]14.BGP中的负载均衡  
下一篇:[56cto网友尾巴原创]16.BGP后门backdoor