3.10. Configuring the radvd service for IPv6 routers
The router advertisement daemon (radvd) sends router advertisement messages that are required for IPv6 stateless autoconfiguration. This enables users to automatically configure their addresses, settings, routes, and to choose a default router based on these advertisements.
You can only set /64 prefixes in the radvd service. To use other prefixes, use DHCPv6.
Prerequisites
-
You are logged in as the
rootuser.
Procedure
Install the
radvdpackage:# dnf install radvdEdit the
/etc/radvd.conffile, and add the following configuration:interface enp1s0 { AdvSendAdvert on; AdvManagedFlag on; AdvOtherConfigFlag on; prefix 2001:db8:0:1::/64 { }; };These settings configure
radvdto send router advertisement messages on theenp1s0device for the2001:db8:0:1::/64subnet. TheAdvManagedFlag onsetting defines that the client should receive the IP address from a DHCP server, and theAdvOtherConfigFlagparameter set toondefines that clients should receive non-address information from the DHCP server as well.For further details, see the
radvd.conf(5)man page on your system and the/usr/share/doc/radvd/radvd.conf.examplefile.Optional: Configure that
radvdautomatically starts when the system boots:# systemctl enable radvdStart the
radvdservice:# systemctl start radvd
Verification
Display the content of router advertisement packages and the configured values
radvdsends:# radvdump