Talk:Static Routing

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 07:16, 14 December 2024 (UTC)
:: Your reply ~~~~

iproute2 instead of ifconfig

Talk status
This discussion is done as of June 17, 2012.

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

Talk status
This discussion is done as of April 28, 2017.

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

Talk status
This discussion is done.

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)

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. lan and wlan1, AND it would route between both IP networks, THEN this setting would be mandatory. The example showed 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, to make the static routing example as simple as needed. 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. Example host is not a router. Needle (talk) 12:29, 25 April 2020 (UTC)