Skip to content

Instantly share code, notes, and snippets.

@jsravn
Created June 12, 2018 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsravn/c6c391fd75c6ee8b1308b2185cc9bb90 to your computer and use it in GitHub Desktop.
Save jsravn/c6c391fd75c6ee8b1308b2185cc9bb90 to your computer and use it in GitHub Desktop.
/etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# vdsl modem / wan port
auto eth0
iface eth0 inet static
address 192.168.10.2
netmask 255.255.255.0
# to support jumbo frames on ppp (1500 mtu + 8 byte PPPoE overhead)
mtu 1508
post-up /sbin/ethtool -K eth0 gro off gso off tso off
# PPPoE connection
auto provider
iface provider inet ppp
provider provider
# Bridged interfaces
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
# LAN Bridge
auto br0
iface br0 inet static
bridge_ports eth1 eth2 eth3
address 192.168.1.1
netmask 255.255.255.0
# Disable any sort of offloading to avoid buffers/latency
post-up /sbin/ethtool -K br0 gro off gso off tso off
post-up /sbin/ethtool -K eth1 gro off gso off tso off
post-up /sbin/ethtool -K eth2 gro off gso off tso off
post-up /sbin/ethtool -K eth3 gro off gso off tso off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment