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 ];
|
:local IntName [ / interface get $Interface name ];
|
||||||
:log info ("PPP interface " . $IntName . " is up.");
|
:log info ("PPP interface " . $IntName . " is up.");
|
||||||
|
|
||||||
:local DhcpClient [ / ipv6 dhcp-client find where interface=$IntName ];
|
/ ipv6 dhcp-client release [ find where interface=$IntName !disabled ];
|
||||||
:if ([ :len $DhcpClient ] > 0) do={
|
|
||||||
/ ipv6 dhcp-client disable $DhcpClient;
|
|
||||||
:delay 1s;
|
|
||||||
/ ipv6 dhcp-client enable $DhcpClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
:local Scripts {
|
:local Scripts {
|
||||||
"update-tunnelbroker"
|
"update-tunnelbroker"
|
||||||
|
|
Loading…
Reference in a new issue