dnsmasq dhcp ipv6
时间: 2023-10-11 19:08:59 浏览: 94
ipv6 6to4隧道超简单指南
Dnsmasq is a lightweight DNS and DHCP server that can support both IPv4 and IPv6 networks. It is commonly used in small networks or home environments to provide name resolution and IP address assignment to network devices.
To configure Dnsmasq for DHCPv6, you need to:
1. Install Dnsmasq on your system if it is not already installed.
2. Edit the /etc/dnsmasq.conf file and uncomment the following lines to enable DHCPv6:
dhcp-range=::100,::1ff,constructor:eth0,ra-names,slaac
enable-ra
Here, dhcp-range specifies the range of IPv6 addresses that can be assigned to clients, and enable-ra enables Router Advertisement messages.
3. Restart the Dnsmasq service to apply the changes:
sudo systemctl restart dnsmasq
After these steps, Dnsmasq will be able to assign IPv6 addresses to devices on your network via DHCPv6.
阅读全文