Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15434

General • Script needed - IPv6 address invalid from IPv6 DHCP pool

$
0
0
Hi All

We noticed the same problem in article viewtopic.php?t=151637
I do have a solution but struggling to setup a script to automate the restoration.

Problem : IPv6 address not getting IP from pool after reboot or power loss and flag is invalid (Random times not all the times)
Solution : Disable the PPPoE DHCP client under IPv6 and re-enable IPv6 DHCP Client

Script assistance needed.
Check for invalid address under /ipv6/address
if found and true with value "invalid" : Disable the IPv6 DHCP client under /ipv6/dhcp-client/, wait 5 seconds and enable IPv6 DHCP client again

I am no script expert and tried the following with a fail but might provide information on what we looking to accomplish.
Code:
:if ([get /ipv6/address/[find invalid] = yes) do={/ipv6/dhcp-client/disable 0; :delay 5s ; /ipv6/dhcp-client/enable 0}

Statistics: Posted by Zeruks — Mon Feb 19, 2024 9:09 am



Viewing all articles
Browse latest Browse all 15434

Trending Articles