5.1 路由反射器
1.R2配置OSPF
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
2.R3配置OSPF
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
[R3-ospf-1-area-0.0.0.0]network 34.1.1.0 0.255.255.255
3.R4配置OSPF
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 34.1.1.0 0.255.255.255
4.R1配置EBGP,LoopBack 0宣告到BGP
[R1]bgp 100
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 12.1.1.2 as-number 234
[R1-bgp]network 1.1.1.1 32
4.R2配置IBGP、EBGP
[R2]bgp 234
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 3.3.3.3 as-number 234
[R2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R2-bgp]peer 3.3.3.3 next-hop-local
[R2-bgp]peer 12.1.1.1 as-number 100
4.R3配置IBGP
[R3]bgp 234
[R3-bgp]router-id 3.3.3.3
[R3-bgp]peer 2.2.2.2 as-number 234
[R3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R3-bgp]peer 4.4.4.4 as-number 234
[R3-bgp]peer 4.4.4.4 connect-interface LoopBack 0
5.R4配置IBGP
[R4]bgp 234
[R4-bgp]peer 3.3.3.3 as-number 234
[R4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
6.R3、R4查看BGP路由(R4的BGP路由为空)
<R3>display bgp routing-table
*>i 1.1.1.1/32 2.2.2.2 0 100 0 100i
[R4]display bgp routing-table
7.R3配置路由反射器
[R3]bgp 234
[R3-bgp]peer 2.2.2.2 reflect-client
[R3-bgp]peer 4.4.4.4 reflect-client
8.R4查看BGP路由
[R4]display bgp routing-table
*>i 1.1.1.1/32 2.2.2.2 0 100 0 100i
9.可以修改RR的Cluster list值
修改前:
[R4]display bgp routing-table 1.1.1.1
Cluster list: 3.3.3.3
修改R3的Cluster list值
[R3-bgp]reflector cluster-id 33.33.33.33
修改后:
[R4]display bgp routing-table 1.1.1.1
Cluster list: 33.33.33.33
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容