Skip to content

Instantly share code, notes, and snippets.

@mpurzynski
Created September 28, 2017 06:29
Show Gist options
  • Select an option

  • Save mpurzynski/34d3de9f1ed3c8e9df93179753bad925 to your computer and use it in GitHub Desktop.

Select an option

Save mpurzynski/34d3de9f1ed3c8e9df93179753bad925 to your computer and use it in GitHub Desktop.
interfaces on ubuntu
allow-hotplug p2p1
auto p2p1
iface p2p1 inet manual
pre-up /opt/snf/sbin/myri_start_stop start myri_timesource=0
up ip link set $IFACE promisc on arp off up
down ip link set $IFACE promisc off down
post-up ethtool -G $IFACE rx 32768; for i in rx tx autoneg tso ufo gso gro lro tx­nocache­copy rxhash ntuple; do ethtool -K $IFACE $i off; done
post-up echo 1 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
post-up ifconfig $IFACE mtu 9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment