puyak.r: rename interface, use correct subnet

This commit is contained in:
makefu 2021-03-12 20:34:01 +01:00
parent 6070677870
commit fe393ec4e7
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -1,11 +1,11 @@
let let
ext-if = "enp0s25"; ext-if = "et0";
shack-ip = "10.42.22.184"; shack-ip = "10.42.22.184";
shack-gw = "10.42.20.1"; shack-gw = "10.42.20.1";
in { in {
services.udev.extraRules = '' services.udev.extraRules = ''
SUBSYSTEM=="net", ATTR{address}=="8c:70:5a:b2:84:58", NAME="wl0" SUBSYSTEM=="net", ATTR{address}=="8c:70:5a:b2:84:58", NAME="wl0"
SUBSYSTEM=="net", ATTR{address}=="3c:97:0e:07:b9:14", NAME="et0" SUBSYSTEM=="net", ATTR{address}=="3c:97:0e:07:b9:14", NAME="${ext-if}"
''; '';
networking = { networking = {
firewall.enable = false; firewall.enable = false;
@ -13,7 +13,7 @@ in {
interfaces."${ext-if}".ipv4.addresses = [ interfaces."${ext-if}".ipv4.addresses = [
{ {
address = shack-ip; address = shack-ip;
prefixLength = 20; prefixLength = 22;
} }
]; ];