This page covers common configuration steps for OpenWrt deployments.
Use the same configuration file referenced in the setup guide for your installation.
OpenWrt supports both LuCI (web UI) and UCI CLI configuration.
Typical config paths:
/etc/config/network
/etc/config/firewall
/etc/config/dhcp
uci set network.lan.ipaddr='192.168.10.1'
uci set network.lan.netmask='255.255.255.0'
uci set dhcp.lan.start='100'
uci set dhcp.lan.limit='100'
uci set dhcp.lan.leasetime='12h'
uci commit network
uci commit dhcp
/etc/init.d/network restart
/etc/init.d/dnsmasq restart
uci set firewall.@zone[0].name='lan'
uci set firewall.@zone[0].input='ACCEPT'
uci set firewall.@zone[0].forward='ACCEPT'
uci set firewall.@zone[1].name='wan'
uci set firewall.@zone[1].input='REJECT'
uci set firewall.@zone[1].forward='REJECT'
uci set firewall.@zone[1].output='ACCEPT'
uci commit firewall
/etc/init.d/firewall restart
/etc/config/* before firmware upgrades.Apply or reload the configuration via the UI or CLI.
Test connectivity and firewall rules to confirm configuration is valid.
ip addr
ip route
logread | tail -n 100