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

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

From: Fernando Fernandez Mancera <hidden>
Date: 2026-06-03 13:24:15

On 6/3/26 2:50 PM, Nicolas Dichtel wrote:
Le 01/06/2026 à 16:32, Fernando Fernandez Mancera a écrit :
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

Signed-off-by: Fernando Fernandez Mancera <redacted>
Reviewed-by: Nicolas Dichtel <redacted>

Do you plan to add the ipv6 part also?
Yes, it is cooking but I want to get merged IPv4 first.

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help