This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
template:howto_tpl [2015/05/19 11:19] admin [UCI Config System] |
template:howto_tpl [2018/05/24 09:05] (current) |
||
|---|---|---|---|
| Line 33: | Line 33: | ||
| * **Add something** | * **Add something** | ||
| <code> | <code> | ||
| - | root@dd-wrt-nxt:/# uci add network rule | + | uci add network rule |
| - | cfg0792bd | + | uci set network.@rule[-1].interface=wan |
| - | root@dd-wrt-nxt:/# uci set network.@rule[-1].interface=wan | + | uci set network.@rule[-1].target=84.141.4.210 |
| - | root@dd-wrt-nxt:/# uci set network.@rule[-1].target=84.141.4.210 | + | uci set network.@rule[-1].netmask=255.255.255.255 |
| - | root@dd-wrt-nxt:/# uci set network.@rule[-1].netmask=255.255.255.255 | + | uci set network.@rule[-1].gateway=172.27.0.1 |
| - | root@dd-wrt-nxt:/# uci set network.@rule[-1].gateway=172.27.0.1 | + | |
| - | root@dd-wrt-nxt:/# uci commit network | + | |
| - | root@dd-wrt-nxt:/# /etc/init.d/network reload | + | |
| </code> | </code> | ||
| * **Store changes** | * **Store changes** | ||
| <code> | <code> | ||
| - | uci commit xxx | + | uci commit network |
| </code> | </code> | ||
| * **Apply changes** | * **Apply changes** | ||
| <code> | <code> | ||
| - | /etc/init.d/xxx restart | + | /etc/init.d/network restart |
| </code> | </code> | ||
| ==== UCI config files (native) ==== | ==== UCI config files (native) ==== | ||
| - | [[documentation:configuration:config_files:config_file_network|/etc/config/config_network]] | + | Routes are defined in [[documentation:configuration:config_files:config_network|/etc/config/network]] |
| * **Add new rule-section** | * **Add new rule-section** | ||