Description | This article describes how to prevent OSPF peering with a secondary IP address on the Interface. |
Scope | FortiGate. |
Solution |
The following configuration applies to this topology:
FortiGate (port9 20.0.0.2) <---> FortiGate 2 (20.0.0.1 & 20.0.0.100 port16)
config system interface edit "port9" set vdom "root" next end
The primary & secondary IP configured on FortiGate 2:
show system interface port16 config system interface edit "port16" set vdom "root" set ip 20.0.0.1 255.255.255.0 set allowaccess ping set type physical set snmp-index 18 set secondary-IP enable config secondaryip edit 1 set ip 20.0.0.100 255.255.255.0 next end
show router ospf config router ospf set router-id 20.0.0.2 config area edit 0.0.0.0 next end config ospf-interface <-- Broadcast is the default setting. edit "Port9" set interface "port9" next end config network edit 1 set prefix 20.0.0.0 255.255.255.0 next end
show router ospf config router ospf set router-id 20.0.0.1 config area edit 0.0.0.0 next end config ospf-interface <-- Broadcast is the default setting. edit "Port16" set interface "port16" next end config network edit 1 set prefix 20.0.0.0 255.255.255.0 next end
get router info ospf neighbor
Here, the first FortiGate has successfully formed neighborship with the primary and secondary IP.
To avoid this, use the following configuration:
set router-id 20.0.0.2 config area edit 0.0.0.0 next end config ospf-interface edit "Port9" set interface "port9" next end config network edit 1 set prefix 20.0.0.0 255.255.255.0 next end
config router ospf set router-id 20.0.0.1 config area edit 0.0.0.0 next end config ospf-interface edit "Port16" set interface "port16" set ip 20.0.0.100 set network-type point-to-point next end config network edit 1 set prefix 20.0.0.0 255.255.255.0 next end
|
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 2024 Fortinet, Inc. All Rights Reserved.