1.拓扑结构
2.使用OSPF配置AS2中的IGP环境
注:需将宣告的用户接口的网络类型改为broadcast
[R2]int l 0
[R2-LoopBack0]ospf network-type broadcast
3.配置BGP环境
R2:
R3
R4:
R5:
R6:
R7: 此环境使用了联邦,R2,R3,R4为64512;R5,R6,R7为64513
在64512中R3为反射器,在64513中R6为反射器
4.减少路由条目数量,避免环路出现
R2:
[r2]ip route-static 172.16.0.0 24 NULL 0
[r2]bgp 64512
[r2-bgp]network 172.16.0.0 24
R7:
[r7]ip route-static 172.16.0.0 24 NULL 0
[r7]bgp 64513
[r7-bgp]network 172.16.0.0 24
BGP表
5.测试