Skip to content

Instantly share code, notes, and snippets.

@leeuwte
Created July 1, 2020 12:20
Show Gist options
  • Save leeuwte/413c0e8e72dc32e4df7f8c2a68a2c11c to your computer and use it in GitHub Desktop.
Save leeuwte/413c0e8e72dc32e4df7f8c2a68a2c11c to your computer and use it in GitHub Desktop.
/etc/sysctl.conf for homeassistant
# Bigger buffers (to make 40Gb more practical). These are maximums, but the default is unaffected.
net.core.wmem_max=268435456
net.core.rmem_max=268435456
net.core.netdev_max_backlog=10000
# Avoids problems with multicast traffic arriving on non-default interfaces
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0
# Force IGMP v2 (required by CBF switch)
net.ipv4.conf.all.force_igmp_version=2
net.ipv4.conf.default.force_igmp_version=2
# Increase the ARP cache table
net.ipv4.neigh.default.gc_thresh3=4096
net.ipv4.neigh.default.gc_thresh2=2048
net.ipv4.neigh.default.gc_thresh1=1024
# Increase number of multicast groups permitted
net.ipv4.igmp_max_memberships=1024
@leeuwte
Copy link
Author

leeuwte commented Jul 1, 2020

Must be set on host system.

sudo sysctl -p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment