高级路由引擎 - BGP:如何配置路由重新分配
14773
Created On 07/24/24 04:42 AM - Last Modified 01/07/25 13:16 PM
Objective
使用下面的拓扑:
- 将静态路由通告到BGP
- 将连接的路由通告到BGP
Environment
- 高级路由引擎
- 逻辑路由器
- BGP
- 路由重分配
- PAN OS 版本
Procedure
- 转到网络 > 路由 > 路由配置文件 > BGP > BGP 重新分发配置文件 > 添加,配置BGP重新分发配置文件BGP重新分发配置文件。本示例使用以下参数:
- 名称: My_RP_2_BGP
- 静态:已勾选
- 已连接:已检查
- 单击“OK”保存
- 通过转到网络 > 路由 > 逻辑路由器 > [逻辑路由器名称] > BGP > 重新分发 > IPv4重新分发配置文件,将上述BGP重新重新分发配置文件应用于逻辑路由器,并使用上面创建的配置配置文件。
- 单击“OK” ,然后单击“提交”以保存
- 要验证,请使用以下CLI 命令:
admin@PA-3250-ENT> show advanced-routing bgp peer advertised-routes peer-name ISP1
Status codes: R removed, d damped, * valid, r ribFailure, S stale, = multipath,
s suppressed, i internal, > best, h history
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes: e egp, i igp, ? incomplete
Peer: ISP1 Logical router: ENT
----------------------------------------------------------------------------------
Network Next Hop Metric LocPrf Weight Path
*> 172.16.0.0/24 172.16.1.254 10 100 32768 ?
*> 172.16.1.0/24 0.0.0.0 0 100 32768 ?
*> 172.16.2.0/24 0.0.0.0 0 100 32768 ?
*> 172.16.3.0/24 172.16.1.254 10 100 32768 ?
*> 172.16.4.0/24 172.16.1.254 10 100 32768 ?
-----Snipped for brevity-----------
*> 172.16.30.0/24 172.16.1.254 10 100 32768 ?
*> 172.16.31.0/24 172.16.1.254 10 100 32768 ?
*> 192.168.1.0/24 172.16.1.254 10 100 32768 ?
*> 192.168.2.0/24 172.16.1.254 10 100 32768 ?
*> 192.168.3.0/24 172.16.1.254 10 100 32768 ?
-----Snipped for brevity-----------
*> 192.168.254.0/24 172.16.1.254 10 100 32768 ?
*> 192.168.255.0/24 172.16.1.254 10 100 32768 ?
----------------------------------------------------------------------------------
Total number of prefixes 286
admin@PA-3250-ENT>
笔记: The highlighted routes above are all connected routes, while the rest are static routes that were redistributed to BGP.