14.6. Configuring the radvd daemon for IPv6 routers
The router advertisement daemon (
radvd) sends router advertisement messages which are required for IPv6 stateless autoconfiguration. This allows users to automatically configure their addresses, settings, routes and choose a default router based on these advertisements. To configure the radvd daemon:
- Install the
radvddaemon:sudo yum install radvd
~]# sudo yum install radvdCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set up the
/etc/radvd.conffile. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If you want to additionally advertise DNS resolvers along with the router advertisements, add theRDNSS <ip> <ip> <ip> { };option in the/etc/radvd.conffile. To configure a DHCPv6 service for your subnets, you can set theAdvManagedFlagto on, so the router advertisements allow clients to automatically obtain an IPv6 address when a DHCPv6 service is available. For more details on configuring the DHCPv6 service, see Section 14.5, “DHCP for IPv6 (DHCPv6)” - Enable the
radvddaemon:sudo systemctl enable radvd.service
~]# sudo systemctl enable radvd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the
radvddaemon immediately:sudo systemctl start radvd.service
~]# sudo systemctl start radvd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow
To display the content of router advertisement packages and the configured values sent by the
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
radvd daemon, use the radvdump command:
For more information on the
radvd daemon, see the radvd(8), radvd.conf(5), radvdump(8) man pages.