Change network interface names

I moved the network card to a different slot.
This commit is contained in:
Jakob Lechner 2023-05-27 20:11:08 +00:00
parent 0367aba2c1
commit af2c1ab94c
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
2 changed files with 8 additions and 8 deletions

View file

@ -48,20 +48,20 @@ with lib; {
networkmanager.enable = false;
interfaces = {
enp3s4.ipv4.addresses = [{
enp2s4.ipv4.addresses = [{
address = "192.168.42.1";
prefixLength = 24;
}];
enp4s5 = {
enp3s5 = {
useDHCP = true;
};
};
nat = {
enable = true;
externalInterface = "enp4s5";
externalInterface = "enp3s5";
internalInterfaces = [
"enp3s4"
"enp2s4"
];
};
@ -75,7 +75,7 @@ with lib; {
services.radvd = {
enable = true;
config = ''
interface enp3s4 {
interface enp2s4 {
AdvSendAdvert on;
prefix ::/64 {
AdvOnLink on;
@ -90,10 +90,10 @@ with lib; {
noipv6rs
waitip 6
interface enp4s5
interface enp3s5
ipv6rs
ia_na 1
ia_pd 1/::/64 enp3s4/0/64
ia_pd 1/::/64 enp2s4/0/64
'';
boot = {

View file

@ -11,7 +11,7 @@
username = "nouser";
passwordFile = config.sops.secrets.duckdns-secret.path;
domains = [ "jalr-bw" ];
use = "if, if=enp4s5";
use = "if, if=enp3s5";
#usev6=ifv6, ifv6=enp3s4
};
}