hello guys,
i want to check gateway ip of dhcp-client if its 1.1.1.1
then if its not 1.1.1.1 (gateway) it will renew until such time it can obtain 1.1.1.1 then it will stop renewing ip..
thanks my first time to post! hope anyone can help me
while condition=([ip dhcp-client get value-name=gateway 0]!= 1.1.1.1) do={ delay 2s; ip dhcp-client disable 0; delay 5s; ip dhcp-client enable 0; delay 3s;}}or
local ip [ip dhcp-client get value-name=gateway 0] if ($ip!= 1.1.1.1) do={ ip dhcp-client release 0; ip dhcp-client renew 0; }the latest script you need to execute by scheduler every time.