net_run 662 B

123456789
  1. koko -d ous,veth0,172.17.31.2/16 -d relay,veth1,172.17.31.100/24 || exit 1
  2. docker exec --privileged -u root ous ethtool -K veth0 tx off tso off ufo off
  3. docker exec --privileged -u root relay ethtool -K eth0 tso off gro off gso off
  4. docker exec --privileged -u root relay ethtool -K veth1 tso off gro off gso off
  5. docker exec --privileged -u root relay ifconfig eth0 mtu 9000
  6. docker exec --privileged -u root relay ifconfig veth1 mtu 9000
  7. docker exec --privileged -u root ous route del default gw 172.18.0.1
  8. docker exec --privileged -u root ous route add default gw 172.17.0.1
  9. docker exec --privileged -u root relay bash -c "echo 0 > /proc/sys/net/ipv4/ip_forward"