Change ip from console

I changed my server location and the ip address changed, how do I change it from the console

hI, Change IP:

ucr search --brief interfaces
ucr search --brief gateway
ucr set interfaces/$INTERFACE/address=‘newip’
ucr set gateway=‘newgateway’

2 Likes