router : ospf6
 
ospf6
Use this command to configure OSPF routing for IPv6 traffic.
IP version 6 for OSPF is supported through Open Shortest Path First version 3 (OSPFv3) defined in RFC 2740. This includes the Authentication/Confidentiality for OSPFv3.
For more information on OSPF features in general, see “config router ospf”.
Syntax
config router ospf6
set abr-type {cisco | ibm | standard}
set auto-cost-ref-bandwidth <mbps_integer>
set default-metric <metric_integer>
set passive-interface <name_str>
set router-id <address_ipv6>
set spf-timers <delay_integer> <hold_integer>
config area
edit <area_address_ipv6>
set default-cost <cost_integer>
set nssa-default-information-originate {enable | disable}
set nssa-default-information-originate-metric <metric>
set nssa-default-information-originate-metric-type {1 | 2}
set nssa-redistribution {enable | disable}
set nssa-translator-role {always | candidate | never}
set stub-type {no-summary | summary}
set type {regular | stub | nssa}
end
config ospf6-interface
edit <ospf6_interface_name>
set area-id <ip4_addr>
set cost <cost_integer>
set dead-interval <seconds_integer>
set hello-interval <seconds_integer>
set interface <name_str>
set network-type <type_str>
set priority <priority_integer>
set retransmit-interval <seconds_integer>
set status {enable | disable}
set transmit-delay <seconds_integer>
config neighbor
edit <neighbor_addr>
set cost <cost_integer>
set poll-interval <seconds_integer>
set priority <priority_integer>
end
end
end
config redistribute {bgp | connected | rip | static}
set metric <metric_integer>
set metric-type {1 | 2}
set routemap <name_str>
set status {enable | disable}
end
end
 
Variable
Description
Default
abr-type {cisco | ibm | standard}
Specify the behavior of a FortiGate unit acting as an OSPF area border router (ABR) when it has multiple attached areas and has no backbone connection. Selecting the ABR type compatible with the routers on your network can reduce or eliminate the need for configuring and maintaining virtual links. For more information, see RFC 3509.
standard
auto-cost-ref-bandwidth <mbps_integer>
Enter the Mbits per second for the reference bandwidth. Values can range from 1 to 65535.
1000
default-metric <metric_integer>
Specify the default metric that OSPF should use for redistributed routes. The valid range for metric_integer is 1 to 16777214.
10
passive-interface <name_str>
OSPF routing information is not sent or received through the specified interface.
No default.
router-id <address_ipv6>
Set the router ID. The router ID is a unique number, in IP address dotted decimal format, that is used to identify an OSPF router to other OSPF routers within an area. The router ID should not be changed while OSPF is running.
A router ID of 0.0.0.0 is not allowed.
::
spf-timers <delay_integer> <hold_integer>
Change the default shortest path first (SPF) calculation delay time and frequency.
The delay_integer is the time, in seconds, between when OSPF receives information that will require an SPF calculation and when it starts an SPF calculation. The valid range for delay_integer is 0 to 4294967295.
The hold_integer is the minimum time, in seconds, between consecutive SPF calculations. The valid range for hold_integer is 0 to 4294967295.
OSPF updates routes more quickly if the SPF timers are set low; however, this uses more CPU. A setting of 0 for spf-timers can quickly use up all available CPU.
5 10
config area
Use this subcommand to set OSPF area related parameters. Routers in an OSPF autonomous system (AS) or routing domain are organized into logical groupings called areas. Areas are linked together by area border routers (ABRs). There must be a backbone area that all areas can connect to. You can use a virtual link to connect areas that do not have a physical connection to the backbone. Routers within an OSPF area maintain link state databases for their own areas.
You can use the config range subcommand to summarize routes at an area boundary. If the network numbers in an area are contiguous, the ABR advertises a summary route that includes all the networks within the area that are within the specified range. See “config range variables”.
You can configure a virtual link using the config virtual-link subcommand to connect an area to the backbone when the area has no direct connection to the backbone (see “config virtual-link variables”). A virtual link allows traffic from the area to transit a directly connected area to reach the backbone. The transit area cannot be a stub area. Virtual links can only be set up between two ABRs.
Variable
Description
Default
edit <area_address_ipv6>
Type the IP address of the area. An address of :: indicates the backbone area.
No default.
default-cost <cost_integer>
Enter the metric to use for the summary default route in a stub area or not so stubby area (NSSA). A lower default cost indicates a more preferred route.
The valid range for cost_integer is 1 to 16777214.
10
nssa-default-information-originate {enable | disable}
Enter enable to advertise a default route in a not so stubby area. Affects NSSA ABRs or NSSA Autonomous System Boundary Routers only.
disable
nssa-default-information-originate-metric <metric>
Specify the metric (an integer) for the default route set by the nssa-default-information-originate field.
Range 0-16 777 214.
10
nssa-default-information-originate-metric-type {1 | 2}
Specify the OSPF external metric type for the default route set by the nssa-default-information-originate field.
2
nssa-redistribution {enable | disable}
Enable or disable redistributing routes into a NSSA area.
enable
nssa-translator-role {always | candidate | never}
A NSSA border router can translate the Type 7 LSAs used for external route information within the NSSA to Type 5 LSAs used for distributing external route information to other parts of the OSPF routing domain. Usually a NSSA will have only one NSSA border router acting as a translator for the NSSA.
You can set the translator role to always to ensure this FortiGate unit always acts as a translator if it is in a NSSA, even if other routers in the NSSA are also acting as translators.
You can set the translator role to candidate to have this FortiGate unit participate in the process for electing a translator for a NSSA.
You can set the translator role to never to ensure this FortiGate unit never acts as the translator if it is in a NSSA.
candidate
stub-type {no-summary | summary}
Select the type of communication with the stub area.
Choose one of:
no-summary — prevent an ABR sending summary LSAs into a stub area.
summary — allow an ABR to send summary LSAs into a stub area.
summary
type {regular | stub | nssa}
For the type of area, choose one of:
regular — for a normal OSPF area.
stub — for a stub area that has limited connections to other areas.
nssa — for a not so stubby area
regular
config range Variables
edit <range_id>
Enter an ID number for the range. The number must be an integer in the 0 to 4 294 967 295 range.
No default.
advertise
{enable | disable}
Enable or disable advertising the specified range.
enable
prefix6 <address_ipv6mask>
Specify the range of addresses to summarize.
::/0
config virtual-link Variables
edit <vlink_name>
Enter a name for the virtual link.
No default.
dead-interval <seconds_integer>
The time, in seconds, to wait for a hello packet before declaring a router down. The value of the dead-interval should be four times the value of the hello-interval.
Both ends of the virtual link must use the same value for dead-interval.
The valid range for seconds_integer is 1 to 65535.
40
hello-interval <seconds_integer>
The time, in seconds, between hello packets.
Both ends of the virtual link must use the same value for hello-interval.
The valid range for seconds_integer is 1 to 65535.
10
peer <address_ipv4>
The router id of the remote ABR.
0.0.0.0 is not allowed.
0.0.0.0
retransmit-interval <seconds_integer>
The time, in seconds, to wait before sending a LSA retransmission. The value for the retransmit interval must be greater than the expected round-trip delay for a packet. The valid range for seconds_integer is 1 to 65535.
5
transmit-delay <seconds_integer>
The estimated time, in seconds, required to send a link state update packet on this virtual link.
OSPF increments the age of the LSAs in the update packet to account for transmission and propagation delays on the virtual link.
Increase the value for transmit-delay on low speed links.
The valid range for seconds_integer is 1 to 65535.
1
config ospf6-interface
Use this subcommand to change interface related OSPF settings. The interface field is required. All other fields are optional.
Variable
Description
Default
edit <ospf6_interface_name>
Enter a descriptive name for this OSPF interface configuration. To apply this configuration to a FortiGate unit interface, set the interface <name_str> attribute.
No default.
area-id <ip4_addr>
Enter the area ID in A.B.C.D IPv4 format.
0.0.0.0
cost <cost_integer>
Specify the cost (metric) of the link. The cost is used for shortest path first calculations. Range 1 to 65 535. Use 0 for auto-cost.
0
dead-interval <seconds_integer>
The time, in seconds, to wait for a hello packet before declaring a router down. The value of the dead-interval should be four times the value of the hello-interval.
All routers on the network must use the same value for dead-interval.
The valid range for seconds_integer is 1 to 65535.
40
hello-interval <seconds_integer>
The time, in seconds, between hello packets.
All routers on the network must use the same value for hello-interval.
The valid range for seconds_integer is 1 to 65535.
10
interface <name_str>
Enter the name of the interface to associate with this OSPF configuration. The interface might be a virtual IPSec or GRE interface.
Null
network-type <type_str>
Choose the network type, one of: broadcast, non‑broadcast, point-to-point, point-to-multipoint, point‑to‑multipoint-non‑broadcast.
broadcast
priority <priority_integer>
Set the router priority for this interface.
Router priority is used during the election of a designated router (DR) and backup designated router (BDR).
An interface with router priority set to 0 can not be elected DR or BDR. The interface with the highest router priority wins the election. If there is a tie for router priority, router ID is used.
Point-to-point networks do not elect a DR or BDR; therefore, this setting has no effect on a point-to-point network.
The valid range for priority_integer is 0 to 255.
1
retransmit-interval <seconds_integer>
The time, in seconds, to wait before sending a LSA retransmission. The value for the retransmit interval must be greater than the expected round-trip delay for a packet. The valid range for seconds_integer is 1 to 65535.
5
status
{enable | disable}
Enable or disable OSPF on this interface.
enable
transmit-delay <seconds_integer>
The estimated time, in seconds, required to send a link state update packet on this interface.
OSPF increments the age of the LSAs in the update packet to account for transmission and propagation delays on the interface.
Increase the value for transmit-delay on low speed links.
The valid range for seconds_integer is 1 to 65535.
1
config neighbor variables
edit <neighbor_addr>
Enter the IPv6 link local address of the neighbor.
No default.
cost <cost_integer>
Enter the cost to use for this neighbor. The valid range for cost_integer is 1 to 65535.
10
poll-interval <seconds_integer>
Enter the time, in seconds, between hello packets sent to the neighbor in the down state. The value of the poll interval must be larger than the value of the hello interval. The valid range for seconds_integer is 1 to 65535.
10
priority <priority_integer>
Enter a priority number for the neighbor. The valid range for priority_integer is 0 to 255.
1
config redistribute
Use this subcommand to redistribute routes learned from BGP, RIP, static routes, or a direct connection to the destination network.
The OSPF redistribution table contains four static entries. You cannot add entries to the table. The entries are defined as follows:
bgp — Redistribute routes learned from BGP.
connected — Redistribute routes learned from a direct connection to the destination network.
isis — Redistribute routes learned from ISIS.
static — Redistribute the static routes defined in the FortiGate unit routing table.
rip — Redistribute routes learned from RIP.
When you enter the subcommand, end the command with one of the four static entry names (that is, config redistribute {bgp | connected | isis | rip | static}).
All fields are optional.
Variable
Description
Default
metric <metric_integer>
Enter the metric to be used for the redistributed routes. The metric_integer range is from 1 to 16777214.
10
metric-type {1 | 2}
Specify the external link type to be used for the redistributed routes.
2
routemap <name_str>
Enter the name of the route map to use for the redistributed routes.
Null.
status {enable | disable}
Enable or disable redistributing routes.
disable