set static on vpn

This commit is contained in:
2026-06-23 20:55:11 -05:00
parent 182e5abbbf
commit 77067724ce
+6 -35
View File
@@ -107,36 +107,17 @@
networking = { networking = {
hostName = "lumiose"; # hostname hostName = "lumiose"; # hostname
hostId = "007f0200"; hostId = "007f0200";
# dhcpcd.enable = false;
# interfaces = {
# enp34s0 = {
# useDHCP = true;
# };
# vlan10 = {
# useDHCP = true;
# };
# vlan69 = {
# useDHCP = true;
# };
# };
# vlans = {
# vlan10 = {
# id = 10;
# interface = "enp37s0f0";
# };
# vlan69 = {
# id = 69;
# interface = "enp37s0f0";
# };
# };
# defaultGateway = "10.10.0.1";
# nameservers = ["10.10.0.1"];
networkmanager = { networkmanager = {
enable = true; # the goat enable = true; # the goat
dns = "systemd-resolved"; # the backup dancer! dns = "systemd-resolved"; # the backup dancer!
ensureProfiles.profiles = { ensureProfiles.profiles = {
vpn = { vpn = {
ethernet.cloned-mac-address = "02:ea:6c:3c:9f:cd"; ipv4 = {
method = "manual";
addresses = "10.69.0.11/24";
gateway = "10.69.0.1";
};
ethernet.mac-address = "02:ea:6c:3c:9f:cd";
connection.type = "vlan"; connection.type = "vlan";
connection.id = "vpn"; connection.id = "vpn";
connection.interface-name = "enp37s0f1.69"; # or just "vpn-vlan" connection.interface-name = "enp37s0f1.69"; # or just "vpn-vlan"
@@ -145,16 +126,6 @@
vlan.id = 69; vlan.id = 69;
#ipv4.dns = "9.9.9.9"; #ipv4.dns = "9.9.9.9";
}; };
# lan = {
# ethernet.mac-address = "02:11:61:c5:31:b6";
# connection.type = "vlan";
# connection.id = "lan";
# connection.interface-name = "enp37s0f1.20"; # or just "vpn-vlan"
# vlan.interface-name = "enp37s0f1.20"; # or just "vpn-vlan"
# vlan.parent = "enp37s0f1";
# vlan.id = 20;
# #ipv4.dns = "9.9.9.9";
# };
}; };
}; };
}; };