Created
January 20, 2019 21:32
-
-
Save Informatic/5b9964cdf9273c8c2b7386ae16753121 to your computer and use it in GitHub Desktop.
NixOS OVH IP Failover virtual machine configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# [...] | |
# 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