To edit the files, you can use vi

or just use winscp Modify files on the router - GL.iNet Docs

Not sure about the dhcp problem though.