Skip to content

Instantly share code, notes, and snippets.

@Informatic
Created January 20, 2019 21:32
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 Informatic/5b9964cdf9273c8c2b7386ae16753121 to your computer and use it in GitHub Desktop.
Save Informatic/5b9964cdf9273c8c2b7386ae16753121 to your computer and use it in GitHub Desktop.
NixOS OVH IP Failover virtual machine configuration
{
# [...]
# Assuming failover IP being 1.2.3.4 and host primary IP being 5.6.7.8
networking.interfaces.ens3.ipv4.addresses = [ {
address = "1.2.3.4";
prefixLength = 32;
} ];
networking.interfaces.ens3.ipv4.routes = [ {
address = "5.6.7.254";
prefixLength = 32;
} ];
networking.defaultGateway = "5.6.7.254";
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment