Talk:Static Routing

iproute2 instead of ifconfig
Hello, I think we should encourage the use of sys-apps/iproute2 as it is single interface for all networking configuration. And obsoletes the route, ifconfig. openrc leverage iproute2 if exists. --Alon Bar-Lev 01:52, 19 November 2011 (UTC)


 * Added some iproute2 versions. --Nephros 10:51, 17 June 2012 (UTC)

/etc/conf.d/staticroute
this file is also provided by openrc to add static routes. Can someone add information when this is to be used instead of /etc/conf.d/net setups? --Nephros 10:51, 17 June 2012 (UTC)


 * It's true. I have not explained it since I have no experience with that file "staticroute". It is just another alternative to configure it the way explained. Under the hood it works the same way. Feel free to expand the section. Needle 17:41, 11 December 2012 (UTC)


 * The file does not exist for me on OpenRC 0.24.2. I presume it's a thing of the past. Closing discussion. --Maffblaster (talk) 23:16, 28 April 2017 (UTC)

Enable IP forwarding
Why no one mention about enabling kernel ip forwarding in order to make the static routing works?

People should check that /proc/sys/net/ipv4/ip_forward content is '1' and if not:

--KentVu 10:15, 8 December 2012 (UTC)


 * This depends on the setup, and is not true "unconditionally". I have not set it in at my hosts and still able to route. Needle 10:58, 11 December 2012 (UTC)
 * Finally found the time to test this example, no need to enable "ip_forward" Needle 23:38, 13 December 2012 (UTC)
 * Well to be most correct. The

setting is needed, if the host has more than 1 physical interface, f.e. eth0 AND eth1, then it would be mandatory to set this. The example showed in the page does not reflect this, as it only deals with 1 physical interface wlan1, for simplicity. The host itself does not route in this example between the lan and wlan1 interfaces. This could be added as well, but it would need a remark and explaining that the host where the static routes are added is not actual host, but a router, that sits between IP networks and needs to route between them, and it would be already out of scope of the "static routing" example. I am unsure if this belongs in here, it would make the static routing example more difficult and eventually suggest that this setting is mandatory. Needle (talk) 12:29, 25 April 2020 (UTC)