Skip to content

Instantly share code, notes, and snippets.

@avnik
Created November 21, 2019 15:57
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 avnik/b7fd3592b64bdfb3a10192c401a8ce8f to your computer and use it in GitHub Desktop.
Save avnik/b7fd3592b64bdfb3a10192c401a8ce8f to your computer and use it in GitHub Desktop.
{
networking.interfaces.ens33.ipv4.addresses = [ {address = "192.168.177.218";prefixLength = 24;} ];
networking.interfaces.ens33.ipv4.routes = [ {address = "199.199.199.0";prefixLength = 24;via="192.168.177.1";} ];
networking.defaultGateway = "192.168.177.5";
networking.nameservers = [ "192.168.177.8" ];
}
# Don't setup network properly
# need `ip ro add 199.199.199.0/24 via 192.168.177.1 && ip ro del default && ip ro add default via 192.168.177.5`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment