Skip to content

Instantly share code, notes, and snippets.

@sameo
Last active December 8, 2016 00:13
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 sameo/edf379595835df003ab7751caaabd4d3 to your computer and use it in GitHub Desktop.
Save sameo/edf379595835df003ab7751caaabd4d3 to your computer and use it in GitHub Desktop.
cat /etc/cni/net.d/10-mynet.conf
{
"cniVersion": "0.2.0",
"name": "mynet",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.88.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
}
cat /etc/cni/net.d/99-loopback.conf
{
"cniVersion": "0.2.0",
"type": "loopback"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment