Change network interface names
I moved the network card to a different slot.
This commit is contained in:
parent
0367aba2c1
commit
af2c1ab94c
2 changed files with 8 additions and 8 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue