RTADVD.CONF(5)
π rtadvd.conf(5) β config file for router advertisement daemon π
β¨ NAME β¨
rtadvd.conf β the config file for the router advertisement daemon, bestie. That's it. That's the name. π
πΈ DESCRIPTION πΈ
Okay so this file is literally the blueprint for how router advertisement packets get constructed for each interface. Every interface gets its own little moment, and this file tells rtadvd how to build the packets. Slay. π
As described in rtadvd(8), you do not have to set this configuration file up at all unless you need some special configurations. You may even omit the file as a whole. In those cases, the rtadvd daemon will automatically configure itself using default values specified in the specification. No cap, it can just do its thing. β¨
It obeys the famous termcap(5) file format. Each line in the file describes a network interface. Fields are separated by a colon (:), and each field contains one capability description. Lines may be concatenated by the \ character. The comment marker is the # character. It's giving ancient-but-iconic file format energy, and honestly? It ate. π
π CAPABILITIES π
Capabilities describe the value to be filled into ICMPv6 router advertisement messages and to control rtadvd(8) behavior. Therefore, you are encouraged to read IETF neighbor discovery documents if you would like to modify the sample configuration file. That's the homework, bestie β but it's worth it. πβ¨
Note that almost all items have default values. If you omit an item, the default value of the item will be used. Lowkey convenient. π«Ά
There are two items which control the interval of sending router advertisements. These items can be omitted, then rtadvd will use the default values.
maxintervalβ(num)The maximum time allowed between sending unsolicited multicast router advertisements (unit: seconds). The default value is600. Its value must be no less than4seconds and no greater than1800seconds. β°minintervalβ(num)The minimum time allowed between sending unsolicited multicast router advertisements (unit: seconds). The default value is the one third of value ofmaxinterval. Its value must be no less than3seconds and no greater than.75 *the value ofmaxinterval. β³
The following items are for ICMPv6 router advertisement message header. These items can be omitted, then rtadvd will use the default values.
chlimβ(num)The value for Cur Hop Limit field. The default value is64. Hop limit? More like hop slay. πraflagsβ(str or num)A 8-bit flags field in router advertisement message header. This field can be specified either as a case-sensitive string or as an integer. A string consists of characters each of which corresponds to a particular flag bit(s). An integer should be the logical OR of all enabled bits. Bit 7 ('m'or0x80) means Managed address configuration flag bit, and Bit 6 ('o'or0x40) means Other stateful configuration flag bit. Bit 4 (0x10) and Bit 3 (0x08) are used to encode router preference. Bits01(or'h') means high,00means medium, and11(or'l') means low. Bits10is reserved, and must not be specified. There is no character to specify the medium preference explicitly. The default value of the entire flag is0(or a null string,) which means no additional configuration methods, and the medium router preference. Flags, but make it fashion. π©rltimeβ(num)Router lifetime field (unit: seconds). The value must be either zero or between the value ofmaxintervaland9000. Whenrtadvdruns on a host, this value must explicitly set0on all the advertising interfaces as described inrtadvd(8). The default value is1800. πrtimeβ(num)Reachable time field (unit: milliseconds). The default value is0, which means unspecified by this router. Chill. It's giving "no opinion." πretransβ(num)Retrans Timer field (unit: milliseconds). The default value is0, which means unspecified by this router. Again, unspecified is a whole vibe. π«
The following items are for ICMPv6 prefix information option, which will be attached to router advertisement header. These items can be omitted, then rtadvd will automatically get appropriate prefixes from the kernel's routing table, and advertise the prefixes with the default parameters. Keywords other than clockskew and noifprefix can be augmented with a number, like prefix2, to specify multiple prefixes. Multi-prefix era, fr fr. π
noifprefixβ(bool)Specifies no prefix on the network interfaces will be advertised. By defaultrtadvdautomatically gathers on-link prefixes from all of the network interfaces and advertise them. Thenoifprefixdisables that behavior. If this is specified and noaddrkeyword is specified, no prefix information option will be included in the message. π«clockskewβ(num)Time skew to adjust link propagation delays and clock skews between routers on the link (unit: seconds). This value is used in consistency check for locally-configured and advertised prefix lifetimes, and has its meaning when the local router configures a prefix on the link with a lifetime that decrements in real time. If the value is0, it means the consistency check will be skipped for such prefixes. The default value is0. Time is fake but the consistency check is real. π°οΈprefixlenβ(num)Prefix length field. The default value is64. Classic. π―pinfoflagsβ(str or num)A 8-bit flags field in prefix information option. This field can be specified either as a case-sensitive string or as an integer. A string consists of characters each of which corresponds to a particular flag bit(s). An integer should be the logical OR of all enabled bits. Bit 7 ('l'or0x80) means On-link flag bit, and Bit 6 ('a'or0x40) means Autonomous address-configuration flag bit. The default value is"la"or0xc0, i.e., both bits are set. Both bits set? We love a generous default. πaddrβ(str)The address filled into Prefix field. Since:is used fortermcap(5)file format as well as IPv6 numeric address, the field MUST be quoted by doublequote character. Do not fight the quotes, bestie. They are protecting you. πvltimeβ(num)Valid lifetime field (unit: seconds). The default value is2592000(30days). That's a long-term relationship with this prefix. πvltimedecrβ(bool)This item means the advertised valid lifetime will decrement in real time, which is disabled by default. Ticking down? Only if you opt in. β²οΈpltimeβ(num)Preferred lifetime field (unit: seconds). The default value is604800(7days). A whole week of preference. πΈpltimedecrβ(bool)This item means the advertised preferred lifetime will decrement in real time, which is disabled by default. Same decrement energy, but for preferred lifetime. π«
The following item is for ICMPv6 MTU option, which will be attached to router advertisement header. This item can be omitted, then rtadvd will use the default value.
mtuβ(num or str)MTU (maximum transmission unit) field. If0is specified, it means that the option will not be included. The default value is0. If the special string"auto"is specified for this item, MTU option will be included and its value will be set to the interface MTU automatically. Auto MTU? She's flexible. π§
The following item controls ICMPv6 source link-layer address option, which will be attached to router advertisement header. As noted above, you can just omit the item, then rtadvd will use the default value.
nolladdrβ(bool)By default (ifnolladdris not specified),rtadvd(8)will try to get link-layer address for the interface from the kernel, and attach that in source link-layer address option. If this capability exists,rtadvd(8)will not attach source link-layer address option to router advertisement packets. No link-layer address? No problem. π
The following item controls ICMPv6 home agent information option, which was defined with mobile IPv6 support. It will be attached to router advertisement header just like other options do.
haprefβ(num)Specifies home agent preference. If set to non-zero,hatimemust be present as well. Package deal, bestie. πhatimeβ(num)Specifies home agent lifetime. π
When mobile IPv6 support is turned on for rtadvd(8), advertisement interval option will be attached to router advertisement packet, by configuring maxinterval explicitly. Mobile IPv6 said "I'm coming too." πβ¨
The following items are for ICMPv6 route information option, which will be attached to router advertisement header. These items are optional. Each items can be augmented with number, like rtplen2, to specify multiple routes.
rtprefixβ(str)The prefix filled into the Prefix field of route information option. Since:is used fortermcap(5)file format as well as IPv6 numeric address, the field MUST be quoted by doublequote character. Quotes again. They're iconic, honestly. πrtplenβ(num)Prefix length field in route information option. The default value is64. Sixty-four, the moment. π―rtflagsβ(str or num)A 8-bit flags field in route information option. Currently only the preference values are defined. The notation is same as that of theraflagsfield. Bit 4 (0x10) and Bit 3 (0x08) are used to encode the route preference for the route. The default value is0x00, i.e., medium preference. Medium preference is the default main character. π©rtltimeβ(num)route lifetime field in route information option. (unit: seconds). Since the specification does not define the default value of this item, the value for this item should be specified by hand. However,rtadvdallows this item to be unspecified, and uses the router lifetime as the default value in such a case, just for compatibility with an old version of the program. Old-version compatibility said "I got you." π«Ά
In the above list, each keyword beginning with rt could be replaced with the one beginning with rtr for backward compatibility reason. For example, rtrplen is accepted instead of rtplen. However, keywords that start with rtr have basically been obsoleted, and should not be used any more.
bestie, those rtr* keywords are basically obsoleted β do not use them any more. They're giving legacy baggage, not vintage chic. π
The following items are for ICMPv6 Recursive DNS Server Option and DNS Search List Option (RFC 6106), which will be attached to router advertisement header. These items are optional.
rdnssβ(str)The IPv6 address of one or more recursive DNS servers. The argument must be inside double quotes. Multiple DNS servers can be specified in a comma-separated string. If different lifetimes are needed for different servers, separate entries can be given by usingrdnss,rdnss0,rdnss1,rdnss2... options with correspondingrdnssltime,rdnssltime0,rdnssltime1,rdnssltime2... entries. Note that the maximum number of servers depends on the receiver side. See alsoresolver(5)manual page for resolver implementation in FreeBSD. DNS servers, but make it a group chat. π¬rdnssltimeβ The lifetime of therdnssDNS server entries. The default value is3/2of the interval time. β³dnssl(str) β one or more domain names in a comma-separated string. These domain names will be used when making DNS queries on a non-fully-qualified domain name π«Ά. If different lifetimes are needed for different domains, separate entries can be given by usingdnssl,dnssl0,dnssl1,dnssl2... options with correspondingdnsslltime,dnsslltime0,dnsslltime1,dnsslltime2... entries. Note that the maximum number of names depends on the receiver side. Also see theresolver(5)manual page for resolver implementation in FreeBSD πdnsslltimeβ the lifetime of thednsslDNS search list entries. The default value is3/2of the interval time. Slay.
Now for the PREF64 discovery corner (RFC 8781) β this will advertise the network's NAT64 prefix to clients β¨. These items are optional, bestie.
pref64(str) β the prefix to advertise in the PREF64 option.pref64len(num) β the length of the PREF64 prefix. This must be96,64,56,48,40, or32. If not specified, the default is96.pref64lifetime(num) β the prefix lifetime to advertise in the PREF64 option. This should be at least as long as the RA lifetime, but it cannot be greater than65528. If not specified, the default is the RA lifetime, or65528, whichever is lower π«Ά.
You can also refer one line from another by using the tc capability π. See termcap(5) for details on the capability.
π EXAMPLES π
As presented above, all of the advertised parameters have default values defined in specifications, and hence you usually do not have to set them by hand, unless you need special non-default values. But heads up: it can cause an interoperability problem if you use an ill-configured parameter π.
To override a configuration parameter, you can specify the parameter alone. With the following configuration, rtadvd(8) overrides the router lifetime parameter for the ne0 interface.
ne0:\
:rltime#0:
The following example manually configures prefixes advertised from the ef0 interface. The configuration must be used with the -s option to rtadvd(8).
ef0:\
:addr="2001:db8:ffff:1000::":prefixlen#64:
The following example configures the wlan0 interface and adds two DNS servers and a DNS domain search options using the default option lifetime values.
wlan0:\
:addr="2001:db8:ffff:1000::":prefixlen#64:\
:rdnss="2001:db8:ffff::10,2001:db8:ffff::2:43":\
:dnssl="example.com":
The following example presents the default values in an explicit manner. The configuration is provided just for reference purposes; YOU DO NOT NEED TO HAVE IT AT ALL.
default:\
:chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\
:pinfoflags="la":vltime#2592000:pltime#604800:mtu#0:
ef0:\
:addr="2001:db8:ffff:1000::":prefixlen#64:tc=default:
πΈ SEE ALSO πΈ
resolver(5),termcap(5),rtadvd(8),rtsol(8)- Thomas Narten, Erik Nordmark, W. A. Simpson, and Hesham Soliman, Neighbor Discovery for IP version 6 (IPv6), RFC 4861.
- Thomas Narten, Erik Nordmark, and W. A. Simpson, Neighbor Discovery for IP version 6 (IPv6), RFC 2461 (obsoleted by RFC 4861).
- Richard Draves, Default Router Preferences and More-Specific Routes, draft-ietf-ipngwg-router-selection-xx.txt.
- J. Jeong, S. Park, L. Beloeil, and S. Madanapalli, IPv6 Router Advertisement Options for DNS Configuration, RFC 6106.
π¦ HISTORY π¦
The rtadvd(8) and the configuration file rtadvd.conf first appeared in WIDE Hydrangea IPv6 protocol stack kit. iconic origin story π.
That's the Debian version, dated June 4, 2011 β RTADVD.CONF(5) signing off π«Άβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms