This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
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 /etc/conf.d/staticroute 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:
root #
echo 1 > /proc/sys/net/ipv4/ip_forward
--KentVu 10:15, 8 December 2012 (UTC)