mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
ppp-on-up: just release ipv6 lease
This should get a new lease immediately.
This commit is contained in:
parent
63406dafbe
commit
0abb9a1848
1 changed files with 1 additions and 6 deletions
|
@ -9,12 +9,7 @@
|
|||
:local IntName [ / interface get $Interface name ];
|
||||
:log info ("PPP interface " . $IntName . " is up.");
|
||||
|
||||
:local DhcpClient [ / ipv6 dhcp-client find where interface=$IntName ];
|
||||
:if ([ :len $DhcpClient ] > 0) do={
|
||||
/ ipv6 dhcp-client disable $DhcpClient;
|
||||
:delay 1s;
|
||||
/ ipv6 dhcp-client enable $DhcpClient;
|
||||
}
|
||||
/ ipv6 dhcp-client release [ find where interface=$IntName !disabled ];
|
||||
|
||||
:local Scripts {
|
||||
"update-tunnelbroker"
|
||||
|
|
Loading…
Reference in a new issue