You can write the command as follows:
ip address set [/ip address find address="192.168.140.*"] address=192.168.141.*
I only want to change the C subnet of the ipaddress.
THX
I'm also looking for a similar command to the above where for example I have a number of sites which all have the site number set within the IP address,
so scripting wise for the "average person" to literally go in and edit 3 :global variables can change the single octet on the IP address
e.g - Change X to site number
:global SiteNumber=x
site 6 gets 10.1.6.254/24 for example,
and I need a command that does something like - add address=10.1.$SiteNumber.254/24 interface=loopback network=10.1.$SiteNumber.0
A friend had suggested something like
so address-begining = "10.10."; address-end = ".254/24"; full_address = $address-beginning . $6bit . $address-end;
But not sure whether this would work?
Any suggestions ?
Thanks