Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [HOWTO]Keep the ipV6 addr active

    Scheduled Pinned Locked Moved IPv6
    2 Posts 2 Posters 320 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • insmodI
      insmod
      last edited by

      ipv6.png

      lease.png

      ra.png

      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
      
      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @insmod
        last edited by

        @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"

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.