config router ospf6
Use this command to configure OSPFv3. FortiADC supports OSPFv3 (Open Shortest Path First version 3), a link-state routing protocol for IPv6 networks that extends OSPFv2's core functionality, including shortest path calculation using the Dijkstra algorithm and maintaining a Link-State Database (LSDB) for network topology management.
This initial implementation enables FortiADC to advertise IPv6 virtual server IP addresses, as well as "connected" and "static" IPv6 routes, improving routing efficiency in IPv6 environments.
Maximum capacity for each configuration:
-
config area
— 1 -
config ospf6-interface
— 128 -
config ha-router-id-list
— 128
Before you begin:
- You must have read-write permission for router settings.
Syntax
config router ospf6 set router-id <router-id> set redistribute-connected {enable|disable} set redistribute-static {enable|disable} config area edit <area id> next end config ospf6-interface edit <no.1> set area-id <datasource> set interface <datasource> set cost <integer> set retransmit-interval <integer> set transmit-delay <integer> set priority <integer> set dead-interval <integer> set hello-interval <integer> set mtu-ignore {enable|disable} set mtu <integer> next end config ha-router-id-list edit <no.> set router-id <router-id> set node <integer> next end end
router-id |
32-bit number that sets the router ID of the OSPF process. The router ID uses dotted decimal notation. The router ID must be an IP address of the router, and it must be unique within the entire OSPFv3 domain to the OSPFv3 speaker. |
redistribute-connected |
Enable/disable to redistribute connected routes to OSPFv3. Redistributed routes are distributed into OSPFv3 as Type-5 External LSAs into links to areas. This is disabled by default. |
redistribute-static |
Enable/disable to redistribute static routes to OSPFv3. Redistributed routes are distributed to OSPFv3 as Type-5 External LSAs into links to areas. This is disabled by default. When enabled, the static routing will be advertised to the OSPFv3 neighbors. |
config area |
|
<area id> |
32-bit number that identifies the OSPFv3 area. An OSPFv3 area is a smaller part of the larger OSPFv3 network. Areas are used to limit the link-state updates that are sent out. The flooding used for these updates would overwhelm a large network, so it is divided into these smaller areas for manageability. |
config ospf6-interface |
|
area-id |
Select the Area ID. |
interface |
Select the interface on which to enable OSPFv3. |
cost |
Set the link cost for the specified interface, with lower metric values being preferred for path selection. This cost value is applied to the router-LSA's metric field and used in the SPF (Shortest Path First) calculation. The default value is 1, and the valid range is 1-65535. |
retransmit-interval |
Specify the interval between LSA retransmissions when acknowledgements are not received. The default value is 5 seconds, and the valid range is 1-65535. |
transmit-delay |
Additional time added to the LSA age during transmission. The default value is 1 second, and the valid range is 1-65535. |
priority |
The router's priority setting determines its eligibility for DR/BDR (Designated Router/Backup Designated Router) election, with higher values increasing the likelihood of becoming the DR. The router with the highest priority will have a greater chance of being elected as the DR, while setting the priority to 0 makes the router ineligible for DR election. The default value is 1, and the valid range is 0-255. |
dead-interval |
The Dead Interval defines the time, in seconds, after which a neighbor is declared down if no Hello packet is received. This interval must be consistent across all routers on a shared network. The default value is 40 seconds, and the valid range is 1-65535. |
hello-interval |
The Hello Interval specifies the time between Hello packets sent on a configured interface to maintain neighbor relationships, while the Dead Interval determines the time after which a neighbor is declared down if no Hello packet is received. Both intervals must be consistent across all routers on the same network to ensure proper OSPF operation. The default value is 10 seconds, and the valid range is 1-65535. |
mtu-ignore |
Ignores MTU mismatches between OSPFv3 neighbors. This is disabled by default. |
mtu |
Specify the maximum packet size for transmission. The default value is 1500, and the valid range is 1-65535. |
config ha-router-id-list |
|
router-id |
You use the HA Router list configuration in an HA Active-Active deployment. On each HA cluster node, add an HA Router configuration that includes an entry for each cluster node. When the appliance is in standalone mode, it uses the primary OSPFv3 Router ID; when it is in HA mode, it uses the HA Router list ID. Specify a unique 32-bit router ID for the OSPFv3 process in dotted decimal notation. This router ID must be an IP address assigned to the router and must remain unique across the entire OSPFv3 domain to ensure proper identification of the OSPFv3 speaker. In an HA Active-Active-VRRP deployment, each Router ID must be configured independently for each node. In an HA Active-Passive deployment, the router ID defaults to 0.0.0.0 in the secondary node. |
node |
Specify the HA Node ID. The valid range is 0-7. |
Example
Configure OSPFv3 Route ID:
config router ospf6 set router-id X.X.X.X end
Configure the redistribution of connected and static route:
config router ospf6 set router-id X.X.X.X set redistribute-connected enable set redistribute-static enable end
Configure OSPFv3 area:
config router ospf6 set router-id 1.1.1.162 config area edit 0.0.0.10 next end end
Configure the OSPFv3 interface parameters:
config router ospf6 set router-id 1.1.1.162 config ospf6-interface edit "port3" set area-id 0.0.0.10 set interface "port3" set cost 0 set retransmit-interval 5 set transmit-delay 1 set priority 1 set dead-interval 40 set hello-interval 10 set mtu-ignore disable set mtu 1500 next end end