如图所示:
R2位于AS 202 ,R3位于 AS 10101
概念:bgp后门是将特定的EBGP路由的管理距离从20修改为200(为IBGP管理距离)
R1配置:
router eigrp 100
network
network
network 192.168.1.0
no auto-summary
R2配置:
router eigrp 100
network
network
network
no auto-summary
router bgp 202
no synchronization
bgp log-neighbor-changes
neighbor
no auto-summary
R3配置:
router eigrp 100
network
network
network 192.168.1.0
no auto-summary
router bgp 10101
no synchronization
bgp log-neighbor-changes
network 192.168.1.0
neighbor
no auto-summary
在R2上观察192.168.1.0/24的路由
r2#show ip route
D
C
C
C
B 192.168.1.0/24 [20/0] vi
发现显示的是B的路由 因为EBGP的管理距离是20小于EIGRP的90
使用命令:
r3(config-router)#network 192.168.1.0 mask 255.255.255.0 backdoor
这个时侯EBGP的管理距离变为200
再R2上观察192.168.1.0/24的路由
r2#show ip route
D
C
C
C
D 192.168.1.0/24 [90/2172416] vi
[90/2172416] vi
上一篇:[56cto网友原创]15.下一跳可达
下一篇:[56cto网友尾巴原创]17.bgp的MD5加密认证



