1
0

Add local interface to carbon

This commit is contained in:
clerie 2020-12-17 01:21:50 +01:00
parent 35eb5a521a
commit 23747424da

View File

@ -33,6 +33,8 @@
];
# Network
networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.enp2s0.ipv6.addresses = [ { address = "fd00:152:152:4::1"; prefixLength = 64; } ];
networking.interfaces.enp2s0.ipv4.addresses = [ { address = "10.152.4.1"; prefixLength = 24; } ];
networking.wireguard.enable = true;
networking.wireguard.interfaces = {
@ -56,7 +58,7 @@
ipv6 table ospf6;
ipv4 table ospf4;
protocol direct {
protocol direct direct_lo {
interface "lo";
ipv6 {
table ospf6;
@ -66,6 +68,16 @@
};
}
protocol direct direct_enp2s0 {
interface "enp2s0";
ipv6 {
table ospf6;
};
ipv4 {
table ospf4;
};
}
protocol kernel kernel_6 {
ipv6 {
table ospf6;