RAD.CONF(5) | File Formats Manual | RAD.CONF(5) |
rad.conf
— router
advertisement daemon configuration file
The rad(8) daemon is an IPv6 router advertisement daemon.
The rad.conf
config file is divided into
the following main sections:
interface
definitions and
can be overwritten in an interface
block.Additional configuration files can be included with the
include
keyword.
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,
interface
) Macros are not expanded inside
quotes.
The global configuration section sets defaults for router advertisement messages. These can be overwritten in interface blocks.
default
router
(yes
|no
)dns
{dns options}dns
options are as follows:
lifetime
secondsnameserver
(IP|{ nameserver list })search
(domain|{ domain list })hop
limit
hopsmanaged
address configuration
(yes
|no
)mtu
bytesother
configuration
(yes
|no
)router
lifetime
secondsA list of interfaces or interface groups to send advertisements on:
interface
name [{ prefix list }]
Options set in the global section can be overwritten inside an interface block. In addition an interface block can contain a list of prefixes:
[no
]auto prefix
[{ prefix options }]prefix
prefix [{ prefix options }]
The default is to discover prefixes to announce by inspecting the
IPv6 addresses configured on an interface. This can be disabled with
no auto prefix
. If prefix is
specified without prefixlen, its default is 64.
prefix
options are as follows:
autonomous
address-configuration
(yes
|no
)on-link
(yes
|no
)preferred
lifetime
secondsvalid
lifetime
secondsWith the following example configuration,
rad.conf
will pick a prefix from the ix1 interface
and send router advertisements on it:
interface ix1
The rad.conf
file format first appeared in
OpenBSD 6.4.
May 16, 2020 | OpenBSD-current |