DHCP on ens19 and ens18 + set ip on ens18

This commit is contained in:
gabriel-doriath-dohler 2022-08-15 01:33:02 +02:00
parent 816e084deb
commit 122c0deeac

View file

@ -24,13 +24,14 @@
# Per-interface useDHCP will be mandatory in the future, so this generated config # Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour. # replicates the default behaviour.
networking.useDHCP = false; networking.useDHCP = false;
networking.interfaces.ens19 = { networking.interfaces.ens18 = {
useDHCP = true; useDHCP = true;
ipv6.addresses = [{ ipv6.addresses = [{
address = "2001:470:1f13:187:611:4514:d93a:f80a"; address = "2001:470:1f13:187:611:4514:d93a:f80a";
prefixLength = 64; prefixLength = 64;
}]; }];
}; };
networking.interfaces.ens19.useDHCP = true;
# Configure network proxy if necessary # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";