From f404922d6b83c19856f1fd970c5e88e0e5c61c9d Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 5 Apr 2024 09:26:06 +0200 Subject: [PATCH] proxmox: use L4 info for ECMP hashing This should make VXLAN-encapsulated traffic multipath. --- roles/proxmox/files/sysctl.conf | 3 +++ roles/proxmox/tasks/main.yml | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 roles/proxmox/files/sysctl.conf diff --git a/roles/proxmox/files/sysctl.conf b/roles/proxmox/files/sysctl.conf new file mode 100644 index 0000000..855939b --- /dev/null +++ b/roles/proxmox/files/sysctl.conf @@ -0,0 +1,3 @@ +# L4 (5-tuple) hashing for ECMP. +net.ipv4.fib_multipath_hash_policy = 1 +net.ipv6.fib_multipath_hash_policy = 1 diff --git a/roles/proxmox/tasks/main.yml b/roles/proxmox/tasks/main.yml index e2460ef..8fdc07d 100644 --- a/roles/proxmox/tasks/main.yml +++ b/roles/proxmox/tasks/main.yml @@ -28,6 +28,11 @@ mode: 0644 notify: reboot +- name: Set up sysctls + copy: + dest: /etc/sysctl.d/local.conf + src: sysctl.conf + - name: Set up interfaces template: dest: /etc/network/interfaces.d/real.intf