1.R1配置EBGP
[R1]bgp 65000
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 12.1.1.2 as-number 23
[R1-bgp]network 1.1.1.1 32
2.R2配置EBGP、IBGP
[R2]bgp 23
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 3.3.3.3 as-number 23
[R2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R2-bgp]peer 3.3.3.3 next-hop-local
[R3-bgp]peer 12.1.1.1 as-number 65000
3.R3配置EBGP、IBGP
[R3]bgp 23
[R3-bgp]router-id 3.3.3.3
[R3-bgp]peer 2.2.2.2 as-number 23
[R3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R3-bgp]peer 2.2.2.2 next-hop-local
[R3-bgp]peer 34.1.1.4 as-number 400
4.R4配置EBGP
[R4]bgp 400
[R4-bgp]router-id 4.4.4.4
[R4-bgp]peer 34.1.1.3 as-number 23
5.R4查看BGP
[R4]display bgp routing-table
*> 1.1.1.1/32 34.1.1.3 0 23 65000i
6.R3配置隐藏私有AS号
[R3-bgp]peer 34.1.1.4 public-as-only
7.R4查看BGP
[R4]display bgp routing-table
*> 1.1.1.1/32 34.1.1.3 0 23i
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容