| Description |
This article describes that in OSPF, Type 5 LSAs (AS-external-LSA) are used to advertise external routes into the OSPF domain. When a route is redistributed into OSPF from BGP, the default behavior is to set the next-hop IP address of the route learned via BGP as the forwarder address in the Type 5 LSA. In some scenarios, it might be preferable to configure FortiGate to advertise its own interface IP address as the forwarder address. This article provides details and configuration steps to achieve this. |
| Scope | FortiGate. |
| Solution |
Configuration Steps:
Define a prefix list to identify the specific routes for which the forwarder address will be modified:
Create a route map to modify the next-hop IP address for the matched prefixes:
First, configure the FortiGate to redistribute BGP routes into OSPF:
config router ospf
Verification:
Before Applying the Configuration.
get router info ospf database external lsa | grep 172.26.1.0 -A 10 -B 5
AS External Link States LS age: 39 After Applying the Configuration:
get router info ospf database external lsa | grep 172.26.1.0 -A 10 -B 5 Example output:
AS External Link States LS age: 23
Explanation of Changes:
|
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.