baos
Occasional Visitor
It's been at least 12 hours and going strong. I would have preffered to not use jffs and hope that at some point the ipv6 tab on the router will support an additional ULA.
Looks like for the future, ipv6 prefixes will be dynamic regardless of how they were intended. Things such as power failures, hardware changes, and other disruptions will continue to cause ipv6 prefix reassignments. For me this is roughly every 1 to 2 months. Thanks for the help in no longer needing to update config files after an ipv6 prefix change.
The FreeBSD server grabs both dynamic addresses ipv4/ipv6 from dhcp (via dhcpcd), then appends the fd00::2 by @reboot crontab (at bootup). Assigning fd00::2 earlier had led to some odd behavior such as fd00::2 being dropped, but that would not be related to the asus router.
Here is the working script:
dhcpc-event:
Looks like for the future, ipv6 prefixes will be dynamic regardless of how they were intended. Things such as power failures, hardware changes, and other disruptions will continue to cause ipv6 prefix reassignments. For me this is roughly every 1 to 2 months. Thanks for the help in no longer needing to update config files after an ipv6 prefix change.
The FreeBSD server grabs both dynamic addresses ipv4/ipv6 from dhcp (via dhcpcd), then appends the fd00::2 by @reboot crontab (at bootup). Assigning fd00::2 earlier had led to some odd behavior such as fd00::2 being dropped, but that would not be related to the asus router.
Here is the working script:
dhcpc-event:
Code:
#!/bin/sh
# two functions to call when needed
_noaddress(){
/usr/sbin/ip -6 addr add fd00::1/8 dev br0
logger "ULA IPv6 Address fd00::1/8 not found.. Adding"
}
_addressfound(){
logger "ULA IPv6 Address fd00::1/8 found.. Skipping"
}
# check to see whether we need to update or just ignore any logging
#DHCP Event Trigger:
case "$1" in
"start")
continue
;;
"bound")
continue
;;
"renew")
continue
;;
"deconfig")
continue
;;
"internal")
continue
;;
*)
exit 1
;;
esac
# run our script
logger "$1 Triggering: DHCPC Event / ULA Status Change"
# this is a bit weird, but if it is true, then we have an address, otherwise we don't
/usr/sbin/ip addr show dev br0 | /bin/grep -q "fd00" && _addressfound || _noaddress