To edit the files, you can use vi
vi
or just use winscp Modify files on the router - GL.iNet Docs
Not sure about the dhcp problem though.