6relayd is deprecated since r40893
/etc/config/6relayd configures the 6relayd IPv6 server & relay.
6relayd is a daemon for serving and relaying IPv6 management protocols to configure clients and downstream routers.
6relayd provides server services for RA, stateless and stateful DHCPv6, DHCPv6-PD and can be used to relay RA, DHCPv6 and NDP between routed (non-bridged) interfaces in case no delegated prefixes are provided by the upstream router.
Example #1: Provide Router Discovery and DHCPv6 in server mode and fallback to relaying if there is no public prefix on the master interface.
Example #2: Create a relay for several networks (here wan6 and lan) in proxy mode. This can be used to proxy Router Discovery, DHCPv6 and NDP.
Example #3: Create a static IPv6 lease while running in management_level 1 or 2.
Each section of type
server defines an instance of 6relayd that will be run.
Each section of type
lease defines an assigned static lease while running in management_level 1 or 2.
Services of 6relayd can be used in two modes:
serverif you want to use 6relayd to only announce the router and / or use it as a DHCPv6 server.
relayfor all other use cases (e.g. relaying between different interfaces, proxying NDP, acting as a DHCPv6 relay, …).
| ||1 <logical interface>||yes, if services in relay-mode are present||Specifies the network which is used as master for relaying|
| ||1 or more <logical interface>||yes|| || Specifies the network on which the 6relayd instance should provide services (first network is master, if section type is
| ||[relay,server]||no|| ||Router Discovery mode of operation (empty = disabled)|
| ||[relay,server]||no|| ||DHCPv6 mode of operation (empty = disabled)|
| ||[relay]||no|| ||NDP-Proxy mode of operation (empty = disabled)|
| ||[0,1]||no||0||Ensure compatbility with broken devices and deprecate ULA if public prefixes are available.|
| ||1 or more [rd,dhcpv6,ndp]||no|| ||Services to relay as fallback if there is no public prefix on the wan interface available|
| ||[0,1]||no||0||Define whether the RD- and DHCPv6-relay will always announce the DNS on the router itself instead of the one provided from the upstream router|
| ||<IPv6-address>||no|| ||Override the announced DNS-server with the specified address|
| ||[0,1]||no||0||Define whether the RD-server will assume that IPv6 connectivity is present even if no public addresses are announced.|
| ||[0,1,2]||no||0||Define DHCPv6 mode. 0: stateless (no M-flag, A-flags set), 1: hybrid (M-Flag and A-flags set), 2: stateful (M-Flag set, A-Flags unset).|
| ||[0,1]||no||0||Announce prefixes as off-link (L-flags unset).|
| ||[medium,low,high]||no||medium||Preference value announced for default router and routes.|
A section of type lease assigns the client with the given duid adresses from every available prefix with the interface id ::1234/128. The pool for non-static leases is ::100-::fff. The leasefile can be found at /tmp/hosts/6relayd for getting duids, hostnames, etc.
| ||hexadecimal||The device unique identifier.|
| ||hexadecimal (up to 8 chars)||The id for this lease, e.g. 1234.|