Motor de enrutamiento avanzado (BGP): Cómo configurar la redistribución de ruta
14903
Created On 07/24/24 04:42 AM - Last Modified 01/07/25 13:13 PM
Objective
Utilizando la topología siguiente:
- Publicitar las rutas estáticas en BGP
- Publicitar las rutas conectadas en BGP
Environment
- Motor de enrutamiento avanzado
- Enrutador lógico
- BGP
- Redistribución de rutas
- Versión PAN-OS
Procedure
- Configure el Perfil de redistribución de BGP yendo a Red > Enrutamiento > Perfiles de enrutamiento > BGP > Perfil de redistribución de BGP > Agregar . En este ejemplo se utilizan los siguientes parámetros:
- Nombre: My_RP_2_BGP
- Estático: marcado
- Conectado: comprobado
- Haga clic en OK para guardar
- Aplique el Perfil de redistribución BGP anterior al enrutador lógico yendo a Red > Enrutamiento > Enrutador lógico > [Nombre_del_enrutador_lógico] > BGP > Redistribución > Perfil de redistribución IPv4 y use el perfil creado anteriormente.
- Haga clic en OK y luego en Confirmar para guardar.
- Para verificar, utilice el siguiente comando de 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>
Nota: The highlighted routes above are all connected routes, while the rest are static routes that were redistributed to BGP.