How to check for AS path length on BGP advertised routes
11038
Created On 02/09/24 22:33 PM - Last Modified 02/14/24 02:23 AM
Objective
To check for AS path length on BGP advertised routes using the CLI command.
Environment
- Palo Alto Firewall
- Supported PAN-OS
- BGP
Procedure
The CLI command "show routing protocol bgp rib-out" provides the AS Path Length for BGP advertised routes
> show routing protocol bgp rib-out
VIRTUAL ROUTER: VR1 (id 1)
==========
Prefix Nexthop Peer Originator Adv Status Aggr Status AS-Path
10.3.2.0/30 10.3.2.2 ISP1 0.0.0.0 advertised no aggregate 64882,64881
> show routing protocol bgp rib-out-detail
VIRTUAL ROUTER: VR1 (id 1)
==========
Prefix: 10.3.2.0/30
Nexthop: 10.3.2.2
Peer: ISP1
Advertise status: advertised
Aggregation status: no aggregate
Originator ID: 0.0.0.0
AS Path: 64882,64881
Origin: IGP
MED: 0
Local Preference: 0
Atomic aggregate: no
Aggregator AS: 0
Aggregator ID: 0.0.0.0