set static on vpn
This commit is contained in:
@@ -107,36 +107,17 @@
|
||||
networking = {
|
||||
hostName = "lumiose"; # hostname
|
||||
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 = {
|
||||
enable = true; # the goat
|
||||
dns = "systemd-resolved"; # the backup dancer!
|
||||
ensureProfiles.profiles = {
|
||||
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.id = "vpn";
|
||||
connection.interface-name = "enp37s0f1.69"; # or just "vpn-vlan"
|
||||
@@ -145,16 +126,6 @@
|
||||
vlan.id = 69;
|
||||
#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";
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user