How to set the IP address in a customized OpenWRT compilation
Posted
by
Berdus
on Super User
See other posts from Super User
or by Berdus
Published on 2012-09-20T18:34:12Z
Indexed on
2012/09/20
21:42 UTC
Read the original article
Hit count: 283
ip-address
|openwrt
I have been struggling today customizing OpenWRT. I checkout the stable using SVN, "make menuconfig" to customize the image, "make" it and run it on a router. Almost all my modifications work, except for the (Seemingly trivial) task of changing the default 192.168.1.1 address.
I tried numerous files (scripts as well as config files) but I can't seem to change it (I can change it for a brief moment after boot using the "preinit" file, but after a few seconds it reverts to default).
I suspect I should be setting it in the /etc/network file, but modifications there seem to be overwritten during boot. Maybe it has something to do with the br-lan interface?
Does anybody have some thoughts on the subject? Thanks!
© Super User or respective owner