Update configuration on IPv6 prefix change
Description
With changing IPv6 prefix from ISP this script handles to update...
ipv6 firewall address-list
dns records
Requirements and installation
Just install the script:
Your ISP needs to provide an IPv6 prefix, your device receives it via dhcp:
Note this already adds this script as script
. The pool name (here: "isp
") is important, we need it later.
Also this expects there is an address assigned from pool to an interface:
Sometimes dhcp client is stuck on reconnect and needs to be released. Installing ppp-on-up may solve this.
Configuration
An address list entry is updated with current prefix and can be used in firewall rules, comment has to be "ipv6-pool-
" and actual pool name:
As this entry is mandatory it is created automatically if it does not exist, with the comment also set for list.
Address list entries for specific interfaces can be updated as well. The interface needs to get its address from pool isp
and the address list entry has to be associated to an interface in comment:
Static DNS records need a special comment to be updated. Again it has to start with "ipv6-pool-
" and actual pool name, followed by a comma, "interface=
" and the name of interface this address is connected to:
See also
Last updated
Was this helpful?