[Unit] Description = networking-post-up After = network-online.target Wants = network-online.target [Service] Type = oneshot User = root Group = root ExecStart = -/sbin/ethtool -K br-bmaas gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K br-dbaas gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K br-lbaas gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K br-mgmt gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K br-storage gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K br-vlan gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K br-vxlan gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K eth12 gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K eth13 gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K eth14 gso off sg off tso off tx off ExecStart = -/sbin/ethtool -K eth15 gso off sg off tso off tx off ExecStart = -/sbin/ip link set br-bmaas-veth up ExecStart = -/sbin/ip link set br-dbaas-veth up ExecStart = -/sbin/ip link set br-lbaas-veth up ExecStart = -/sbin/ip link set br-vlan-veth up ExecStart = -/sbin/ip link set eth12 up ExecStart = -/sbin/ip link set eth13 up ExecStart = -/sbin/ip link set eth14 up ExecStart = -/sbin/ip link set eth15 up ExecStart = -/sbin/iptables -t nat -A POSTROUTING -o enX0 -j MASQUERADE ExecStop = /sbin/iptables -t nat -D POSTROUTING -o enX0 -j MASQUERADE # Give a reasonable amount of time for the server to start up/shut down TimeoutSec = 120 # This creates a specific slice which all services will operate from # The accounting options give us the ability to see resource usage through # the `systemd-cgtop` command. Slice = system.slice # Set Accounting CPUAccounting = True BlockIOAccounting = True MemoryAccounting = True TasksAccounting = True RemainAfterExit = True [Install] WantedBy = multi-user.target