Change default IP address in build options?

I took a few minutes to search for an answer but there is a lot of noise regarding "default" and "IP"

Is there a way to change the default IP that is used when you do a custom build? My home network uses the default (I should probably change it one of theses days) so it conflicts when I hook it up to WAN I believe the NAT gets confused. It's a pain to change every time. Suppose I want the default to be 10.x.x.x How would I do that in my build options?

1 Like

If using the build system, ./files/etc/config/network for example.

1 Like

It goes without saying that you should keep it /24 not /8.

I have a simple script in
to set the LAN-IP.
uci set network.lan.ipaddr=
uci commit network


Whenever I run make, it deleted ./build_dir/....../etc/uci-defaults/.
Instead, I added ./package/base-files/files/etc/uci-defaults/17_modify_lan_ip.

Sure. Everything in build_dir (and staging_dir) are temporary build artifacts, not permanent sources.

1 Like