Add local interface to carbon
This commit is contained in:
parent
35eb5a521a
commit
23747424da
@ -33,6 +33,8 @@
|
|||||||
];
|
];
|
||||||
# Network
|
# Network
|
||||||
networking.interfaces.enp1s0.useDHCP = true;
|
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.enable = true;
|
||||||
networking.wireguard.interfaces = {
|
networking.wireguard.interfaces = {
|
||||||
@ -56,7 +58,7 @@
|
|||||||
ipv6 table ospf6;
|
ipv6 table ospf6;
|
||||||
ipv4 table ospf4;
|
ipv4 table ospf4;
|
||||||
|
|
||||||
protocol direct {
|
protocol direct direct_lo {
|
||||||
interface "lo";
|
interface "lo";
|
||||||
ipv6 {
|
ipv6 {
|
||||||
table ospf6;
|
table ospf6;
|
||||||
@ -66,6 +68,16 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protocol direct direct_enp2s0 {
|
||||||
|
interface "enp2s0";
|
||||||
|
ipv6 {
|
||||||
|
table ospf6;
|
||||||
|
};
|
||||||
|
ipv4 {
|
||||||
|
table ospf4;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
protocol kernel kernel_6 {
|
protocol kernel kernel_6 {
|
||||||
ipv6 {
|
ipv6 {
|
||||||
table ospf6;
|
table ospf6;
|
||||||
|
Loading…
Reference in New Issue
Block a user