dnsmasq 2.82 ipv6 mtu example how to
时间: 2024-01-30 19:40:17 浏览: 58
To configure dnsmasq 2.82 for IPv6 with a specific MTU size, you can follow these steps:
1. Open the dnsmasq configuration file, usually located at `/etc/dnsmasq.conf`, using a text editor with root privileges.
2. Add the following two lines to the file to enable IPv6 support and set the MTU size to the desired value (e.g. 1500):
```
enable-ra
dhcp-option=option:mtu,1500
```
3. Save and close the file.
4. Restart the dnsmasq service to apply the changes:
```
sudo systemctl restart dnsmasq
```
With these settings, dnsmasq should now advertise IPv6 addresses and DNS information to clients, and include the MTU option in the DHCPv6 responses. Clients that receive the MTU option will adjust their MTU size accordingly, which can improve network performance and reduce packet fragmentation.
阅读全文