[HOWTO]Keep the ipV6 addr active
-
Although I set a long lease time in the PF,but the ipv6 addr sometime will be offline,I write a script to keep the addr "active"
#!/usr/local/bin/bash log_file="/var/log/dhcpd.log" addresses=() while true; do addresses=($( cat /var/log/dhcpd.log | grep "Picking pool address" | awk '{print $9}' | sort | uniq)) for address in "${addresses[@]}"; do ping6 -c 5 "$address" done sleep 60 done
-
@insmod active just means the cache has expired ie no traffic. IPv6 uses NDP, arp for IPv6..
There is little point to trying to create traffic to keep that listing as "active"
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.