When i am configuring a router, I create a bridge and call it “RouterID”. Then in IP Address i insert the choose IP address for that site(in this example its 10.99.0.1 with no subnet mask) and add it to the “RouterID” Interface.
I have written a script see attached, that creates a Radius server which is fine. But i would like the script to take the IP Address on the “RouterID” Interface (10.99.0.1) and replace the 0.0.0.0 scr-address on the Radius Server with this address e.g 10.99.0.1
I have made several attempts and read a lot on the forums and the Wiki but having no luck. I am very new to this so any help would be appreciated.
Also setting the “timeout” to 5seconds is causing an issue.
/radius
# timeout is set to longer than 3s, ppp authentication might time out
add address=10.10.10.10 secret=password service=ppp,login,dhcp src-address=
:put [/ip address get [:pick [/ip address find interface="RouterID"] 0] address]
:set $ipaddress [:pick $ipaddress 0 [:find $ipaddress "/"]]
time=5s