如上图所示R2上宣告路由
R1配置
r1#show running-config | b r b
router bgp 2
no synchronization
bgp log-neighbor-changes
neighbor
neighbor
no auto-summary
R2配置
r2#show running-config | b r b
router bgp 1
no synchronization
bgp log-neighbor-changes
network
neighbor
no auto-summary
R3配置
r3#show running-config | b r b
router bgp 3
no synchronization
bgp log-neighbor-changes
neighbor
no auto-summary
R3的BGP表:
r3#show ip bgp
BGP table version is 2, local router ID is
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
*>
说明下一跳可达是当一个路由器把自己从一个EBGP学到的邻居送给自己的IBGP邻居的时候Next Hop 不可达 但是当一个路由器把自己从一个IBGP或者EBGP邻居学到的路由在重送给另一个EBGP邻居时他的下一跳就是与这个EBGP邻居的只连接口
这里有一点当在联邦当中的EBGP时列外
上一篇:[56cto网友原创]14.BGP中的负载均衡
下一篇:[56cto网友尾巴原创]16.BGP后门backdoor



