This is an old revision of the document!
====== Static routing ====== Static routes provides additional routing information to your router. ===== Overview ===== ==== Level of difficulty === Easy ==== Use-case ==== All requests to dd-wrt.com should be routed throug a given gateway. ^ Static-Route properties ^^ | interface | wan | | target | 83.141.4.21 | | netmask | 255.255.255.255 | | gateway | 172.27.0.1 | ==== Related topics ==== * [[documentation:configuration:uci|UCI]] * [[documentation:configuration:config_files:config_network#route|/etc/config/network]] ===== Instructions ===== ==== GUI ==== Not available, yet ==== UCI Config System ==== * **Add something** <code> uci add network route uci set network.@route[-1].interface=wan uci set network.@route[-1].target=84.141.4.210 uci set network.@route[-1].netmask=255.255.255.255 uci set network.@route[-1].gateway=172.27.0.1 </code> * **Store changes** <code> uci commit network </code> * **Apply changes** <code> /etc/init.d/network reload </code> ==== UCI config files (native) ==== Routes are defined in [[documentation:configuration:config_files:config_network|/etc/config/network]] * **Add new rule-section** <code> config 'route' option interface 'wan' option target '83.141.4.210' option netmask '255.255.255.255' option gateway '172.27.0.1' </code> * **Restart service** <code> /etc/init.d/network reload </code> ===== Troubleshooting ===== Not available, yet