networking issue
This commit is contained in:
parent
9d132640fc
commit
cd66c88886
1 changed files with 18 additions and 19 deletions
|
|
@ -42,8 +42,8 @@
|
||||||
# Remote ZFS unlocking in initrd
|
# Remote ZFS unlocking in initrd
|
||||||
boot = {
|
boot = {
|
||||||
# Static IP in initrd - adjust these values for your network
|
# Static IP in initrd - adjust these values for your network
|
||||||
# kernelParams = [ "ip=<ipv4_address>::<ipv4_gateway>:<ipv4_netmask>::<interface>:none" ];
|
kernelParams = [ "ip=152.53.152.129::152.53.152.1:255.255.252.0::ens3:none" ];
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
# Network driver for initrd - change to match your hardware
|
# Network driver for initrd - change to match your hardware
|
||||||
# Common options: "virtio_pci" (VMs), "e1000e", "igb", "r8169"
|
# Common options: "virtio_pci" (VMs), "e1000e", "igb", "r8169"
|
||||||
|
|
@ -98,21 +98,20 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Static networking (if needed for VPS)
|
networking = {
|
||||||
# networking = {
|
useDHCP = false;
|
||||||
# useDHCP = false;
|
interfaces.ens3 = {
|
||||||
# interfaces.ens3 = {
|
useDHCP = false;
|
||||||
# useDHCP = false;
|
ipv4.addresses = [{
|
||||||
# ipv4.addresses = [{
|
address = "152.53.152.129";
|
||||||
# address = "<ipv4_address>";
|
prefixLength = 22;
|
||||||
# prefixLength = <prefix_length>;
|
}];
|
||||||
# }];
|
ipv6.addresses = [{
|
||||||
# ipv6.addresses = [{
|
address = "2a00:11c0:47:3b2a::1";
|
||||||
# address = "<ipv6_address>";
|
prefixLength = 64;
|
||||||
# prefixLength = <prefix_length>;
|
}];
|
||||||
# }];
|
};
|
||||||
# };
|
defaultGateway = "152.53.152.1";
|
||||||
# defaultGateway = "<ipv4_gateway>";
|
defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
|
||||||
# defaultGateway6 = { address = "<ipv6_gateway>"; interface = "ens3"; };
|
};
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue