OSPF6D.CONF(5) | File Formats Manual | OSPF6D.CONF(5) |
ospf6d.conf
— Open
Shortest Path First daemon configuration file
The ospf6d(8) daemon implements the Open Shortest Path First protocol version 3 as described in RFC 5340.
The ospf6d.conf
config file is divided
into the following main sections:
Argument names not beginning with a letter, digit, or underscore must be quoted.
Additional configuration files can be included with the
include
keyword, for example:
include "/etc/ospf6d.sub.conf"
Macros can be defined that will later be expanded in context.
Macro names must start with a letter, digit, or underscore, and may contain
any of those characters. Macro names may not be reserved words (for example,
area
, interface
, or
hello-interval
). Macros are not expanded inside
quotes.
For example:
hi="5" area 0.0.0.0 { interface em0 { hello-interval $hi } }
The same can be accomplished by specifying the hello-interval globally or within the area declaration.
All interface related settings can be configured globally, per area and per interface. The only settings that can be set globally and not overruled are listed below.
fib-priority
priofib-update
(yes
|no
)no
, do not update the Forwarding
Information Base, a.k.a. the kernel routing table. The default is
yes
. Setting fib-update
to
no
will implicitly set the stub
router
option to ensure that no traffic tries to transit via this
router.
rdomain
tableidno
] redistribute
(static
|connected
|default
)
[set ...
]
[depend on
interface]no
] redistribute
prefix [set ...
]
[depend on
interface]no
] redistribute rtlabel
label [set ...
]
[depend on
interface]connected
, routes to directly attached
networks will be announced over OSPF. If set to
static
, static routes will be announced over OSPF.
If set to default
, a default route pointing to
this router will be announced over OSPF. It is possible to specify a
network range with prefix; networks need to be part
of that range to be redistributed. Additionally it is possible to
redistribute based on route labels using the
rtlabel
keyword. By default no additional routes
will be announced over OSPF.
redistribute
statements are evaluated
in sequential order, from first to last. The first matching rule decides
if a route should be redistributed or not. Matching rules starting with
no
will force the route to be not announced. The
only exception is default
, which will be set no
matter what, and additionally no
cannot be used
together with it.
With the depend on
option,
redistributed routes will have a metric of 65535 if the specified
interface is down or in state backup. This is
especially useful on a carp cluster to ensure all traffic goes to the
carp master.
It is possible to set the route metric
and type
for each redistribute rule.
type
is either 1 or 2. The default value for
type
is 1 and for metric
is 100. Setting more than one option needs curly brackets:
redistribute static set { metric 300 type 2 }
router-id
addressrtlabel
label external-tag
numberspf-delay
secondsspf-holdtime
secondsstub
router
(yes
|no
)yes
, all interfaces with active
neighbors will have a metric of infinity. This ensures that the other
routers prefer routes around this router while still being able to reach
directly connected IP prefixes. The stub router
option is automatically enabled if either the
sysctl(8) variable
net.inet6.ip6.forwarding is set to a value different
to 1 or if the FIB is not coupled.Areas are used for grouping interfaces. All interface-specific parameters can be configured per area, overruling the global settings. These interface-specific parameters need to be defined before the interfaces.
area
address|idarea 0.0.0.0 { hello-interval 3 interface em0 interface em1 { metric 10 } }
Area specific parameters are listed below.
demote
group [count]For more information on interface groups, see the
group
keyword in
ifconfig(8).
Each interface can have several parameters configured individually, otherwise they are inherited. An interface is specified by its name.
interface em0 { ... }
Interface-specific parameters are listed below.
demote
groupdepend
on
interfacehello-interval
secondsmetric
costpassive
retransmit-interval
secondsrouter-dead-time
secondsrouter-priority
prioritytransmit-delay
secondstype
p2p
The ospf6d.conf
file format first appeared
in OpenBSD 4.2.
May 16, 2020 | OpenBSD-current |