![图片[1]-5.2 层次化RR-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片32-8-1024x234.png)
1.接5.1配置R4、R5的OSPF
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 45.1.1.0 0.255.255.255
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 45.1.1.0 0.255.255.255
2.配置R4、R5的IBGP,指定R4为路由反射器,client为R5
[R4]bgp 234
[R4-bgp]peer 5.5.5.5 as-number 234
[R4-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[R4-bgp]peer 5.5.5.5 reflect-client
[R5]bgp 234
[R5-bgp]router-id 5.5.5.5
[R5-bgp]peer 4.4.4.4 as-number 234
[R5-bgp]peer 4.4.4.4 connect-interface LoopBack 0
3.R5查看BGP路由信息
[R5]display bgp routing-table
*>i 1.1.1.1/32 2.2.2.2 0 100 0 100i
[R5]display bgp routing-table 1.1.1.1
BGP local router ID : 5.5.5.5
Local AS number : 234
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 1.1.1.1/32:
From: 4.4.4.4 (4.4.4.4)
Route Duration: 00h01m52s
Relay IP Nexthop: 45.1.1.4
Relay IP Out-Interface: GigabitEthernet0/0/1
Original nexthop: 2.2.2.2
Qos information : 0x0
AS-path 100, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, best, select, active, pre 255, IGP cost 3
Originator: 2.2.2.2
Cluster list: 4.4.4.4, 33.33.33.33
Not advertised to any peer yet
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容