i really need some help.
goal:
1st is to check IP on DHCP-client
2nd is to update the Dst Address IP address
3rd is to schedule the script.
thanks guys..

i really need some help.
goal:
1st is to check IP on DHCP-client
2nd is to update the Dst Address IP address
3rd is to schedule the script.
thanks guys..

You can use other method like in-interface=wan with the same result.
Sent from my mobile phone using Tapatalk.
yes i have the idea sir but i don’t know scripting. hope somebody can help me?
try this…
{
local ip [ip dhcp-client get value-name=address 0]
local count [len $ip]
local count1 [($count - 3)]
local address [pick $ip 0 $count1]
ip firewall mangle set [find comment=update] dst-address=$address
}you need to have a netmask in dhcp-client of 2 digits like /24, if you have 1 digit like /8 tell me
add a comment in mangle rule “update”
thank you sir c0d3rSh3ll , the script worked! by the way the dynamic cidr is /19 but the IP in mangle did updated. so i think this ok ryt? thank you very much! i will surely give karma
The other thing you could do is do a find on the string for “/” and then cut to that point. That way you don’t need to know the length of that part…