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