Created on
11-25-2025
10:10 PM
Edited on
11-26-2025
01:33 AM
By
Jean-Philippe_P
| Description | This article describes the behavior while manipulating the BGP inbound routes based on Local Preference. |
| Scope | FortiGate. |
| Solution |
During BGP outbound path manipulation, Local Preference can be utilized. If routing table details are seen, then the local preference value will be the default one (not the updated one).
This does not indicate the correct Local preference applied, which is expected. To verify this, check the BGP network info:
get router info bgp neighbors 10.20.20.1 received-routes Network Next Hop Metric LocPrf Weight RouteTag Path
get router info bgp network 10.10.50.1
The reason why the updated Local Preference is not seen in received-routes because it shows whatever routes are received from a neighbor before applying a route-map.
Below is an example to achieve the same:
Create a prefix-list:
config router prefix-list
Create a route-map and call the prefix-list:
config router route-map
Attach it to a BGP neighbor:
config router bgp
Before applying the route-map:
get router info routing-table details 10.10.50.1 Routing table for VRF=0
After applying the route-map:
erbium-kvm39 # get router info routing-table details 10.10.50.1 Routing table for VRF=0
get router info bgp network 10.10.50.1
Additional Note:
Related article: Technical Tip: Use case of a Local preference and AS path prepending for route manipulation in BGP |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.