Thread (10 messages) 10 messages, 3 authors, 2026-06-04

Re: [PATCH iproute2-next] iplink: add support for setting IPv4 devconf parameters

From: David Ahern <dsahern@kernel.org>
Date: 2026-06-02 21:11:02

On 6/2/26 1:46 PM, Fernando Fernandez Mancera wrote:
On 6/2/26 9:36 PM, David Ahern wrote:
quoted
On 6/1/26 8:32 AM, Fernando Fernandez Mancera wrote:
quoted
Currently, modifying IPv4 interface configuration parameters requires
interacting with sysctl (/proc/sys/net/ipv4/conf/*). While
ip-netconf exists for monitoring these values, there has been no native
way to set them directly through iproute2.

This patch introduces the support for that via 'inet' at the 'ip link
set'. It uses IFLA_INET_CONF netlink attribute to set the parameter.

Example to enable forwarding on an interface:

ip link set dev enp8s0 inet forwarding on
If an attribute can be set this way, then ip link show needs to show the
values. What's the plan on that front?
I could introduce it in a follow-up patch. I guess it makes sense to
introduce it for ip -d link show only, right? I am happy to work on it
anyway.
yes, -d only.

Will give Nicolas a chance to review.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help