Page MenuHomeVyOS Platform

Sysctl for IPv4 ECMP Hash Policy Not Set
Closed, ResolvedPublicBUG

Description

sysctl for net.ipv4.fib_multipath_hash_policy appears to not be getting set:

trae@cr01a-vyos# show system sysctl
 custom net.ipv4.fib_multipath_hash_policy {
     value 1
 }
 custom net.ipv4.tcp_congestion_control {
     value vegas
 }
 custom net.ipv6.fib_multipath_hash_policy {
     value 1
 }
[edit]
trae@cr01a-vyos# sysctl -a 2>&1 | grep fib
net.ipv4.fib_multipath_hash_policy = 0
net.ipv4.fib_multipath_use_neigh = 0
net.ipv6.fib_multipath_hash_policy = 1

If I set it manually it works fine:

trae@cr01a-vyos# sudo sysctl -w net.ipv4.fib_multipath_hash_policy=1
net.ipv4.fib_multipath_hash_policy = 1
[edit]
trae@cr01a-vyos# sysctl -a 2>&1 | grep fib
net.ipv4.fib_multipath_hash_policy = 1
net.ipv4.fib_multipath_use_neigh = 0
net.ipv6.fib_multipath_hash_policy = 1

Edit: I tested it on another router (same version) and it appears that it works before rebooting, but not after.

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202006241940
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

HI! On 1.3 layer4-hashing is activated by using the set system ip layer4-hashing command

The same for ipv6 is available under set system ipv6 layer4-hashing

trae32566 claimed this task.

Oh, neat. Thanks, I'll close this then!

erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 2:06 PM
erkin removed a subscriber: Active contributors.