R2配置
router bgp 2
no synchronization
bgp log-neighbor-changes
redistribute static
neighbor
default-information originate
default-metric 10(此命令只有在默认重发布度量的情况下才有作用)
no auto-summary
ip route
R2路由
S
C
C
R2 BGP表
Network Next Hop Metric LocPrf Weight Path
*>
R1路由
B
C
默认的3个条件:
1:必须有静态指出去。2:将静态路由重分布进BGP中3:使用default-information originate广播路由到其他路由器(为EBGP邻居)
R2配置
router bgp 1
no synchronization
bgp router-id
bgp log-neighbor-changes
neighbor
neighbor
neighbor
neighbor
no auto-summary
ip route
R1bgp表
*>i
*>
R1路由表
B*
R4bgp表
*>
*>
R4路由表
B*
上一篇:[56cto网友尾巴原创]17.bgp的MD5加密认证
下一篇:[56cto网友尾巴原创]19.bgp的管理距离 总结




