summaryrefslogtreecommitdiff
path: root/machines/bosco
diff options
context:
space:
mode:
Diffstat (limited to 'machines/bosco')
-rw-r--r--machines/bosco/default.nix68
1 files changed, 35 insertions, 33 deletions
diff --git a/machines/bosco/default.nix b/machines/bosco/default.nix
index 8a46883..be17b25 100644
--- a/machines/bosco/default.nix
+++ b/machines/bosco/default.nix
@@ -50,40 +50,42 @@
# networking.usePredictableInterfaceNames = false;
- networking.localCommands = ''
- ip addr add 23.131.76.82/32 dev ens18
- ip route add default via "172.16.101.1" dev ens18 src 23.131.76.82
- '';
+ # networking.localCommands = ''
+ # ip addr add 23.131.76.82/32 dev ens18
+ # ip route add default via "172.16.101.1" dev ens18 src 23.131.76.82
+ # '';
# ip route del default
- # networking.interfaces."eth0".ipv4 = {
- # addresses = [{
- # address = "23.131.76.82";
- # prefixLength = 32;
- # }
- # {
- # address = "172.16.101.82";
- # prefixLength = 24;
- # }];
- # # routes = [
- # # {
- # # via = "172.16.101.1";
- # # address = "172.16.101.82";
- # # prefixLength = 24;
- # # options = {
- # # table = "default";
- # # src = "23.131.76.82";
- # # };
- # # }
- # # # {
- # # # via = "172.16.101.1";
- # # # options = {
- # # # table = "default";
- # # # metric = "202";
- # # # };
- # # # }
- # # ];
- # };
- # networking.nameservers = [ "9.9.9.9" ];
+ networking.interfaces."eth0".ipv4 = {
+ addresses = [{
+ address = "23.131.76.82";
+ prefixLength = 32;
+ }
+ {
+ address = "172.16.101.82";
+ prefixLength = 24;
+ }];
+ routes = [
+ {
+ via = "172.16.101.1";
+ address = "0.0.0.0";
+ prefixLength = 0;
+ # address = "172.16.101.82";
+ # prefixLength = 24;
+ options = {
+ table = "default";
+ src = "23.131.76.82";
+ };
+ }
+ # {
+ # via = "172.16.101.1";
+ # options = {
+ # table = "default";
+ # metric = "202";
+ # };
+ # }
+ ];
+ };
+ networking.nameservers = [ "9.9.9.9" ];
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";