1
0
Fork 0

Fix more interface names

This commit is contained in:
clerie 2020-12-09 23:12:47 +01:00
parent a68525f595
commit 322d15b14e
1 changed files with 4 additions and 11 deletions

View File

@ -27,8 +27,8 @@
networking.interfaces.ens21 = {};
networking.defaultGateway = { address = "192.168.10.1"; interface = "ens18"; };
networking.defaultGateway6 = { address = "2001:638:904:ffc9::1"; interface = "ens21"; };
networking.defaultGateway = { address = "192.168.10.1"; interface = "ens20"; };
networking.defaultGateway6 = { address = "2001:638:904:ffc9::1"; interface = "ens18"; };
networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
petabyte.policyrouting = {
@ -43,18 +43,11 @@
services.bird2.enable = true;
services.bird2.config = ''
router id ${ (lib.head config.networking.interfaces.ens18.ipv4.addresses).address };
router id ${ (lib.head config.networking.interfaces.ens20.ipv4.addresses).address };
ipv6 table ospf6;
ipv6 table bgp6;
protocol direct {
interface "ens20";
ipv6 {
table ospf6;
};
}
protocol static {
ipv6 {
table bgp6;
@ -94,7 +87,7 @@
export all;
};
area 0 {
interface "ens19" {
interface "ens21" {
cost 80;
};
};